[Voyage-linux] How to to enable OCF for openssl?

Michael Fung (spam-protected)
Fri Sep 11 16:44:49 HKT 2009


Dear all,


Could anyone give me pointers or steps to enable H/W aes on my Alix board?

I tried these and it still does not work:

I am using voyage 0.6.2

modprobe geode-aes ocf cryptosoft cryptodev

use lsmod to confirm they are loaded

installed openssl0.9.8g-15+lenny1.ocf  (checked with dpkg -s)

then run:
# openssl speed -evp aes128
Doing aes-128-cbc for 3s on 16 size blocks: 961140 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 308167 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 83509 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 21321 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 2048 size blocks: 10688 aes-128-cbc's in 3.00s
OpenSSL 0.9.8g 19 Oct 2007
built on: Sun Jun 28 01:45:33 HKT 2009
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used: times
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   2048 bytes
aes-128-cbc       5126.08k     6574.23k     7126.10k     7277.57k     7296.34k

If I run:
# openssl speed -evp aes128 -engine cryptodev 
It gives:
invalid engine "cryptodev"
and performance is still the same.


Thanks in advance,
Michael



More information about the Voyage-linux mailing list