Lines Matching refs:iv
68 u8 iv[16]; member
120 u8 iv[8]; in crypto_gcm_setkey() member
151 sizeof(data->hash), data->iv); in crypto_gcm_setkey()
202 memcpy(pctx->iv, req->iv, 12); in crypto_gcm_init_common()
203 memcpy(pctx->iv + 12, &counter, 4); in crypto_gcm_init_common()
234 pctx->iv); in crypto_gcm_init_crypt()
831 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt() local
834 scatterwalk_map_and_copy(iv + 12, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt()
836 memcpy(iv, ctx->nonce, 4); in crypto_rfc4106_crypt()
837 memcpy(iv + 4, req->iv, 8); in crypto_rfc4106_crypt()
840 sg_set_buf(rctx->src, iv + 12, req->assoclen - 8); in crypto_rfc4106_crypt()
847 sg_set_buf(rctx->dst, iv + 12, req->assoclen - 8); in crypto_rfc4106_crypt()
858 req->cryptlen, iv); in crypto_rfc4106_crypt()
1056 u8 *iv = PTR_ALIGN((u8 *)(rctx + 1) + crypto_aead_reqsize(ctx->child), in crypto_rfc4543_crypt() local
1066 memcpy(iv, ctx->nonce, 4); in crypto_rfc4543_crypt()
1067 memcpy(iv + 4, req->iv, 8); in crypto_rfc4543_crypt()
1073 enc ? 0 : authsize, iv); in crypto_rfc4543_crypt()