Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Howcan I check if my CPU supports the AES-NI instruction set under Linux/UNIX.

share|improve this question

3 Answers 3

up vote 15 down vote accepted

Look in /proc/cpuinfo. If you have the aes flag then your CPU has AES support.

You can use this command:

grep aes /proc/cpuinfo

If you have some output, which will be like

flags : a bunch of flags aes another bunch of flags

, then you have AES.

share|improve this answer
    
could someone test that having a cpu that has aes-ni? e.g.: what is the exact output? grep aes /proc/cpuinfo OR grep aes-ni /proc/cpuinfo ? thank you! –  LanceBaynes May 31 '11 at 6:29
    
@Lance I'm not sure if AES and AES-NI are two different things. They look the same for me. Maybe you can see the other flags in /proc/cpuinfo. –  phunehehe May 31 '11 at 7:21
    
@LanceBaynes Yes, I can confirm with a i5 cpu. Screenshot –  warl0ck May 8 '12 at 12:28
    
Mind you, this only works on linux though. –  Hugo Aug 21 '13 at 3:39

Here's the list. There are 247 CPU models with that feature. With Linux, you can check by looking for the aes flag in /proc/cpuinfo. Or you can check what model you have against this list.

share|improve this answer

to @Lance

 model name : Intel(R) Xeon(R) CPU           E5630  @ 2.53GHz

with AES-NI support from Intel ark list

$ cat /proc/cpuinfo| grep aes
flags: ***** aes *****
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.