Home
last modified time | relevance | path

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

/openbmc/linux/arch/x86/crypto/
H A Dsm4_aesni_avx_glue.c151 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_cbc_decrypt() local
165 &keystream[i * SM4_BLOCK_SIZE], in sm4_avx_cbc_decrypt()
202 u8 keystream[SM4_BLOCK_SIZE]; in sm4_cfb_encrypt() local
257 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_cfb_decrypt() local
268 keystream, nblocks); in sm4_avx_cfb_decrypt()
270 crypto_xor_cpy(dst, src, keystream, in sm4_avx_cfb_decrypt()
281 u8 keystream[SM4_BLOCK_SIZE]; in sm4_avx_cfb_decrypt() local
326 u8 keystream[SM4_BLOCK_SIZE * 8]; in sm4_avx_ctr_crypt() local
336 keystream, nblocks); in sm4_avx_ctr_crypt()
349 u8 keystream[SM4_BLOCK_SIZE]; in sm4_avx_ctr_crypt() local
[all …]
H A 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()
139 memcpy(&req_ctx->keystream[0], walk.iv, in aria_avx512_ctr_encrypt()
143 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx512_ctr_encrypt()
[all …]
H A 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()
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()
132 &req_ctx->keystream[0]); in aria_avx_ctr_encrypt()
[all …]
H A 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()
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()
144 aria_encrypt(ctx, &req_ctx->keystream[0], in aria_avx2_ctr_encrypt()
[all …]
H A 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);
H A 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()
/openbmc/linux/arch/arm64/crypto/
H A 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 …]
H A 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()
/openbmc/linux/crypto/
H A 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()
H A 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()
H A DKconfig745 stream cipher. It generates keystream blocks, which are then XORed
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A 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()
H A Dvcap_api_private.h115 u32 *keystream, u32 *mskstream, bool mask,
H A Dvcap_api_kunit.c112 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()
1577 .keystream = keydata, in vcap_api_rule_insert_in_order_test()
1615 .keystream = keydata, in vcap_api_rule_insert_reverse_order_test()
1678 .keystream = keydata, in vcap_api_rule_remove_at_end_test()
1750 .keystream = keydata, in vcap_api_rule_remove_in_middle_test()
[all …]
H A Dvcap_api.h129 u32 *keystream; member
H A 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
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
1491 keystream = admin->cache.keystream; in vcap_decode_keyset()
[all …]
H A Dvcap_api_debugfs.c174 admin->cache.keystream, in vcap_debugfs_show_keysets()
/openbmc/linux/drivers/crypto/vmx/
H A 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()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A 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()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A 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 …]
/openbmc/linux/arch/sparc/crypto/
H A 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()