Lines Matching full:iv
24 u8 *iv, unsigned int nblocks);
26 u8 *iv, unsigned int nblocks);
91 const u8 *iv = walk.iv; in sm4_cbc_encrypt() local
96 crypto_xor_cpy(dst, src, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
98 iv = dst; in sm4_cbc_encrypt()
103 if (iv != walk.iv) in sm4_cbc_encrypt()
104 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
132 walk.iv, nblocks); in sm4_cbc_decrypt()
163 walk.iv, nblocks); in sm4_ctr_crypt()
176 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
177 crypto_inc(walk.iv, SM4_BLOCK_SIZE); in sm4_ctr_crypt()