Lines Matching refs:keystream
149 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_cbc_decrypt() local
154 sm4_aesni_avx_crypt8(ctx->rkey_dec, keystream, in sm4_avx_cbc_decrypt()
163 &keystream[i * SM4_BLOCK_SIZE], in sm4_avx_cbc_decrypt()
168 crypto_xor_cpy(dst, walk.iv, keystream, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
214 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_ctr_crypt() local
219 memcpy(&keystream[i * SM4_BLOCK_SIZE], in sm4_avx_ctr_crypt()
223 sm4_aesni_avx_crypt8(ctx->rkey_enc, keystream, in sm4_avx_ctr_crypt()
224 keystream, nblocks); in sm4_avx_ctr_crypt()
226 crypto_xor_cpy(dst, src, keystream, in sm4_avx_ctr_crypt()
237 u8 keystream[SM4_BLOCK_SIZE]; in sm4_avx_ctr_crypt() local
239 memcpy(keystream, walk.iv, SM4_BLOCK_SIZE); in sm4_avx_ctr_crypt()
242 sm4_crypt_block(ctx->rkey_enc, keystream, keystream); in sm4_avx_ctr_crypt()
244 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_avx_ctr_crypt()