Search code examples
encryptionopensslcentosaes

how to disable a openssl engine?


I am trying to compare openssl aes encryption performance with and without Intel AES-NI engine. I am using CentOS6.3 whose openssl has already implement the Intel AES-NI engine. which means my test cases

(some commands like

./openssl speed -evp aes-128-cbc -multi 32

)

has already been accelerated by aesni engine.

I want to disable the aesni engine as to make a comparison of the accelerated one, but I don't know how to disable the aesni engine.

Could anyone please tell me how to disable the engine? Thanks a lot:)


Solution

  • You can disable AES-NI by unloading the aesni_intel kernel module: This only disables AES-NI use by the kernel, not by user processes.

    rmmod aesni_intel