Thread (8 messages) 8 messages, 2 authors, 2015-01-05

Re: [PATCH v7 1/2] crypto: AF_ALG: add AEAD support

From: Herbert Xu <hidden>
Date: 2015-01-05 10:32:09
Also in: linux-crypto, lkml

On Fri, Jan 02, 2015 at 03:41:33PM +0100, Stephan Mueller wrote:
+		if (!con.aead_assoclen)
+			return -EINVAL;
AD being zero should be fine.
+		/* aead_recvmsg limits the maximum AD size to one page */
+		if (con.aead_assoclen > PAGE_SIZE)
+			return -E2BIG;
I don't see any need to limit the size of the AD.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help