Lines Matching full:iv
27 const u8 *src, u8 *iv);
29 const u8 *src, u8 *iv);
102 const u8 *iv = walk.iv; in sm4_cbc_encrypt() local
107 crypto_xor_cpy(dst, src, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
109 iv = dst; in sm4_cbc_encrypt()
114 if (iv != walk.iv) in sm4_cbc_encrypt()
115 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_cbc_encrypt()
142 func(ctx->rkey_dec, dst, src, walk.iv); in sm4_avx_cbc_decrypt()
150 u8 iv[SM4_BLOCK_SIZE]; in sm4_avx_cbc_decrypt() local
159 memcpy(iv, src + SM4_BLOCK_SIZE, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
168 crypto_xor_cpy(dst, walk.iv, keystream, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
169 memcpy(walk.iv, iv, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
207 func(ctx->rkey_enc, dst, src, walk.iv); in sm4_avx_ctr_crypt()
220 walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
221 crypto_inc(walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
239 memcpy(keystream, walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
240 crypto_inc(walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()