Lines Matching refs:iv
135 static inline int crypto_ccm_check_iv(const u8 *iv) in crypto_ccm_check_iv() argument
138 if (1 > iv[0] || iv[0] > 7) in crypto_ccm_check_iv()
145 static int generate_b0(u8 *iv, unsigned int assoclen, unsigned int authsize, in generate_b0() argument
151 memcpy(b0, iv, 16); in generate_b0()
168 static int generate_pat(u8 *iv, in generate_pat() argument
184 memset(iv + 15 - iv[0], 0, iv[0] + 1); in generate_pat()
223 rc = generate_b0(iv, assoclen, authsize, nbytes, b0); in generate_pat()
497 u8 *iv = rctx->iv; in ccm4309_aes_nx_encrypt() local
499 iv[0] = 3; in ccm4309_aes_nx_encrypt()
500 memcpy(iv + 1, nx_ctx->priv.ccm.nonce, 3); in ccm4309_aes_nx_encrypt()
501 memcpy(iv + 4, req->iv, 8); in ccm4309_aes_nx_encrypt()
503 desc.info = iv; in ccm4309_aes_nx_encrypt()
513 desc.info = req->iv; in ccm_aes_nx_encrypt()
527 u8 *iv = rctx->iv; in ccm4309_aes_nx_decrypt() local
529 iv[0] = 3; in ccm4309_aes_nx_decrypt()
530 memcpy(iv + 1, nx_ctx->priv.ccm.nonce, 3); in ccm4309_aes_nx_decrypt()
531 memcpy(iv + 4, req->iv, 8); in ccm4309_aes_nx_decrypt()
533 desc.info = iv; in ccm4309_aes_nx_decrypt()
543 desc.info = req->iv; in ccm_aes_nx_decrypt()