Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 23 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
Official Intel documentation does not recommend this though - software.intel.com/sites/default/files/m/d/4/1/d/8/… – Novice User Jun 30 at 18:50

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
 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

There's also the cpuid utility available on a number of OS's.

cpuid | grep -i aes
  AES instruction                         = true
share|improve this answer
Not sure why this is not the accepted answer. Intel documentation recommends this too - software.intel.com/sites/default/files/m/d/4/1/d/8/… – Novice User Jun 30 at 18:50
It's probably not the accepted answer because this answer was born much later than when the OP marked the current accepted answer. You can vote it up, though. If enough upvotes happen, this answer will bubble up towards the top. – Juan Jun 30 at 22:51

Your Answer


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.