Re: ARM-CE aes encryption on uneven blocks

2016-10-26 Thread Cata Vasile
Then what is the role of the "for" structure? Why not do just a single encryption/decryption call? Regards, Cata >From: Hamid Nassiby >Sent: Wednesday, October 26, 2016 10:16 AM >To: Cata Vasile >Cc: linux-crypto@vger.kernel.org >Subject: Re: ARM-CE aes encryption o

Re: ARM-CE aes encryption on uneven blocks

2016-10-26 Thread Hamid Nassiby
Hi, Based on my old experience with "struct crypto_alg" based drivers, the data you receive there, is padded beforehand(in the upper layers); Therefore the plaintext contains integral multiple of AES block size of data and based on the number of blocks, the crypto transform can be computed. Regar

ARM-CE aes encryption on uneven blocks

2016-10-24 Thread Cata Vasile
Hi, I'm trying to understand the code for AES encryption from ARM-CE. >From the aes-glue.S calls I understand that the encryption primitives receive >the number of blocks, but have no way of determining the number of bytes to >encrypt, if for example the plaintext does not have a length of a mu