Re: Hardware Crypto Driver

2015-11-11 Thread Orlando
I will not be able to use your changes since I am running kernel 3.4.48 and I cannot change it for my project (embedded system). The reason I am suspecting that the crypto framework is generating/manipulating the IV for my driver is because when I do a cat /proc/crypto I get two instances of the A

Re: Hardware Crypto Driver

2015-11-11 Thread Herbert Xu
On Wed, Nov 11, 2015 at 09:54:37AM -0500, Orlando wrote: > I think the main problem might be my lack of understanding how IVs are > handled by the kernel crypto framework. It seems the omap-aes.c driver > is indicating to the crypto framework that it wants IV generation to > be handled automaticall

Re: Hardware Crypto Driver

2015-11-11 Thread Orlando
I think the main problem might be my lack of understanding how IVs are handled by the kernel crypto framework. It seems the omap-aes.c driver is indicating to the crypto framework that it wants IV generation to be handled automatically by the crypto framework by filling this field .geniv = "eseqiv"

Re: Hardware Crypto Driver

2015-11-10 Thread Herbert Xu
Orlando wrote: > Hello, I am new to the crypto framework in linux kernel and mailing > list in general. I am porting a driver omap-aes.c to my platform and > having problems with IV being modified against my will. I am doing > AES-128-CTR and I need the IV to increment by 1 every 16 bytes. > Inste