> What I am wondering is that when encrypting 256 16 byte blocks, I get a speed > of about 170 MB/s with the AES-NI driver. When using the aes-generic or aes- > asm, I get up to 180 MB/s with all else being equal. Note, that figure > includes a copy_to_user of the generated data. > > ... Something sounds amiss. AES-NI should be on the order of magnitude faster than a generic implementation. Can you verify AES-NI is actually using AES-NI, and aes-generic is a software implementation? Here are some OpenSSL numbers. EVP uses AES-NI when available. Omitting -evp means its software only (no hardware acceleration, like AES-NI). $ openssl speed -elapsed -evp aes-128-cbc You have chosen to measure elapsed time instead of user CPU time. ... The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128-cbc 626533.60k 669884.42k 680917.93k 682079.91k 684736.51k $ openssl speed -elapsed aes-128-cbc You have chosen to measure elapsed time instead of user CPU time. ... The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128 cbc 106520.59k 114380.16k 116741.46k 117489.32k 117563.39k Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html