Re: [PATCH v2] crypto: AES-NI - fix memory usage in GCM decryption

2015-03-13 Thread Herbert Xu
On Thu, Mar 12, 2015 at 09:17:51AM +0100, Stephan Mueller wrote: > The kernel crypto API logic requires the caller to provide the > length of (ciphertext || authentication tag) as cryptlen for the > AEAD decryption operation. Thus, the cipher implementation must > calculate the size of the plaintex

[PATCH v2] crypto: AES-NI - fix memory usage in GCM decryption

2015-03-12 Thread Stephan Mueller
The kernel crypto API logic requires the caller to provide the length of (ciphertext || authentication tag) as cryptlen for the AEAD decryption operation. Thus, the cipher implementation must calculate the size of the plaintext output itself and cannot simply use cryptlen. The RFC4106 GCM decrypti