lkml.org 
[lkml]   [2015]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 1/2] crypto: AF_ALG: add AEAD support
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 <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


\
 
 \ /
  Last update: 2015-01-05 11:41    [W:0.088 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site