Home
last modified time | relevance | path

Searched refs:keystream (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/arch/x86/crypto/ !
Dsm4_aesni_avx_glue.c151 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_cbc_decrypt() local
156 sm4_aesni_avx_crypt8(ctx->rkey_dec, keystream, in sm4_avx_cbc_decrypt()
165 &keystream[i * SM4_BLOCK_SIZE], in sm4_avx_cbc_decrypt()
170 crypto_xor_cpy(dst, walk.iv, keystream, SM4_BLOCK_SIZE); in sm4_avx_cbc_decrypt()
202 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_encrypt() local
208 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
209 crypto_xor_cpy(dst, src, keystream, SM4_BLOCK_SIZE); in sm4_cfb_encrypt()
220 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
221 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_encrypt()
257 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_cfb_decrypt() local
[all …]
Daria_gfni_avx512_glue.c25 u8 *keystream, u8 *iv);
30 u8 keystream[ARIA_GFNI_AVX512_PARALLEL_BLOCK_SIZE]; member
93 &req_ctx->keystream[0], in aria_avx512_ctr_encrypt()
104 &req_ctx->keystream[0], in aria_avx512_ctr_encrypt()
115 &req_ctx->keystream[0], in aria_avx512_ctr_encrypt()
124 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx512_ctr_encrypt()
128 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx512_ctr_encrypt()
129 &req_ctx->keystream[0]); in aria_avx512_ctr_encrypt()
131 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx512_ctr_encrypt()
139 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx512_ctr_encrypt()
[all …]
Daria_aesni_avx_glue.c27 u8 *keystream, u8 *iv);
38 u8 *keystream, u8 *iv);
45 u8 keystream[ARIA_AESNI_PARALLEL_BLOCK_SIZE]; member
104 &req_ctx->keystream[0], in aria_avx_ctr_encrypt()
113 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); in aria_avx_ctr_encrypt()
116 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx_ctr_encrypt()
117 &req_ctx->keystream[0]); in aria_avx_ctr_encrypt()
119 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx_ctr_encrypt()
127 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx_ctr_encrypt()
131 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx_ctr_encrypt()
[all …]
Daria_aesni_avx2_glue.c27 u8 *keystream, u8 *iv);
38 u8 *keystream, u8 *iv);
45 u8 keystream[ARIA_AESNI_AVX2_PARALLEL_BLOCK_SIZE]; member
106 &req_ctx->keystream[0], in aria_avx2_ctr_encrypt()
117 &req_ctx->keystream[0], in aria_avx2_ctr_encrypt()
126 memcpy(&req_ctx->keystream[0], walk.iv, ARIA_BLOCK_SIZE); in aria_avx2_ctr_encrypt()
129 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt()
130 &req_ctx->keystream[0]); in aria_avx2_ctr_encrypt()
132 crypto_xor_cpy(dst, src, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt()
140 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx2_ctr_encrypt()
[all …]
Daria-avx.h22 u8 *keystream, u8 *iv);
29 u8 *keystream, u8 *iv);
37 u8 *keystream, u8 *iv);
44 u8 *keystream, u8 *iv);
50 u8 *keystream, u8 *iv);
54 u8 *keystream, u8 *iv);
58 u8 *keystream, u8 *iv);
Daesni-intel_glue.c513 u8 keystream[AES_BLOCK_SIZE]; in ctr_crypt() local
530 aesni_enc(ctx, keystream, walk.iv); in ctr_crypt()
533 keystream, nbytes); in ctr_crypt()
562 u8 keystream[AES_BLOCK_SIZE]; in xctr_crypt() local
583 aesni_enc(ctx, keystream, (u8 *)block); in xctr_crypt()
586 - nbytes, keystream, nbytes); in xctr_crypt()
/linux-6.6.21/arch/arm64/crypto/ !
Dsm4-neon-glue.c156 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_encrypt() local
162 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
163 crypto_xor_cpy(dst, src, keystream, SM4_BLOCK_SIZE); in sm4_cfb_encrypt()
174 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
175 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_encrypt()
216 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_decrypt() local
218 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_decrypt()
219 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_decrypt()
260 u8 keystream[SM4_BLOCK_SIZE]; in sm4_ctr_crypt() local
262 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
[all …]
Dsm4-ce-glue.c310 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_encrypt() local
312 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
313 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_encrypt()
352 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_decrypt() local
354 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_decrypt()
355 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_cfb_decrypt()
394 u8 keystream[SM4_BLOCK_SIZE]; in sm4_ctr_crypt() local
396 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
398 crypto_xor_cpy(dst, src, keystream, nbytes); in sm4_ctr_crypt()
/linux-6.6.21/crypto/ !
Dxctr.c37 u8 keystream[XCTR_BLOCKSIZE]; in crypto_xctr_crypt_final() local
44 crypto_cipher_encrypt_one(tfm, keystream, walk->iv); in crypto_xctr_crypt_final()
45 crypto_xor_cpy(dst, keystream, src, nbytes); in crypto_xctr_crypt_final()
83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_xctr_crypt_inplace() local
88 fn(crypto_cipher_tfm(tfm), keystream, walk->iv); in crypto_xctr_crypt_inplace()
89 crypto_xor(data, keystream, XCTR_BLOCKSIZE); in crypto_xctr_crypt_inplace()
Dctr.c35 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_final() local
40 crypto_cipher_encrypt_one(tfm, keystream, ctrblk); in crypto_ctr_crypt_final()
41 crypto_xor_cpy(dst, keystream, src, nbytes); in crypto_ctr_crypt_final()
83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_inplace() local
87 fn(crypto_cipher_tfm(tfm), keystream, ctrblk); in crypto_ctr_crypt_inplace()
88 crypto_xor(src, keystream, bsize); in crypto_ctr_crypt_inplace()
DKconfig745 stream cipher. It generates keystream blocks, which are then XORed
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/ !
Dvcap_api_debugfs_kunit.c96 memset(admin->cache.keystream, 0, test_cache_erase_count); in test_cache_erase()
121 keystr = &admin->cache.keystream[start]; in test_cache_read()
162 keystr = &admin->cache.keystream[start]; in test_cache_write()
308 .keystream = keydata, in vcap_api_addr_keyset_test()
325 admin.cache.keystream = &keydata[idx]; in vcap_api_addr_keyset_test()
333 admin.cache.keystream = &keydata[idx]; in vcap_api_addr_keyset_test()
355 .keystream = keydata, in vcap_api_show_admin_raw_test()
504 .keystream = keydata, in vcap_api_show_admin_rule_test()
Dvcap_api_private.h115 u32 *keystream, u32 *mskstream, bool mask,
Dvcap_api_kunit.c87 memset(admin->cache.keystream, 0, test_cache_erase_count); in test_cache_erase()
112 keystr = &admin->cache.keystream[start]; in test_cache_read()
153 keystr = &admin->cache.keystream[start]; in test_cache_write()
584 .keystream = keywords, in vcap_api_encode_keyfield_test()
645 .keystream = keywords, in vcap_api_encode_max_keyfield_test()
830 .keystream = keywords, in vcap_api_encode_rule_keyset_test()
1346 .keystream = keydata, in vcap_api_encode_rule_test()
1585 .keystream = keydata, in vcap_api_rule_insert_in_order_test()
1623 .keystream = keydata, in vcap_api_rule_insert_reverse_order_test()
1686 .keystream = keydata, in vcap_api_rule_remove_at_end_test()
[all …]
Dvcap_api.c220 u32 *keystream, in vcap_verify_keystream_keyset() argument
265 vcap_decode_field(keystream, &iter, typefld->width, (u8 *)&value); in vcap_verify_keystream_keyset()
335 u32 *keystream, in vcap_find_keystream_keysets() argument
343 sw_count = vcap_find_keystream_typegroup_sw(vctrl, vt, keystream, mask, in vcap_find_keystream_keysets()
353 if (vcap_verify_keystream_keyset(vctrl, vt, keystream, in vcap_find_keystream_keysets()
383 key |= ~admin->cache.keystream[idx]; in vcap_addr_keysets()
389 return vcap_find_keystream_keysets(vctrl, vt, admin->cache.keystream, in vcap_addr_keysets()
494 vcap_encode_field(cache->keystream, &iter, rf->width, value); in vcap_encode_keyfield()
509 vcap_encode_typegroups(cache->keystream, sw_width, tgt, false); in vcap_encode_keyfield_typegroups()
1487 u32 *keystream; in vcap_decode_keyset() local
[all …]
Dvcap_api.h129 u32 *keystream; member
Dvcap_api_debugfs.c174 admin->cache.keystream, in vcap_debugfs_show_keysets()
/linux-6.6.21/drivers/crypto/vmx/ !
Daes_ctr.c73 u8 keystream[AES_BLOCK_SIZE]; in p8_aes_ctr_final() local
81 aes_p8_encrypt(ctrblk, keystream, &ctx->enc_key); in p8_aes_ctr_final()
86 crypto_xor_cpy(dst, keystream, src, nbytes); in p8_aes_ctr_final()
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ !
Dlan966x_vcap_impl.c390 memset(admin->cache.keystream, 0, STREAMSIZE); in lan966x_vcap_cache_erase()
440 keystr = &admin->cache.keystream[start]; in lan966x_vcap_cache_write()
482 keystr = &admin->cache.keystream[start]; in lan966x_vcap_cache_read()
601 kfree(admin->cache.keystream); in lan966x_vcap_admin_free()
635 admin->cache.keystream = kzalloc(STREAMSIZE, GFP_KERNEL); in lan966x_vcap_admin_alloc()
638 if (!admin->cache.keystream || in lan966x_vcap_admin_alloc()
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ !
Dsparx5_vcap_impl.c912 memset(admin->cache.keystream, 0, STREAMSIZE); in sparx5_vcap_cache_erase()
927 keystr = &admin->cache.keystream[start]; in sparx5_vcap_is0_cache_write()
968 keystr = &admin->cache.keystream[start]; in sparx5_vcap_is2_cache_write()
1028 keystr = &admin->cache.keystream[start]; in sparx5_vcap_es0_cache_write()
1069 keystr = &admin->cache.keystream[start]; in sparx5_vcap_es2_cache_write()
1140 keystr = &admin->cache.keystream[start]; in sparx5_vcap_is0_cache_read()
1175 keystr = &admin->cache.keystream[start]; in sparx5_vcap_is2_cache_read()
1230 keystr = &admin->cache.keystream[start]; in sparx5_vcap_es0_cache_read()
1265 keystr = &admin->cache.keystream[start]; in sparx5_vcap_es2_cache_read()
1945 kfree(admin->cache.keystream); in sparx5_vcap_admin_free()
[all …]
/linux-6.6.21/arch/sparc/crypto/ !
Daes_glue.c323 u64 keystream[AES_BLOCK_SIZE / sizeof(u64)]; in ctr_crypt_final() local
329 keystream, AES_BLOCK_SIZE); in ctr_crypt_final()
330 crypto_xor_cpy(dst, (u8 *) keystream, src, nbytes); in ctr_crypt_final()