Thread (16 messages) 16 messages, 2 authors, 2014-11-25

Re: [PATCH v3 1/7] crypto: AF_ALG: add user space interface for AEAD

From: Herbert Xu <hidden>
Date: 2014-11-24 14:26:49
Also in: linux-crypto, lkml

On Fri, Nov 21, 2014 at 06:30:18AM +0100, Stephan Mueller wrote:
quoted hunk ↗ jump to hunk
@@ -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 [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