Lines Matching refs:ctr_iv
1597 memset(areq_ctx->ctr_iv, 0, AES_BLOCK_SIZE); in cc_proc_rfc4309_ccm()
1601 areq_ctx->ctr_iv[0] = 3; in cc_proc_rfc4309_ccm()
1606 memcpy(areq_ctx->ctr_iv + CCM_BLOCK_NONCE_OFFSET, ctx->ctr_nonce, in cc_proc_rfc4309_ccm()
1608 memcpy(areq_ctx->ctr_iv + CCM_BLOCK_IV_OFFSET, req->iv, in cc_proc_rfc4309_ccm()
1610 req->iv = areq_ctx->ctr_iv; in cc_proc_rfc4309_ccm()
1884 memcpy(areq_ctx->ctr_iv + GCM_BLOCK_RFC4_NONCE_OFFSET, in cc_proc_rfc4_gcm()
1886 memcpy(areq_ctx->ctr_iv + GCM_BLOCK_RFC4_IV_OFFSET, req->iv, in cc_proc_rfc4_gcm()
1888 req->iv = areq_ctx->ctr_iv; in cc_proc_rfc4_gcm()
1932 memcpy(areq_ctx->ctr_iv, ctx->ctr_nonce, in cc_proc_aead()
1934 memcpy(areq_ctx->ctr_iv + CTR_RFC3686_NONCE_SIZE, req->iv, in cc_proc_aead()
1937 *(__be32 *)(areq_ctx->ctr_iv + CTR_RFC3686_NONCE_SIZE + in cc_proc_aead()
1941 req->iv = areq_ctx->ctr_iv; in cc_proc_aead()
1946 if (areq_ctx->ctr_iv != req->iv) { in cc_proc_aead()
1947 memcpy(areq_ctx->ctr_iv, req->iv, in cc_proc_aead()
1949 req->iv = areq_ctx->ctr_iv; in cc_proc_aead()