Perhaps someone can point me in the right direction here. I had followed the fairly simple instructions to get cryptodev up and running on my Pogoplug v4 with a Marvell Kirkwood 800MHz SoC. The SoC has a hardware encryption engine that should accelerate AES encryption.
My issue is that certain things like SHA1 are clearly showing hardware acceleration, while AES and DES are not. Looking at the kernel module, I cannot find any options to tinker with. So either openssl is avoiding using cryptodev for AES and DES, or cryptodev isn't seeming to work properly for them.
# openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 1407258 aes-256 cbc's in 2.93s
Doing aes-256 cbc for 3s on 64 size blocks: 394512 aes-256 cbc's in 2.94s
Doing aes-256 cbc for 3s on 256 size blocks: 101470 aes-256 cbc's in 2.93s
Doing aes-256 cbc for 3s on 1024 size blocks: 25620 aes-256 cbc's in 2.93s
Doing aes-256 cbc for 3s on 8192 size blocks: 3189 aes-256 cbc's in 2.91s
..nope...
# openssl speed aes-128-cbc
Doing aes-128 cbc for 3s on 16 size blocks: 1873074 aes-128 cbc's in 2.92s
Doing aes-128 cbc for 3s on 64 size blocks: 527350 aes-128 cbc's in 2.94s
Doing aes-128 cbc for 3s on 256 size blocks: 136055 aes-128 cbc's in 2.93s
Doing aes-128 cbc for 3s on 1024 size blocks: 34330 aes-128 cbc's in 2.94s
Doing aes-128 cbc for 3s on 8192 size blocks: 4300 aes-128 cbc's in 2.94s
..nope...
# openssl speed sha1
Doing sha1 for 3s on 16 size blocks: 15722 sha1's in 0.35s
Doing sha1 for 3s on 64 size blocks: 14877 sha1's in 0.27s
Doing sha1 for 3s on 256 size blocks: 14755 sha1's in 0.28s
Doing sha1 for 3s on 1024 size blocks: 12797 sha1's in 0.28s
Doing sha1 for 3s on 8192 size blocks: 6603 sha1's in 0.19s
..yep...
Do I need to modify the OpenSSL configuration for this?