[Voyage-linux] voyage 0.7.5 and geode_aes

who ami (spam-protected)
Sun Sep 4 00:43:04 HKT 2011


Hi list,

I have an Alix Board with a AMD Geode CPU (/proc/cpuinfo):

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 5
model           : 10
model name      : Geode(TM) Integrated Processor by AMD PCS
stepping        : 2
cpu MHz         : 498.038
...

The AES engine is enabled (dmesg):

[    6.295616] geode-aes: GEODE AES engine enabled.

The following kernelmodules are loaded (lsmod | egrep -i "cryp|aes|geode"):

cryptodev               8806  0
cryptosoft              9809  0
ocf                    16938  2 cryptodev,cryptosoft
geodewdt                2055  2
cs5535_mfgpt            2149  1 geodewdt,[permanent]
geode_aes               3802  0
geode_rng                808  0
rng_core                2346  1 geode_rng

The geode_aes module is not in use !
So openssl does not list the cryptodev engine (openssl engine):

(padlock) VIA PadLock (no-RNG, no-ACE)
(dynamic) Dynamic engine loading support

It looks that openssl does not use the aes cryptoengine of the geode:

openssl speed -evp aes-128-cbc -engine cryptodev
invalid engine "cryptodev"
2013:error:25066067:DSO support routines:DLFCN_LOAD:could not load the 
shared 
library:dso_dlfcn.c:162:filename(/usr/lib/ssl/engines/libcryptodev.so): 
/usr/lib/ssl/engines/libcryptodev.so: cannot open shared object file: No 
such file or directory
2013:error:25070067:DSO support routines:DSO_load:could not load the 
shared library:dso_lib.c:244:
2013:error:260B6084:engine routines:DYNAMIC_LOAD:dso not 
found:eng_dyn.c:450:
2013:error:2606A074:engine routines:ENGINE_by_id:no such 
engine:eng_list.c:416:id=cryptodev
2013:error:25066067:DSO support routines:DLFCN_LOAD:could not load the 
shared library:dso_dlfcn.c:162:filename(libcryptodev.so): 
libcryptodev.so: cannot open shared object file: No such file or directory
2013:error:25070067:DSO support routines:DSO_load:could not load the 
shared library:dso_lib.c:244:
2013:error:260B6084:engine routines:DYNAMIC_LOAD:dso not 
found:eng_dyn.c:450:
Doing aes-128-cbc for 3s on 16 size blocks: 876809 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 317081 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 89613 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 23201 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 8192 size blocks: 2927 aes-128-cbc's in 2.99s
OpenSSL 0.9.8o 01 Jun 2010
built on: Thu Feb 10 19:59:33 UTC 2011
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   8192 
bytes
aes-128-cbc       4676.31k     6764.39k     7646.98k     7919.27k     
8019.39k

The shared lib /usr/lib/ssl/engines/libcryptodev.so is missing. I have 
reinstalled openssl and libssl (by issueing a "apt-get install 
--reinstall openssl libssl0.9.8"), but that doesn't matter.

I like the aes engine to be used for ssh, ssl and disk encrytion. What 
can/must I do to accomplish this ?

Thanks in advance :-)




More information about the Voyage-linux mailing list