Lines Matching defs:con
451 static int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con)
463 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*con->iv)))
465 con->iv = (void *)CMSG_DATA(cmsg);
466 if (cmsg->cmsg_len < CMSG_LEN(con->iv->ivlen +
467 sizeof(*con->iv)))
474 con->op = *(u32 *)CMSG_DATA(cmsg);
480 con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg);
837 struct af_alg_control con = {};
844 err = af_alg_cmsg_send(msg, &con);
849 switch (con.op) {
860 if (con.iv && con.iv->ivlen != ivsize)
879 if (con.iv)
880 memcpy(ctx->iv, con.iv->iv, ivsize);
882 ctx->aead_assoclen = con.aead_assoclen;