• caglararli@hotmail.com
  • 05386281520

Why are there significantly different performance results using openssl speed when using -aead and not using it?

Çağlar Arlı      -    13 Views

Why are there significantly different performance results using openssl speed when using -aead and not using it?

If I take the following two commands, the results between the two are incredibly different:

openssl speed -aead -evp AES-128-CBC-HMAC-SHA256 -seconds 30

openssl speed -evp AES-128-CBC-HMAC-SHA256 -seconds 30

The results for the first look like:

   2 bytes      31 bytes      136 bytes     1024 bytes     8192 bytes     16384 bytes
26,614.91k   362,373.52k  1,547,884.13k 11,946,116.73k 94,651,093.34k 189,574,719.91k

And the results for the second look like:

  16 bytes       64 bytes      256 bytes     1024 bytes     8192 bytes    16384 bytes
438,548.92k   894,497.63k  1,337,354.57k  1,581,342.47k  1,650,846.18k  1,655,817.68k

I'm not talking about the slightly different block sizes. After you get into the 1,024 block size, the performance is incredibly different. Why?