Lines Matching refs:keystream
156 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_cbc_decrypt() local
160 sm4_neon_crypt_blk1_8(ctx->rkey_dec, keystream, in sm4_cbc_decrypt()
169 &keystream[i * SM4_BLOCK_SIZE], in sm4_cbc_decrypt()
175 keystream, SM4_BLOCK_SIZE); in sm4_cbc_decrypt()
199 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_encrypt() local
205 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
206 crypto_xor_cpy(dst, src, keystream, SM4_BLOCK_SIZE); in sm4_cfb_encrypt()
217 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
218 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_encrypt()
256 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_cfb_decrypt() local
258 memcpy(keystream, walk.iv, SM4_BLOCK_SIZE); in sm4_cfb_decrypt()
260 memcpy(&keystream[SM4_BLOCK_SIZE], src, in sm4_cfb_decrypt()
265 sm4_neon_crypt_blk1_8(ctx->rkey_enc, keystream, in sm4_cfb_decrypt()
266 keystream, nblks); in sm4_cfb_decrypt()
268 crypto_xor_cpy(dst, src, keystream, in sm4_cfb_decrypt()
279 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_decrypt() local
281 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_decrypt()
282 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_decrypt()
320 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_ctr_crypt() local
324 memcpy(&keystream[i * SM4_BLOCK_SIZE], in sm4_ctr_crypt()
328 sm4_neon_crypt_blk1_8(ctx->rkey_enc, keystream, in sm4_ctr_crypt()
329 keystream, nblks); in sm4_ctr_crypt()
331 crypto_xor_cpy(dst, src, keystream, in sm4_ctr_crypt()
342 u8 keystream[SM4_BLOCK_SIZE]; in sm4_ctr_crypt() local
344 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
346 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_ctr_crypt()