/linux-6.3-rc2/include/crypto/internal/ |
A D | chacha.h | 16 unsigned int keysize, int nrounds) in chacha_setkey() argument 21 if (keysize != CHACHA_KEY_SIZE) in chacha_setkey() 32 unsigned int keysize) in chacha20_setkey() argument 34 return chacha_setkey(tfm, key, keysize, 20); in chacha20_setkey() 38 unsigned int keysize) in chacha12_setkey() argument 40 return chacha_setkey(tfm, key, keysize, 12); in chacha12_setkey()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_lpm_map.c | 228 data = alloca(keysize); in test_lpm_map() 229 memset(data, 0, keysize); in test_lpm_map() 231 value = alloca(keysize + 1); in test_lpm_map() 232 memset(value, 0, keysize + 1); in test_lpm_map() 238 sizeof(*key) + keysize, in test_lpm_map() 239 keysize + 1, in test_lpm_map() 245 for (j = 0; j < keysize; ++j) in test_lpm_map() 247 value[keysize] = rand() % (8 * keysize + 1); in test_lpm_map() 258 for (j = 0; j < keysize; ++j) in test_lpm_map() 263 key->prefixlen = 8 * keysize; in test_lpm_map() [all …]
|
/linux-6.3-rc2/fs/crypto/ |
A D | keysetup.c | 20 .keysize = 64, 28 .keysize = 32, 35 .keysize = 16, 43 .keysize = 16, 50 .keysize = 32, 58 .keysize = 16, 65 .keysize = 32, 73 .keysize = 32, 227 mode_key, mode->keysize); in setup_per_mode_enc_key() 369 derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() [all …]
|
A D | keysetup_v1.c | 205 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key() 243 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key() 277 derived_key = kmalloc(ci->ci_mode->keysize, GFP_KERNEL); in setup_v1_file_key_derived() 282 derived_key, ci->ci_mode->keysize); in setup_v1_file_key_derived() 308 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings() 312 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
|
A D | fscrypt_private.h | 589 int keysize; /* key size in bytes */ member
|
/linux-6.3-rc2/block/ |
A D | blk-crypto.c | 24 .keysize = 64, 30 .keysize = 16, 36 .keysize = 32, 42 .keysize = 32, 80 BUG_ON(blk_crypto_modes[i].keysize > BLK_CRYPTO_MAX_KEY_SIZE); in bio_crypt_ctx_init() 340 if (mode->keysize == 0) in blk_crypto_init_key() 353 blk_key->size = mode->keysize; in blk_crypto_init_key() 354 memcpy(blk_key->raw, raw_key, mode->keysize); in blk_crypto_init_key()
|
A D | blk-crypto-internal.h | 16 unsigned int keysize; /* key size in bytes */ member
|
A D | blk-crypto-fallback.c | 102 blk_crypto_modes[crypto_mode].keysize); in blk_crypto_fallback_evict_keyslot()
|
/linux-6.3-rc2/crypto/ |
A D | tcrypt.c | 344 *keysize * 8, bs); in test_mb_aead_speed() 427 keysize++; in test_mb_aead_speed() 428 } while (*keysize); in test_mb_aead_speed() 679 keysize++; in test_aead_speed() 680 } while (*keysize); in test_aead_speed() 1127 *keysize * 8, bs); in test_mb_skcipher_speed() 1196 keysize++; in test_mb_skcipher_speed() 1197 } while (*keysize); in test_mb_skcipher_speed() 1368 k = *keysize + bs; in test_skcipher_speed() 1411 keysize++; in test_skcipher_speed() [all …]
|
/linux-6.3-rc2/drivers/s390/crypto/ |
A D | pkey_api.c | 95 int keysize; in pkey_clr2protkey() local 100 keysize = 16; in pkey_clr2protkey() 104 keysize = 24; in pkey_clr2protkey() 108 keysize = 32; in pkey_clr2protkey() 138 protkey->len = keysize + 32; in pkey_clr2protkey() 312 int keysize; in pkey_genprotkey() local 317 keysize = 16; in pkey_genprotkey() 320 keysize = 24; in pkey_genprotkey() 323 keysize = 32; in pkey_genprotkey() 1840 memset(buf, 0, is_xts ? 2 * keysize : keysize); in pkey_ccacipher_aes_attr_read() [all …]
|
A D | zcrypt_ccamisc.c | 180 const u8 *token, size_t keysize, in cca_check_sececckeytoken() argument 193 if (t->len > keysize) { in cca_check_sececckeytoken() 196 __func__, (int)t->len, keysize); in cca_check_sececckeytoken() 300 int i, rc, keysize; in cca_genseckey() local 356 keysize = 16; in cca_genseckey() 361 keysize = 24; in cca_genseckey() 366 keysize = 32; in cca_genseckey() 443 int rc, keysize, seckeysize; in cca_clr2seckey() local 497 keysize = 16; in cca_clr2seckey() 501 keysize = 24; in cca_clr2seckey() [all …]
|
A D | zcrypt_ep11misc.c | 802 const u8 *key, size_t keysize, in ep11_cryptsingle() argument 837 if (keysize > 0xFFFF || inbufsize > 0xFFFF) in ep11_cryptsingle() 842 + ASN1TAGLEN(keysize) + ASN1TAGLEN(inbufsize); in ep11_cryptsingle() 860 p += asn1tag_write(p, 0x04, key, keysize); in ep11_cryptsingle() 1068 const u8 *key, size_t keysize, in ep11_wrapkey() argument 1111 keysize = min_t(size_t, kb->head.len, keysize); in ep11_wrapkey() 1116 + ASN1TAGLEN(keysize) + 4; in ep11_wrapkey() 1137 p += asn1tag_write(p, 0x04, key, keysize); in ep11_wrapkey() 1140 kb = (struct ep11keyblob *)(p - keysize); in ep11_wrapkey()
|
A D | zcrypt_ccamisc.h | 53 u16 keysize; /* key byte size */ member 156 const u8 *token, size_t keysize,
|
/linux-6.3-rc2/fs/befs/ |
A D | btree.c | 412 loff_t key_no, size_t bufsize, char *keybuf, size_t * keysize, in befs_btree_read() argument 450 *keysize = 0; in befs_btree_read() 463 *keysize = 0; in befs_btree_read() 505 *keysize = keylen; in befs_btree_read() 521 *keysize = 0; in befs_btree_read()
|
A D | btree.h | 12 size_t *keysize, befs_off_t *value);
|
A D | linuxvfs.c | 222 size_t keysize; in befs_readdir() local 230 keybuf, &keysize, &value); in befs_readdir() 253 befs_utf2nls(sb, keybuf, keysize, &nlsname, in befs_readdir() 266 if (!dir_emit(ctx, keybuf, keysize, in befs_readdir()
|
/linux-6.3-rc2/include/crypto/ |
A D | gcm.h | 74 unsigned int keysize, unsigned int authsize);
|
/linux-6.3-rc2/drivers/crypto/ |
A D | hifn_795x.c | 617 unsigned int keysize; member 1145 if (ctx->keysize) in hifn_setup_cmd_desc() 1169 if (ctx->keysize != 16) in hifn_setup_cmd_desc() 1175 if (ctx->keysize != 24) in hifn_setup_cmd_desc() 1181 if (ctx->keysize != 32) in hifn_setup_cmd_desc() 1187 if (ctx->keysize != 24) in hifn_setup_cmd_desc() 1192 if (ctx->keysize != 8) in hifn_setup_cmd_desc() 1587 ctx->key, ctx->keysize, in hifn_setup_session() 1956 ctx->keysize = len; in hifn_setkey() 1975 ctx->keysize = len; in hifn_des3_setkey() [all …]
|
/linux-6.3-rc2/lib/crypto/ |
A D | aesgcm.c | 47 unsigned int keysize, unsigned int authsize) in aesgcm_expandkey() argument 53 aes_expandkey(&ctx->aes_ctx, key, keysize); in aesgcm_expandkey()
|
/linux-6.3-rc2/net/tls/ |
A D | tls_sw.c | 2508 size_t keysize; in tls_set_sw_offload() local 2573 keysize = TLS_CIPHER_AES_GCM_128_KEY_SIZE; in tls_set_sw_offload() 2590 keysize = TLS_CIPHER_AES_GCM_256_KEY_SIZE; in tls_set_sw_offload() 2607 keysize = TLS_CIPHER_AES_CCM_128_KEY_SIZE; in tls_set_sw_offload() 2624 keysize = TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE; in tls_set_sw_offload() 2641 keysize = TLS_CIPHER_SM4_GCM_KEY_SIZE; in tls_set_sw_offload() 2658 keysize = TLS_CIPHER_SM4_CCM_KEY_SIZE; in tls_set_sw_offload() 2675 keysize = TLS_CIPHER_ARIA_GCM_128_KEY_SIZE; in tls_set_sw_offload() 2692 keysize = TLS_CIPHER_ARIA_GCM_256_KEY_SIZE; in tls_set_sw_offload() 2755 rc = crypto_aead_setkey(*aead, key, keysize); in tls_set_sw_offload()
|
/linux-6.3-rc2/drivers/char/tpm/ |
A D | tpm-sysfs.c | 24 __be32 keysize; member 69 be32_to_cpu(out->keysize)); in pubek_show()
|
/linux-6.3-rc2/arch/s390/include/uapi/asm/ |
A D | pkey.h | 185 __u16 keysize; /* out: key size in bits */ member
|
/linux-6.3-rc2/drivers/input/keyboard/ |
A D | lm8323.c | 323 int keysize = (lm->size_x << 4) | lm->size_y; in lm8323_configure() local 337 lm8323_write(lm, 2, LM8323_CMD_SET_KEY_SIZE, keysize); in lm8323_configure()
|
/linux-6.3-rc2/arch/x86/platform/efi/ |
A D | quirks.c | 74 u32 keysize; member
|
/linux-6.3-rc2/net/key/ |
A D | af_key.c | 1169 int keysize = 0; in pfkey_msg2xfrm_state() local 1176 keysize = (key->sadb_key_bits + 7) / 8; in pfkey_msg2xfrm_state() 1177 x->aalg = kmalloc(sizeof(*x->aalg) + keysize, GFP_KERNEL); in pfkey_msg2xfrm_state() 1186 memcpy(x->aalg->alg_key, key+1, keysize); in pfkey_msg2xfrm_state() 1207 int keysize = 0; in pfkey_msg2xfrm_state() local 1215 keysize = (key->sadb_key_bits + 7) / 8; in pfkey_msg2xfrm_state() 1216 x->ealg = kmalloc(sizeof(*x->ealg) + keysize, GFP_KERNEL); in pfkey_msg2xfrm_state() 1225 memcpy(x->ealg->alg_key, key+1, keysize); in pfkey_msg2xfrm_state()
|