Messages in this thread | | | Date | Mon, 24 Nov 2014 22:26:39 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH v3 1/7] crypto: AF_ALG: add user space interface for AEAD |
| |
On Fri, Nov 21, 2014 at 06:30:18AM +0100, Stephan Mueller wrote: > > @@ -421,6 +421,18 @@ int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con) > con->op = *(u32 *)CMSG_DATA(cmsg); > break; > > + case ALG_SET_AEAD_AUTHSIZE: > + if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32))) > + return -EINVAL; > + con->aead_authsize = *(u32 *)CMSG_DATA(cmsg); > + break;
This is a tfm attribute so it should go into setsockopt.
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
| |