Lines Matching refs:iv
24 u8 *iv, unsigned int nblocks);
26 u8 *iv, unsigned int nblocks);
28 u8 *iv, unsigned int nblocks);
93 const u8 *iv = walk.iv; in sm4_cbc_encrypt() local
98 crypto_xor_cpy(dst, src, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
100 iv = dst; in sm4_cbc_encrypt()
105 if (iv != walk.iv) in sm4_cbc_encrypt()
106 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
134 walk.iv, nblocks); in sm4_cbc_decrypt()
157 const u8 *iv = walk.iv; in sm4_cfb_encrypt() local
162 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
164 iv = dst; in sm4_cfb_encrypt()
169 if (iv != walk.iv) in sm4_cfb_encrypt()
170 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_cfb_encrypt()
174 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
205 walk.iv, nblocks); in sm4_cfb_decrypt()
218 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_decrypt()
249 walk.iv, nblocks); in sm4_ctr_crypt()
262 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
263 crypto_inc(walk.iv, SM4_BLOCK_SIZE); in sm4_ctr_crypt()