Lines Matching refs:iv
62 u8 iv[16]; member
96 u8 iv[16]; in crypto_gcm_setkey() member
125 sizeof(data->hash), data->iv); in crypto_gcm_setkey()
155 memcpy(pctx->iv, req->iv, GCM_AES_IV_SIZE); in crypto_gcm_init_common()
156 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common()
187 pctx->iv); in crypto_gcm_init_crypt()
722 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt() local
725 scatterwalk_map_and_copy(iv + GCM_AES_IV_SIZE, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4106_crypt()
727 memcpy(iv, ctx->nonce, 4); in crypto_rfc4106_crypt()
728 memcpy(iv + 4, req->iv, 8); in crypto_rfc4106_crypt()
731 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
738 sg_set_buf(rctx->dst, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
749 req->cryptlen, iv); in crypto_rfc4106_crypt()
927 u8 *iv = PTR_ALIGN((u8 *)(rctx + 1) + crypto_aead_reqsize(ctx->child), in crypto_rfc4543_crypt() local
937 memcpy(iv, ctx->nonce, 4); in crypto_rfc4543_crypt()
938 memcpy(iv + 4, req->iv, 8); in crypto_rfc4543_crypt()
944 enc ? 0 : authsize, iv); in crypto_rfc4543_crypt()