Lines Matching refs:iv
133 unsigned int lp = req->iv[0]; in format_input()
139 memcpy(info, req->iv, 16); in format_input()
301 static inline int crypto_ccm_check_iv(const u8 *iv) in crypto_ccm_check_iv() argument
304 if (1 > iv[0] || iv[0] > 7) in crypto_ccm_check_iv()
314 u8 *iv = req->iv; in crypto_ccm_init_crypt() local
317 err = crypto_ccm_check_iv(iv); in crypto_ccm_init_crypt()
326 memset(iv + 15 - iv[0], 0, iv[0] + 1); in crypto_ccm_init_crypt()
354 u8 *iv = req->iv; in crypto_ccm_encrypt() local
372 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
416 u8 *iv = req->iv; in crypto_ccm_decrypt() local
435 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
713 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt() local
717 iv[0] = 3; in crypto_rfc4309_crypt()
719 memcpy(iv + 1, ctx->nonce, 3); in crypto_rfc4309_crypt()
720 memcpy(iv + 4, req->iv, 8); in crypto_rfc4309_crypt()
722 scatterwalk_map_and_copy(iv + 16, req->src, 0, req->assoclen - 8, 0); in crypto_rfc4309_crypt()
725 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
732 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
743 req->cryptlen, iv); in crypto_rfc4309_crypt()