I searching for solution, how to check aes-ni are available on CPU. I need to put this information in my application, so i'm not looking for any CPU-Z, bash commands or something. I know that it is seen as aes flag. I have no idea how to check it in assembly or c. Main application is written in C#, but it doesn't matter.
How to check aes-ni are supported by CPU?
3.6k Views Asked by s3ven At
2
This information is returned by the
cpuid
instruction. Pass ineax=1
and bit #25 inecx
will show support. See the intel instruction set reference for more details. Sample code:Also, you might just try executing it and catch the exception.