Re: [Ocf-linux-users] hardware acceleration question
Brought to you by:
david-m
|
From: David M. <Dav...@se...> - 2009-05-19 05:12:20
|
Jivin Max lays it down ... > Hello. > > After additional investigation it appeared that cryptotest choose wrong > crypto_driver: after manually changing crypto_newsession() in crypto.c > as follows: > for (hid = 1; hid < crypto_drivers_num; hid++)... > // note that hid is starting with 1 - that's where desired driver was > // registered > I was able to run cryptotest on aes-7108 driver (only once however - > after that /dev/crypto also disappeared). > Unfortunately results were bad: I got "decrypt mismatch" error. Ok that is the bug. Attached is an older version that may still work for your kernel but fix this problem. > The next question is - what is the "iv" parameter printed by cryptotest? http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation > In order to clarify situation a bit I'd like to use reference aes > implementation and to do so I need to get cleartext, cyphertext and key. > That's pretty obvious except where is the key in cryptotest operations? Load the cryptosoft driver instead of the aes-7108 driver. Run cryptotest -v -a aes That should get you the cleartext and cipher text. To make it consistent, change the rdigit in cryptotest.c function to return fixed values (there is an ifdef). Cheers Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 McAfee - SnapGear http://www.snapgear.com http://www.uCdot.org |