Thread: [Ocf-linux-users] how to calculate MD5 with ocf-linux-20060301
Brought to you by:
david-m
|
From: wangkai1219 <wan...@gm...> - 2008-03-21 03:40:19
|
Dear Sir/Madam,
I'm a user of ocf-linux-20060301.
I learned how to use ocf-linux by reading the code cryptotest.c in crypto-tools-20060301.
I found that the minkeylen and maxkeylen for MD5 are 16. But I want to use MD5 without mackey, that is, not HMAC-MD5.
So could you tell me how to use ocf-linux to calculate the MD5, not md5_hmac, and without mackey.
Thank you and best wishes.
---------------------------------------------------------------
Sincerely K.Wang
Rm 1-509, Information Sci. & Tech. Bldg (FIT)
Dept. of Computer Sci. & Tech.
Tsinghua University
Beijing 100084, P. R. China
Tele: (+86)010-62777703
2008-03-21
|
|
From: wangkai1219 <wan...@gm...> - 2008-03-21 03:24:15
|
Dear Sir/Madam,
I'm a user of ocf-linux-20060301.
I learned how to use ocf-linux by reading the code cryptotest.c in crypto-tools-20060301.
I found that the minkeylen and maxkeylen for MD5 are 16. But I want to use MD5 without mackey, that is, not HMAC-MD5.
So could you tell me how to use ocf-linux to calculate the MD5, not md5_hmac, and without mackey.
Thank you and best wishes.
---------------------------------------------------------------
Sincerely K.Wang
Rm 1-509, Information Sci. & Tech. Bldg (FIT)
Dept. of Computer Sci. & Tech.
Tsinghua University
Beijing 100084, P. R. China
Tele: (+86)010-62777703
2008-03-21
|
|
From: David M. <Dav...@se...> - 2008-03-24 12:27:55
|
Jivin wangkai1219 lays it down ... > Dear Sir/Madam, > I'm a user of ocf-linux-20060301. > I learned how to use ocf-linux by reading the code cryptotest.c in crypto-tools-20060301. > I found that the minkeylen and maxkeylen for MD5 are 16. But I want to use MD5 without mackey, that is, not HMAC-MD5. > So could you tell me how to use ocf-linux to calculate the MD5, not md5_hmac, and without mackey. Get the latest release, I think that restriction was cleaned up sometime last year, Cheers, Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |
|
From: wangkai1219 <wan...@gm...> - 2008-03-24 15:02:06
|
Thank you. But I don't know if the latest release ocf-linux-20071215 is fit for ixp400, which is the software toolkit for IXP425. And which ixp400 release matches the ocf-linux-20071215. Can anybody help me? ------------------ wangkai1219 2008-03-24 ------------------------------------------------------------- From:David McCullough Send time:2008-03-24 20:28:03 To:wangkai1219 Cc:ocf-linux-users Theme:Re: [Ocf-linux-users] how to calculate MD5 with ocf-linux-20060301 Jivin wangkai1219 lays it down ... > Dear Sir/Madam, > I'm a user of ocf-linux-20060301. > I learned how to use ocf-linux by reading the code cryptotest.c in crypto-tools-20060301. > I found that the minkeylen and maxkeylen for MD5 are 16. But I want to use MD5 without mackey, that is, not HMAC-MD5. > So could you tell me how to use ocf-linux to calculate the MD5, not md5_hmac, and without mackey. Get the latest release, I think that restriction was cleaned up sometime last year, Cheers, Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com --------------------------------------------------------------- Sincerely K.Wang Rm 1-509, Information Sci. & Tech. Bldg (FIT) Dept. of Computer Sci. & Tech. Tsinghua University Beijing 100084, P. R. China Tele: (+86)010-62777703 2008-03-24 |
|
From: David M. <Dav...@se...> - 2008-03-26 00:25:31
|
Jivin wangkai1219 lays it down ... > Thank you. > But I don't know if the latest release ocf-linux-20071215 is fit for ixp400, > which is the software toolkit for IXP425. > And which ixp400 release matches the ocf-linux-20071215. > Can anybody help me? Every ocf release works with ixp400, since that is the primary platform I test on. Which access library you use should not matter too much. I would recommend that you use the snapgear.org source, and depending on which kernel version you have, but the 2.4 access library is fine for all as far as I can remember. The snapgear.org linux distro (and access lib patch) will give you everything you need to get ocf+accesslib and recent kernels on ixp4XX. If nothing else, use it as a reference source tree if you like. Cheers, Davidm > > ------------------ > wangkai1219 > 2008-03-24 > > ------------------------------------------------------------- > From:David McCullough > Send time:2008-03-24 20:28:03 > To:wangkai1219 > Cc:ocf-linux-users > Theme:Re: [Ocf-linux-users] how to calculate MD5 with ocf-linux-20060301 > > > Jivin wangkai1219 lays it down ... > > Dear Sir/Madam, > > I'm a user of ocf-linux-20060301. > > I learned how to use ocf-linux by reading the code cryptotest.c in crypto-tools-20060301. > > I found that the minkeylen and maxkeylen for MD5 are 16. But I want to use MD5 without mackey, that is, not HMAC-MD5. > > So could you tell me how to use ocf-linux to calculate the MD5, not md5_hmac, and without mackey. > > Get the latest release, I think that restriction was cleaned up > sometime last year, > > Cheers, > Davidm > > -- > David McCullough, dav...@se..., Ph:+61 734352815 > Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com > > --------------------------------------------------------------- > Sincerely K.Wang > > Rm 1-509, Information Sci. & Tech. Bldg (FIT) > Dept. of Computer Sci. & Tech. > Tsinghua University > Beijing 100084, P. R. China > Tele: (+86)010-62777703 > > 2008-03-24 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ocf-linux-users mailing list > Ocf...@li... > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |
|
From: Nipper L. <Lee...@fr...> - 2008-03-22 00:46:34
|
Hello, I'm working with the ocf-linux-20071215 release targeting hardware with talitos (FSL SEC) and attempting to get openssl to use the hardware for acceleration. I put ocf into the Linux 2.6.23 kernel and made some compile fixes in crypto/ocf/talitos.c to get it building. (I will post patches once they are working.) I applied the openssl-0.9.8g.patch to openssl and configured openssl --with cryptodev and openssl built ok. I've hit a snag running openssl and I need a nudge in the right direction. When I run 'openssl speed' referencing the cryptodev engine (see console output below), there's a missing engines library (libcryptodev.so). I'm not sure what software component should provide this library. Any help is appreciated. Thanks, Lee Nipper / # openssl speed -evp des -engine cryptodev -elapsed invalid engine "cryptodev" 708:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared lib rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): /usr/lib/engine s/libcryptodev.so: cannot open shared object file: No such file or directory 708:error:25070067:DSO support routines:DSO_load:could not load the shared libra ry:dso_lib.c:244: 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450: 708:error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:415:id =cryptodev 708:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared lib rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: cannot open sha red object file: No such file or directory 708:error:25070067:DSO support routines:DSO_load:could not load the shared libra ry:dso_lib.c:244: 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450: You have chosen to measure elapsed time instead of user CPU time. To get the most accurate results, try to run this program when this computer is idle. Doing des-cbc for 3s on 16 size blocks: 1226408 des-cbc's in 3.00s Doing des-cbc for 3s on 64 size blocks: 341066 des-cbc's in 3.00s Doing des-cbc for 3s on 256 size blocks: 87708 des-cbc's in 3.00s Doing des-cbc for 3s on 1024 size blocks: 22085 des-cbc's in 3.00s Doing des-cbc for 3s on 2048 size blocks: 11056 des-cbc's in 3.00s OpenSSL 0.9.8g 19 Oct 2007 built on: Fri Mar 21 18:56:03 CDT 2008 options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) aes(partial) ide a(int) blowfish(idx) compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN -DB_ENDIAN -DTERMIO -O3 -Wall available timing options: TIMES TIMEB HZ=100 [sysconf value] timing function used: ftime The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 2048 bytes des-cbc 6540.84k 7266.39k 7474.45k 7528.31k 7537.51k / # |
|
From: David M. <Dav...@se...> - 2008-03-24 12:33:33
|
Jivin Nipper Lee lays it down ... > Hello, > > I'm working with the ocf-linux-20071215 release targeting hardware > with talitos (FSL SEC) and attempting to get openssl to use the > hardware for acceleration. > > I put ocf into the Linux 2.6.23 kernel and made some compile > fixes in crypto/ocf/talitos.c to get it building. > (I will post patches once they are working.) > > I applied the openssl-0.9.8g.patch to openssl > and configured openssl --with cryptodev and openssl built ok. > > I've hit a snag running openssl and I need a nudge in the right > direction. > > When I run 'openssl speed' referencing the cryptodev engine > (see console output below), there's a missing engines library > (libcryptodev.so). > I'm not sure what software component should provide this library. I normally build it without HW support. I think it gets confused because cryptodev is built in and never loaded as a .so. Add "no-hw" to your config options and see if that helps, Cheers, Davidm > / # openssl speed -evp des -engine cryptodev -elapsed > invalid engine "cryptodev" > 708:error:25066067:DSO support routines:DLFCN_LOAD:could not load the > shared lib > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): > /usr/lib/engine > s/libcryptodev.so: cannot open shared object file: No such file or > directory > 708:error:25070067:DSO support routines:DSO_load:could not load the > shared libra > ry:dso_lib.c:244: > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > found:eng_dyn.c:450: > 708:error:2606A074:engine routines:ENGINE_by_id:no such > engine:eng_list.c:415:id > =cryptodev > 708:error:25066067:DSO support routines:DLFCN_LOAD:could not load the > shared lib > rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: cannot > open sha > red object file: No such file or directory > 708:error:25070067:DSO support routines:DSO_load:could not load the > shared libra > ry:dso_lib.c:244: > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > found:eng_dyn.c:450: > You have chosen to measure elapsed time instead of user CPU time. > To get the most accurate results, try to run this > program when this computer is idle. > Doing des-cbc for 3s on 16 size blocks: 1226408 des-cbc's in 3.00s > Doing des-cbc for 3s on 64 size blocks: 341066 des-cbc's in 3.00s > Doing des-cbc for 3s on 256 size blocks: 87708 des-cbc's in 3.00s > Doing des-cbc for 3s on 1024 size blocks: 22085 des-cbc's in 3.00s > Doing des-cbc for 3s on 2048 size blocks: 11056 des-cbc's in 3.00s > OpenSSL 0.9.8g 19 Oct 2007 > built on: Fri Mar 21 18:56:03 CDT 2008 > options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) > aes(partial) ide > a(int) blowfish(idx) > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT > -DDSO_DLFCN -DH > AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN -DB_ENDIAN -DTERMIO -O3 -Wall > available timing options: TIMES TIMEB HZ=100 [sysconf value] > timing function used: ftime > The 'numbers' are in 1000s of bytes per second processed. > type 16 bytes 64 bytes 256 bytes 1024 bytes 2048 > bytes > des-cbc 6540.84k 7266.39k 7474.45k 7528.31k > 7537.51k > / # > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ocf-linux-users mailing list > Ocf...@li... > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |
|
From: Nipper L. <Lee...@fr...> - 2008-03-24 15:05:32
|
David, Thanks for the suggestion. Results are the same (see below). If cryptodev is built in, then the code which is attempting to load libcryptdev.so is the focus. Lee / # openssl speed -evp des -engine cryptodev -elapsed invalid engine "cryptodev" 703:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared lib rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): /usr/lib/engine s/libcryptodev.so: cannot open shared object file: No such file or directory 703:error:25070067:DSO support routines:DSO_load:could not load the shared libra ry:dso_lib.c:244: 703:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450: 703:error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:415:id =cryptodev 703:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared lib rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: cannot open sha red object file: No such file or directory 703:error:25070067:DSO support routines:DSO_load:could not load the shared libra ry:dso_lib.c:244: 703:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450: You have chosen to measure elapsed time instead of user CPU time. To get the most accurate results, try to run this program when this computer is idle. Doing des-cbc for 3s on 16 size blocks: 1226557 des-cbc's in 3.00s Doing des-cbc for 3s on 64 size blocks: 334717 des-cbc's in 3.00s Doing des-cbc for 3s on 256 size blocks: 87400 des-cbc's in 3.00s Doing des-cbc for 3s on 1024 size blocks: 22095 des-cbc's in 3.00s Doing des-cbc for 3s on 2048 size blocks: 11068 des-cbc's in 3.00s OpenSSL 0.9.8g 19 Oct 2007 built on: Mon Mar 24 09:45:54 CDT 2008 options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) aes(partial) ide a(int) blowfish(idx) compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN -DOPENSSL_NO_HW -DB_ENDIAN -DTERMIO -O3 -Wall available timing options: TIMES TIMEB HZ=100 [sysconf value] timing function used: ftime The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 2048 bytes des-cbc 6539.46k 7131.12k 7448.20k 7531.72k 7545.69k / # > -----Original Message----- > From: David McCullough [mailto:Dav...@se...] > Sent: Monday, March 24, 2008 7:33 AM > To: Nipper Lee > Cc: ocf-linux-users > Subject: Re: [Ocf-linux-users] ocf-linux-20071215 and openssl > speed -engine cryptodev > > > Jivin Nipper Lee lays it down ... > > Hello, > > > > I'm working with the ocf-linux-20071215 release targeting hardware > > with talitos (FSL SEC) and attempting to get openssl to use the > > hardware for acceleration. > > > > I put ocf into the Linux 2.6.23 kernel and made some > compile fixes in > > crypto/ocf/talitos.c to get it building. > > (I will post patches once they are working.) > > > > I applied the openssl-0.9.8g.patch to openssl and > configured openssl > > --with cryptodev and openssl built ok. > > > > I've hit a snag running openssl and I need a nudge in the right > > direction. > > > > When I run 'openssl speed' referencing the cryptodev engine (see > > console output below), there's a missing engines library > > (libcryptodev.so). > > I'm not sure what software component should provide this library. > > I normally build it without HW support. I think it gets > confused because cryptodev is built in and never loaded as a .so. > > Add "no-hw" to your config options and see if that helps, > > Cheers, > Davidm > > > / # openssl speed -evp des -engine cryptodev -elapsed > invalid engine > > "cryptodev" > > 708:error:25066067:DSO support routines:DLFCN_LOAD:could > not load the > > shared lib > > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): > > /usr/lib/engine > > s/libcryptodev.so: cannot open shared object file: No such file or > > directory 708:error:25070067:DSO support > routines:DSO_load:could not > > load the shared libra > > ry:dso_lib.c:244: > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > found:eng_dyn.c:450: > > 708:error:2606A074:engine routines:ENGINE_by_id:no such > > engine:eng_list.c:415:id =cryptodev 708:error:25066067:DSO support > > routines:DLFCN_LOAD:could not load the shared lib > > rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: > > cannot open sha red object file: No such file or directory > > 708:error:25070067:DSO support routines:DSO_load:could not load the > > shared libra > > ry:dso_lib.c:244: > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > found:eng_dyn.c:450: > > You have chosen to measure elapsed time instead of user CPU time. > > To get the most accurate results, try to run this program when this > > computer is idle. > > Doing des-cbc for 3s on 16 size blocks: 1226408 des-cbc's in 3.00s > > Doing des-cbc for 3s on 64 size blocks: 341066 des-cbc's in 3.00s > > Doing des-cbc for 3s on 256 size blocks: 87708 des-cbc's in 3.00s > > Doing des-cbc for 3s on 1024 size blocks: 22085 des-cbc's in 3.00s > > Doing des-cbc for 3s on 2048 size blocks: 11056 des-cbc's in 3.00s > > OpenSSL 0.9.8g 19 Oct 2007 built on: Fri Mar 21 18:56:03 CDT 2008 > > options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) > > aes(partial) ide > > a(int) blowfish(idx) > > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT > > -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN -DB_ENDIAN > > -DTERMIO -O3 -Wall available timing options: TIMES TIMEB HZ=100 > > [sysconf value] timing function used: ftime The 'numbers' > are in 1000s > > of bytes per second processed. > > type 16 bytes 64 bytes 256 bytes 1024 > bytes 2048 > > bytes > > des-cbc 6540.84k 7266.39k 7474.45k 7528.31k > > 7537.51k > > / # > > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all > challenges. > > Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Ocf-linux-users mailing list > > Ocf...@li... > > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > > > > -- > David McCullough, dav...@se..., > Ph:+61 734352815 > Secure Computing - SnapGear http://www.uCdot.org > http://www.cyberguard.com > |
|
From: Takashi L. <ta...@li...> - 2008-03-24 14:42:55
|
Hya, we ran into the same trouble some time ago (though using different hardware, i.e. x86 and HiFn accelerators). We (unfortunatly only partly) solved the problem by applying the hints of the README.ENGINE file included in the OpenSSL source (as the cryptodev.so engine was never built automatically). Before that the errors encountered were exactly as stated below ... In short we manually compiled the cryptodev engine according the README.ENGINE file, but 2 caveats remained (and I haven't had the time to look into it more concisely yet): We only got it to compile, load and run, with not only using --with-cryptodev but it also defining --with-cryptodev-digests (which we appearently wanted to avoid) when running ./configure. Without the second, the engine would compile and link cleanly, but OpenSSL would refuse to load the engine at runtime (error msg the same as below) ... Moreover OpenSSL refuses to load the engine (independently of stating --with-cryptodev-digests or not) in our Linux-2.4/uClibC environment :-( though again it compiles without any warnings ... Error msg again the same as below ... Well, at least sort of some help(?) ... Or probably someone around who already solved this? regards, -ta On Monday 24 March 2008 13:33:28 David McCullough wrote: > Jivin Nipper Lee lays it down ... > > > Hello, > > > > I'm working with the ocf-linux-20071215 release targeting hardware > > with talitos (FSL SEC) and attempting to get openssl to use the > > hardware for acceleration. > > > > I put ocf into the Linux 2.6.23 kernel and made some compile > > fixes in crypto/ocf/talitos.c to get it building. > > (I will post patches once they are working.) > > > > I applied the openssl-0.9.8g.patch to openssl > > and configured openssl --with cryptodev and openssl built ok. > > > > I've hit a snag running openssl and I need a nudge in the right > > direction. > > > > When I run 'openssl speed' referencing the cryptodev engine > > (see console output below), there's a missing engines library > > (libcryptodev.so). > > I'm not sure what software component should provide this library. > > I normally build it without HW support. I think it gets confused > because cryptodev is built in and never loaded as a .so. > > Add "no-hw" to your config options and see if that helps, > > Cheers, > Davidm > > > / # openssl speed -evp des -engine cryptodev -elapsed > > invalid engine "cryptodev" > > 708:error:25066067:DSO support routines:DLFCN_LOAD:could not load the > > shared lib > > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): > > /usr/lib/engine > > s/libcryptodev.so: cannot open shared object file: No such file or > > directory > > 708:error:25070067:DSO support routines:DSO_load:could not load the > > shared libra > > ry:dso_lib.c:244: > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > found:eng_dyn.c:450: > > 708:error:2606A074:engine routines:ENGINE_by_id:no such > > engine:eng_list.c:415:id > > =cryptodev > > 708:error:25066067:DSO support routines:DLFCN_LOAD:could not load the > > shared lib > > rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: cannot > > open sha > > red object file: No such file or directory > > 708:error:25070067:DSO support routines:DSO_load:could not load the > > shared libra > > ry:dso_lib.c:244: > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > found:eng_dyn.c:450: > > You have chosen to measure elapsed time instead of user CPU time. > > To get the most accurate results, try to run this > > program when this computer is idle. > > Doing des-cbc for 3s on 16 size blocks: 1226408 des-cbc's in 3.00s > > Doing des-cbc for 3s on 64 size blocks: 341066 des-cbc's in 3.00s > > Doing des-cbc for 3s on 256 size blocks: 87708 des-cbc's in 3.00s > > Doing des-cbc for 3s on 1024 size blocks: 22085 des-cbc's in 3.00s > > Doing des-cbc for 3s on 2048 size blocks: 11056 des-cbc's in 3.00s > > OpenSSL 0.9.8g 19 Oct 2007 > > built on: Fri Mar 21 18:56:03 CDT 2008 > > options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) > > aes(partial) ide > > a(int) blowfish(idx) > > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT > > -DDSO_DLFCN -DH > > AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN -DB_ENDIAN -DTERMIO -O3 -Wall > > available timing options: TIMES TIMEB HZ=100 [sysconf value] > > timing function used: ftime > > The 'numbers' are in 1000s of bytes per second processed. > > type 16 bytes 64 bytes 256 bytes 1024 bytes 2048 > > bytes > > des-cbc 6540.84k 7266.39k 7474.45k 7528.31k > > 7537.51k > > / # > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Ocf-linux-users mailing list > > Ocf...@li... > > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users |
|
From: Nipper L. <Lee...@fr...> - 2008-03-24 18:01:38
|
David, I had forgotten to do 'mknod /dev/crypto c 10 70', and so your suggestion to use the no-hw option on the Configure line actually fixed the problem. So, "no-hw" combined with "--with-cryptodev" on the config works for me. Does this make sense ? Interestingly, after I have done the 'mknod' it seems that the '-engine cryptodev' is redundant to openssl, since it performs using the crypto device without the -engine parameter. If I 'mv /dev/crypto /dev/crypto-hide', then I see the performance change since it is using software. Thanks for your help. Lee > -----Original Message----- > From: Nipper Lee > Sent: Monday, March 24, 2008 10:01 AM > To: ocf-linux-users > Subject: RE: [Ocf-linux-users] ocf-linux-20071215 and openssl > speed -engine cryptodev > > David, Thanks for the suggestion. > > Results are the same (see below). > > If cryptodev is built in, then the code which is attempting > to load libcryptdev.so is the focus. > > Lee > > / # openssl speed -evp des -engine cryptodev -elapsed invalid > engine "cryptodev" > 703:error:25066067:DSO support routines:DLFCN_LOAD:could not > load the shared lib > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so > ): /usr/lib/engine > s/libcryptodev.so: cannot open shared object file: No such > file or directory 703:error:25070067:DSO support > routines:DSO_load:could not load the shared libra > ry:dso_lib.c:244: > 703:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > found:eng_dyn.c:450: > 703:error:2606A074:engine routines:ENGINE_by_id:no such > engine:eng_list.c:415:id =cryptodev 703:error:25066067:DSO > support routines:DLFCN_LOAD:could not load the shared lib > rary:dso_dlfcn.c:162:filename(libcryptodev.so): > libcryptodev.so: cannot open sha red object file: No such > file or directory 703:error:25070067:DSO support > routines:DSO_load:could not load the shared libra > ry:dso_lib.c:244: > 703:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > found:eng_dyn.c:450: > You have chosen to measure elapsed time instead of user CPU time. > To get the most accurate results, try to run this program > when this computer is idle. > Doing des-cbc for 3s on 16 size blocks: 1226557 des-cbc's in > 3.00s Doing des-cbc for 3s on 64 size blocks: 334717 > des-cbc's in 3.00s Doing des-cbc for 3s on 256 size blocks: > 87400 des-cbc's in 3.00s Doing des-cbc for 3s on 1024 size > blocks: 22095 des-cbc's in 3.00s Doing des-cbc for 3s on 2048 > size blocks: 11068 des-cbc's in 3.00s OpenSSL 0.9.8g 19 Oct > 2007 built on: Mon Mar 24 09:45:54 CDT 2008 > options:bn(64,32) md2(int) rc4(ptr,char) > des(idx,risc1,16,long) aes(partial) ide > a(int) blowfish(idx) > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS > -D_REENTRANT -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV > -DB_ENDIAN -DOPENSSL_NO_HW -DB_ENDIAN -DTERMIO -O3 -Wall > available timing options: TIMES TIMEB HZ=100 [sysconf value] > timing function used: ftime The 'numbers' are in 1000s of > bytes per second processed. > type 16 bytes 64 bytes 256 bytes 1024 > bytes 2048 bytes > des-cbc 6539.46k 7131.12k 7448.20k > 7531.72k 7545.69k > / # > > > > > -----Original Message----- > > From: David McCullough > [mailto:Dav...@se...] > > Sent: Monday, March 24, 2008 7:33 AM > > To: Nipper Lee > > Cc: ocf-linux-users > > Subject: Re: [Ocf-linux-users] ocf-linux-20071215 and openssl > > speed -engine cryptodev > > > > > > Jivin Nipper Lee lays it down ... > > > Hello, > > > > > > I'm working with the ocf-linux-20071215 release targeting > hardware > > > with talitos (FSL SEC) and attempting to get openssl to use the > > > hardware for acceleration. > > > > > > I put ocf into the Linux 2.6.23 kernel and made some > > compile fixes in > > > crypto/ocf/talitos.c to get it building. > > > (I will post patches once they are working.) > > > > > > I applied the openssl-0.9.8g.patch to openssl and > > configured openssl > > > --with cryptodev and openssl built ok. > > > > > > I've hit a snag running openssl and I need a nudge in the right > > > direction. > > > > > > When I run 'openssl speed' referencing the cryptodev engine (see > > > console output below), there's a missing engines library > > > (libcryptodev.so). > > > I'm not sure what software component should provide this library. > > > > I normally build it without HW support. I think it gets > > confused because cryptodev is built in and never loaded as a .so. > > > > Add "no-hw" to your config options and see if that helps, > > > > Cheers, > > Davidm > > > > > / # openssl speed -evp des -engine cryptodev -elapsed > > invalid engine > > > "cryptodev" > > > 708:error:25066067:DSO support routines:DLFCN_LOAD:could > > not load the > > > shared lib > > > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): > > > /usr/lib/engine > > > s/libcryptodev.so: cannot open shared object file: No > such file or > > > directory 708:error:25070067:DSO support > > routines:DSO_load:could not > > > load the shared libra > > > ry:dso_lib.c:244: > > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > > found:eng_dyn.c:450: > > > 708:error:2606A074:engine routines:ENGINE_by_id:no such > > > engine:eng_list.c:415:id =cryptodev > 708:error:25066067:DSO support > > > routines:DLFCN_LOAD:could not load the shared lib > > > rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: > > > cannot open sha red object file: No such file or directory > > > 708:error:25070067:DSO support routines:DSO_load:could > not load the > > > shared libra > > > ry:dso_lib.c:244: > > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > > found:eng_dyn.c:450: > > > You have chosen to measure elapsed time instead of user CPU time. > > > To get the most accurate results, try to run this program > when this > > > computer is idle. > > > Doing des-cbc for 3s on 16 size blocks: 1226408 des-cbc's > in 3.00s > > > Doing des-cbc for 3s on 64 size blocks: 341066 des-cbc's in 3.00s > > > Doing des-cbc for 3s on 256 size blocks: 87708 des-cbc's in 3.00s > > > Doing des-cbc for 3s on 1024 size blocks: 22085 des-cbc's > in 3.00s > > > Doing des-cbc for 3s on 2048 size blocks: 11056 des-cbc's > in 3.00s > > > OpenSSL 0.9.8g 19 Oct 2007 built on: Fri Mar 21 18:56:03 CDT 2008 > > > options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) > > > aes(partial) ide > > > a(int) blowfish(idx) > > > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT > > > -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN > -DB_ENDIAN > > > -DTERMIO -O3 -Wall available timing options: TIMES TIMEB HZ=100 > > > [sysconf value] timing function used: ftime The 'numbers' > > are in 1000s > > > of bytes per second processed. > > > type 16 bytes 64 bytes 256 bytes 1024 > > bytes 2048 > > > bytes > > > des-cbc 6540.84k 7266.39k 7474.45k 7528.31k > > > 7537.51k > > > / # > > > > > > > > > ---------------------------------------------------------------------- > > > --- This SF.net email is sponsored by: Microsoft Defy all > > challenges. > > > Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Ocf-linux-users mailing list > > > Ocf...@li... > > > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > > > > > > > -- > > David McCullough, dav...@se..., > > Ph:+61 734352815 > > Secure Computing - SnapGear http://www.uCdot.org > > http://www.cyberguard.com > > > |
|
From: David M. <Dav...@se...> - 2008-03-26 00:20:25
|
Jivin Nipper Lee lays it down ... > David, > > I had forgotten to do 'mknod /dev/crypto c 10 70', and so your > suggestion > to use the no-hw option on the Configure line actually fixed the > problem. > > So, "no-hw" combined with "--with-cryptodev" on the config works for me. > Does this make sense ? Well, it does in the sense that it is what I use. You should not need the "no-hw" but the cryptodev support is not 100% correct. It should work either way. > Interestingly, after I have done the 'mknod' it seems that the > '-engine cryptodev' is redundant to openssl, since it performs using the > crypto device > without the -engine parameter. If I 'mv /dev/crypto /dev/crypto-hide', > then I see the > performance change since it is using software. Yes, it will use cryptodev by default, if present. I usually just do: rmmod cryptodev run test modprobe cryptodev Cheers, Davidm > > -----Original Message----- > > From: Nipper Lee > > Sent: Monday, March 24, 2008 10:01 AM > > To: ocf-linux-users > > Subject: RE: [Ocf-linux-users] ocf-linux-20071215 and openssl > > speed -engine cryptodev > > > > David, Thanks for the suggestion. > > > > Results are the same (see below). > > > > If cryptodev is built in, then the code which is attempting > > to load libcryptdev.so is the focus. > > > > Lee > > > > / # openssl speed -evp des -engine cryptodev -elapsed invalid > > engine "cryptodev" > > 703:error:25066067:DSO support routines:DLFCN_LOAD:could not > > load the shared lib > > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so > > ): /usr/lib/engine > > s/libcryptodev.so: cannot open shared object file: No such > > file or directory 703:error:25070067:DSO support > > routines:DSO_load:could not load the shared libra > > ry:dso_lib.c:244: > > 703:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > found:eng_dyn.c:450: > > 703:error:2606A074:engine routines:ENGINE_by_id:no such > > engine:eng_list.c:415:id =cryptodev 703:error:25066067:DSO > > support routines:DLFCN_LOAD:could not load the shared lib > > rary:dso_dlfcn.c:162:filename(libcryptodev.so): > > libcryptodev.so: cannot open sha red object file: No such > > file or directory 703:error:25070067:DSO support > > routines:DSO_load:could not load the shared libra > > ry:dso_lib.c:244: > > 703:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > found:eng_dyn.c:450: > > You have chosen to measure elapsed time instead of user CPU time. > > To get the most accurate results, try to run this program > > when this computer is idle. > > Doing des-cbc for 3s on 16 size blocks: 1226557 des-cbc's in > > 3.00s Doing des-cbc for 3s on 64 size blocks: 334717 > > des-cbc's in 3.00s Doing des-cbc for 3s on 256 size blocks: > > 87400 des-cbc's in 3.00s Doing des-cbc for 3s on 1024 size > > blocks: 22095 des-cbc's in 3.00s Doing des-cbc for 3s on 2048 > > size blocks: 11068 des-cbc's in 3.00s OpenSSL 0.9.8g 19 Oct > > 2007 built on: Mon Mar 24 09:45:54 CDT 2008 > > options:bn(64,32) md2(int) rc4(ptr,char) > > des(idx,risc1,16,long) aes(partial) ide > > a(int) blowfish(idx) > > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS > > -D_REENTRANT -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV > > -DB_ENDIAN -DOPENSSL_NO_HW -DB_ENDIAN -DTERMIO -O3 -Wall > > available timing options: TIMES TIMEB HZ=100 [sysconf value] > > timing function used: ftime The 'numbers' are in 1000s of > > bytes per second processed. > > type 16 bytes 64 bytes 256 bytes 1024 > > bytes 2048 bytes > > des-cbc 6539.46k 7131.12k 7448.20k > > 7531.72k 7545.69k > > / # > > > > > > > > > -----Original Message----- > > > From: David McCullough > > [mailto:Dav...@se...] > > > Sent: Monday, March 24, 2008 7:33 AM > > > To: Nipper Lee > > > Cc: ocf-linux-users > > > Subject: Re: [Ocf-linux-users] ocf-linux-20071215 and openssl > > > speed -engine cryptodev > > > > > > > > > Jivin Nipper Lee lays it down ... > > > > Hello, > > > > > > > > I'm working with the ocf-linux-20071215 release targeting > > hardware > > > > with talitos (FSL SEC) and attempting to get openssl to use the > > > > hardware for acceleration. > > > > > > > > I put ocf into the Linux 2.6.23 kernel and made some > > > compile fixes in > > > > crypto/ocf/talitos.c to get it building. > > > > (I will post patches once they are working.) > > > > > > > > I applied the openssl-0.9.8g.patch to openssl and > > > configured openssl > > > > --with cryptodev and openssl built ok. > > > > > > > > I've hit a snag running openssl and I need a nudge in the right > > > > direction. > > > > > > > > When I run 'openssl speed' referencing the cryptodev engine (see > > > > console output below), there's a missing engines library > > > > (libcryptodev.so). > > > > I'm not sure what software component should provide this library. > > > > > > I normally build it without HW support. I think it gets > > > confused because cryptodev is built in and never loaded as a .so. > > > > > > Add "no-hw" to your config options and see if that helps, > > > > > > Cheers, > > > Davidm > > > > > > > / # openssl speed -evp des -engine cryptodev -elapsed > > > invalid engine > > > > "cryptodev" > > > > 708:error:25066067:DSO support routines:DLFCN_LOAD:could > > > not load the > > > > shared lib > > > > rary:dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): > > > > /usr/lib/engine > > > > s/libcryptodev.so: cannot open shared object file: No > > such file or > > > > directory 708:error:25070067:DSO support > > > routines:DSO_load:could not > > > > load the shared libra > > > > ry:dso_lib.c:244: > > > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > > > found:eng_dyn.c:450: > > > > 708:error:2606A074:engine routines:ENGINE_by_id:no such > > > > engine:eng_list.c:415:id =cryptodev > > 708:error:25066067:DSO support > > > > routines:DLFCN_LOAD:could not load the shared lib > > > > rary:dso_dlfcn.c:162:filename(libcryptodev.so): libcryptodev.so: > > > > cannot open sha red object file: No such file or directory > > > > 708:error:25070067:DSO support routines:DSO_load:could > > not load the > > > > shared libra > > > > ry:dso_lib.c:244: > > > > 708:error:260B6084:engine routines:DYNAMIC_LOAD:dso not > > > > found:eng_dyn.c:450: > > > > You have chosen to measure elapsed time instead of user CPU time. > > > > To get the most accurate results, try to run this program > > when this > > > > computer is idle. > > > > Doing des-cbc for 3s on 16 size blocks: 1226408 des-cbc's > > in 3.00s > > > > Doing des-cbc for 3s on 64 size blocks: 341066 des-cbc's in 3.00s > > > > Doing des-cbc for 3s on 256 size blocks: 87708 des-cbc's in 3.00s > > > > Doing des-cbc for 3s on 1024 size blocks: 22085 des-cbc's > > in 3.00s > > > > Doing des-cbc for 3s on 2048 size blocks: 11056 des-cbc's > > in 3.00s > > > > OpenSSL 0.9.8g 19 Oct 2007 built on: Fri Mar 21 18:56:03 CDT 2008 > > > > options:bn(64,32) md2(int) rc4(ptr,char) des(idx,risc1,16,long) > > > > aes(partial) ide > > > > a(int) blowfish(idx) > > > > compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT > > > > -DDSO_DLFCN -DH AVE_DLFCN_H -DHAVE_CRYPTODEV -DB_ENDIAN > > -DB_ENDIAN > > > > -DTERMIO -O3 -Wall available timing options: TIMES TIMEB HZ=100 > > > > [sysconf value] timing function used: ftime The 'numbers' > > > are in 1000s > > > > of bytes per second processed. > > > > type 16 bytes 64 bytes 256 bytes 1024 > > > bytes 2048 > > > > bytes > > > > des-cbc 6540.84k 7266.39k 7474.45k 7528.31k > > > > 7537.51k > > > > / # > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > --- This SF.net email is sponsored by: Microsoft Defy all > > > challenges. > > > > Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Ocf-linux-users mailing list > > > > Ocf...@li... > > > > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > > > > > > > > > > -- > > > David McCullough, dav...@se..., > > > Ph:+61 734352815 > > > Secure Computing - SnapGear http://www.uCdot.org > > > http://www.cyberguard.com > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ocf-linux-users mailing list > Ocf...@li... > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |