Hello all,
I am working with Linux on AM3352 chip,
and trying to enable Hardware crypto Acceleration.
After I have done all procedure of following crypto user guide,
when try openssl speed tests including cryptodev,
I can see improve on "AES" speed test, but "MD5" and "SHA" is not.
# MD5
## cryptodev disable
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
md5 3679.20k 14070.46k 41045.79k 80238.37k 109711.91k
Command being timed: "./apps/openssl speed -evp md5"
User time (seconds): 14.72
System time (seconds): 0.09
Percent of CPU this job got: 98%
## cryptodev enable
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
md5 3794.58k 14044.85k 41206.69k 79657.45k 109993.68k
Command being timed: "./apps/openssl speed -evp md5"
User time (seconds): 14.75
System time (seconds): 0.05
Percent of CPU this job got: 97%
|
# SHA1
## cryptodev disable
sha1 3403.88k 11610.06k 30515.55k 51650.28k 64844.54k
Command being timed: "./apps/openssl speed -evp sha1"
User time (seconds): 14.80
System time (seconds): 0.03
Percent of CPU this job got: 98%
## cryptodev enable
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
sha1 3427.62k 11773.82k 30686.30k 51878.05k 64713.99k
Command being timed: "./apps/openssl speed -evp sha1"
User time (seconds): 14.77
System time (seconds): 0.01
Percent of CPU this job got: 97%
|
# AES256
## cryptodev disable
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 20365.13k 25080.82k 26202.21k 26563.60k 26680.54k
Command being timed: "./apps/openssl speed -evp aes-256-cbc"
User time (seconds): 14.84
System time (seconds): 0.02
Percent of CPU this job got: 98%
## cryptodev enable
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 25400.32k 49934.22k 202927.54k 3285401.60k 5858918.40k
Command being timed: "./apps/openssl speed -evp aes-256-cbc"
User time (seconds): 0.26
System time (seconds): 9.33
Percent of CPU this job got: 63%
|
I already enabled following drivers on kernel config.
-*- Cryptographic API --->
[*] Hardware crypto devices --->
--- Hardware crypto devices
<*> Support for OMAP MD5/SHA1/SHA2 hw accelerator
<*> Support for OMAP AES hw engine
<*> Support for OMAP DES3DES hw engine
and see following messages on Linux boot.
[ 1.873989] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.881392] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
Do I need another configuration to make "MD5" and "SHA1" Hardware acceleration work?
I am using Linux kernel based on "ti-linux-kernel.git" Version 3.14.48.
"cryptodev" source code is get from "AM335xSDK 08_00_00_00".
And, OpenSSL version is "OpenSSL 1.0.1t 3 May 2016", it's already make by self to support
cryptodev accrding to README in cryptodev source code.
Best regards,
Yuki