Lines Matching refs:iv
27 const u8 *src, u8 *iv);
29 const u8 *src, u8 *iv);
31 const u8 *src, u8 *iv);
104 const u8 *iv = walk.iv; in sm4_cbc_encrypt() local
109 crypto_xor_cpy(dst, src, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
111 iv = dst; in sm4_cbc_encrypt()
116 if (iv != walk.iv) in sm4_cbc_encrypt()
117 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
144 func(ctx->rkey_dec, dst, src, walk.iv); in sm4_avx_cbc_decrypt()
152 u8 iv[SM4_BLOCK_SIZE]; in sm4_avx_cbc_decrypt() local
161 memcpy(iv, src + SM4_BLOCK_SIZE, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
170 crypto_xor_cpy(dst, walk.iv, keystream, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
171 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
203 const u8 *iv = walk.iv; in sm4_cfb_encrypt() local
208 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
210 iv = dst; in sm4_cfb_encrypt()
215 if (iv != walk.iv) in sm4_cfb_encrypt()
216 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_cfb_encrypt()
220 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
250 func(ctx->rkey_enc, dst, src, walk.iv); in sm4_avx_cfb_decrypt()
260 memcpy(keystream, walk.iv, SM4_BLOCK_SIZE); in sm4_avx_cfb_decrypt()
264 memcpy(walk.iv, src + (nblocks - 1) * SM4_BLOCK_SIZE, in sm4_avx_cfb_decrypt()
283 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_avx_cfb_decrypt()
319 func(ctx->rkey_enc, dst, src, walk.iv); in sm4_avx_ctr_crypt()
332 walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
333 crypto_inc(walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
351 memcpy(keystream, walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
352 crypto_inc(walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()