# How to verify AES NI is in use by OpenSSL?

**URL:** <https://forum.search-guard.com/t/how-to-verify-aes-ni-is-in-use-by-openssl/986>\
**Category:** Search Guard\
**Created:** [June 29, 2018, 11:24pm UTC](https://forum.search-guard.com/t/how-to-verify-aes-ni-is-in-use-by-openssl/986 "2018-06-29T23:24:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hardik\_Shah](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@Hardik\_Shah](https://forum.search-guard.com/u/Hardik_Shah)\
**Post date:** [June 29, 2018, 11:24pm UTC](https://forum.search-guard.com/t/how-to-verify-aes-ni-is-in-use-by-openssl/986/1 "2018-06-29T23:24:50Z")

</div>

Hi,

I want to make sure that AES NI is used by OpenSSL with SearchGuard.

I tried running following through java (used by Elasticsearch), and it shows UseAES is true.

$ java -XX:+PrintFlagsFinal -version | grep UseAES

bool UseAES = true {product}

bool UseAESIntrinsics = true {product}

Can I say AES-NI is used from this? Is there any other way to verify this?

> **···**
>
> Regards,  
> Hardik Shah.

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [July 1, 2018, 10:45am UTC](https://forum.search-guard.com/t/how-to-verify-aes-ni-is-in-use-by-openssl/986/2 "2018-07-01T10:45:05Z")

</div>

I think this is more of an OpenSSL than a Search Guard question/issue. If OpenSSL is using AES NI on your machine, then Search Guard will use it too, since all TLS related calls are delegated to OpenSSL. It seems that the only way to find out is to run performance tests with and without AES NI enabled.

> **···**
>
> On Saturday, June 30, 2018 at 1:25:03 AM UTC+2, Hardik Shah wrote:
> 
> > Hi,
> 
> > I want to make sure that AES NI is used by OpenSSL with SearchGuard.
> 
> > 
> 
> > I tried running following through java (used by Elasticsearch), and it shows UseAES is true.
> 
> > 
> 
> > $ java -XX:+PrintFlagsFinal -version | grep UseAES
> 
> > bool UseAES = true {product}
> 
> > bool UseAESIntrinsics = true {product}
> 
> > 
> 
> > Can I say AES-NI is used from this? Is there any other way to verify this?
> 
> > 
> 
> > –  
> > Regards,  
> > Hardik Shah.
