[Soekris] glxsb - how to use in FreeBSD ? (again)

Marek Salwerowicz marek_sal at wp.pl
Sun Jan 16 18:37:44 UTC 2011




>Did you try with -evp in openssl?


so5501a% openssl speed -elapsed  aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc       5634.93k     5900.56k     6018.28k     6045.71k     6050.87k
so5501a% openssl speed -elapsed  -evp aes-128-cbc
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc        247.10k      958.72k     3524.75k    10561.53k    22191.98k
so5501a% 

So with -evp option it is faster.



>The best is to crypt a file to test :
> dd if=/dev/zero bs=4k count=100000 | openssl enc -aes-128-cbc -e
> -out /dev/null -nosalt -k abcdefhij -engine cryptodev


so5501a% dd if=/dev/zero bs=4k count=10000 | openssl enc -aes-128-cbc -e -out /dev/null -nosalt -k abcdefghij
10000+0 records in
10000+0 records out
40960000 bytes transferred in 7.309965 secs (5603310 bytes/sec)
so5501a% # kldload glxsb
so5501a% # kldload cryptodev
so5501a% dd if=/dev/zero bs=4k count=10000 | openssl enc -aes-128-cbc -e -out /dev/null -nosalt -k abcdefghij -engine cryptodev
engine "cryptodev" set.
10000+0 records in
10000+0 records out
40960000 bytes transferred in 2.619638 secs (15635748 bytes/sec)


so now it is faster - the problem was I was making wrong test.. 
Thanks for suggestions !


More information about the Soekris-tech mailing list