Re: [Ocf-linux-users] OCF driver for Marvell Kirkwood (88F6xxx) Processors
Brought to you by:
david-m
From: Flaig, P. <Pat...@bd...> - 2010-08-16 14:14:39
|
Hi David, I tried to do some measurements with the Feroceon driver and run into some problems. It seems the hardware support is not fully working. I configured OCF to use the CRYPTOSOFT driver and run a little test application, everything works fine. But when I disabled the CRYPTOSOFT driver and enabled the FEROCEON driver, my test failed with an "ioctl(CIOCGSESSION): Invalid argument" error. --- /* Get crypto session for AES128 */ sess.cipher = CRYPTO_AES_CBC; sess.keylen = KEY_SIZE; sess.key = key; if (ioctl(cfd, CIOCGSESSION, &sess)) { perror("ioctl(CIOCGSESSION)"); return 1; } --- For me this looks like the driver is not loaded. Did I forget to configure something? How will OCF handle algorithms that are not supported by the hardware, will the OCF switch to the kernel algorithm? Do I have to enable the CRYPTOSOFT in combination with the hardware driver? Thank you again for your answer(s). Regards Patrick -----Original Message----- From: Flaig, Patrick Sent: Wednesday, August 11, 2010 6:07 PM To: 'David McCullough' Cc: ocf...@li... Subject: RE: [Ocf-linux-users] OCF driver for Marvell Kirkwood (88F6xxx) Processors Hi David, Thanks a lot, the additional lines in the Makefile let me compile the Feroceon driver. I've now compiled the OCF module and the driver directly into the kernel. I think I've now an understanding problem, how to configure OCF the right way. Do I have to configure the cryptographic API as well, with all the algorithms I want? How can I make sure that, if I have selected AES for example, the hardware acceleration is used? /proc/crypto is only showing module: kernel. Patrick |