Home
last modified time | relevance | path

Searched refs:keysize (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/include/crypto/internal/
Dchacha.h16 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_lpm_map.c209 static void test_lpm_map(int keysize) in test_lpm_map() argument
227 data = alloca(keysize); in test_lpm_map()
228 memset(data, 0, keysize); in test_lpm_map()
230 value = alloca(keysize + 1); in test_lpm_map()
231 memset(value, 0, keysize + 1); in test_lpm_map()
233 key = alloca(sizeof(*key) + keysize); in test_lpm_map()
234 memset(key, 0, sizeof(*key) + keysize); in test_lpm_map()
237 sizeof(*key) + keysize, in test_lpm_map()
238 keysize + 1, in test_lpm_map()
244 for (j = 0; j < keysize; ++j) in test_lpm_map()
[all …]
/kernel/linux/linux-5.10/block/
Dblk-crypto.c23 .keysize = 64,
28 .keysize = 16,
33 .keysize = 32,
71 BUG_ON(blk_crypto_modes[i].keysize > BLK_CRYPTO_MAX_KEY_SIZE); in bio_crypt_ctx_init()
332 if (mode->keysize == 0) in blk_crypto_init_key()
345 blk_key->size = mode->keysize; in blk_crypto_init_key()
346 memcpy(blk_key->raw, raw_key, mode->keysize); in blk_crypto_init_key()
Dblk-crypto-internal.h15 unsigned int keysize; /* key size in bytes */ member
/kernel/linux/linux-5.10/fs/crypto/
Dkeysetup.c21 .keysize = 64,
29 .keysize = 32,
36 .keysize = 16,
44 .keysize = 16,
51 .keysize = 32,
112 err = crypto_skcipher_setkey(tfm, raw_key, mode->keysize); in fscrypt_allocate_skcipher()
203 mode_key, mode->keysize); in setup_per_mode_enc_key()
207 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key()
345 derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key()
350 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key()
[all …]
Dkeysetup_v1.c204 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
241 memcpy(dk->dk_raw, raw_key, ci->ci_mode->keysize); in fscrypt_get_direct_key()
275 derived_key = kmalloc(ci->ci_mode->keysize, GFP_KERNEL); in setup_v1_file_key_derived()
280 derived_key, ci->ci_mode->keysize); in setup_v1_file_key_derived()
306 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
310 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
Dfscrypt_private.h560 int keysize; /* key size in bytes */ member
/kernel/linux/linux-5.10/crypto/
Dtcrypt.c254 unsigned int aad_size, u8 *keysize, u32 num_mb) in test_mb_aead_speed() argument
348 *keysize * 8, *b_size); in test_mb_aead_speed()
355 if (template[j].klen == *keysize) { in test_mb_aead_speed()
363 ret = crypto_aead_setkey(tfm, key, *keysize); in test_mb_aead_speed()
431 keysize++; in test_mb_aead_speed()
432 } while (*keysize); in test_mb_aead_speed()
522 unsigned int aad_size, u8 *keysize) in test_aead_speed() argument
596 if ((*keysize + *b_size) > TVMEMSIZE * PAGE_SIZE) { in test_aead_speed()
598 *keysize + *b_size, in test_aead_speed()
605 if (template[j].klen == *keysize) { in test_aead_speed()
[all …]
Dsalsa20_generic.c112 unsigned int keysize) in salsa20_setkey() argument
119 if (keysize != SALSA20_MIN_KEY_SIZE && in salsa20_setkey()
120 keysize != SALSA20_MAX_KEY_SIZE) in salsa20_setkey()
127 if (keysize == 32) { /* recommended */ in salsa20_setkey()
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dpkey_api.c95 int keysize; in pkey_clr2protkey() local
100 keysize = 16; in pkey_clr2protkey()
104 keysize = 24; in pkey_clr2protkey()
108 keysize = 32; in pkey_clr2protkey()
131 memcpy(paramblock, clrkey->clrkey, keysize); in pkey_clr2protkey()
138 protkey->len = keysize + 32; in pkey_clr2protkey()
139 memcpy(protkey->protkey, paramblock, keysize + 32); in pkey_clr2protkey()
306 int keysize; in pkey_genprotkey() local
311 keysize = 16; in pkey_genprotkey()
314 keysize = 24; in pkey_genprotkey()
[all …]
Dzcrypt_ccamisc.c180 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()
422 prepparm->lv3.keyblock.tok, 8*keysize); in cca_genseckey()
443 int rc, keysize, seckeysize; in cca_clr2seckey() local
497 keysize = 16; in cca_clr2seckey()
[all …]
Dzcrypt_ep11misc.c803 const u8 *key, size_t keysize, in ep11_cryptsingle() argument
838 if (keysize > 0xFFFF || inbufsize > 0xFFFF) in ep11_cryptsingle()
843 + ASN1TAGLEN(keysize) + ASN1TAGLEN(inbufsize); in ep11_cryptsingle()
861 p += asn1tag_write(p, 0x04, key, keysize); in ep11_cryptsingle()
1069 const u8 *key, size_t keysize, in ep11_wrapkey() argument
1112 keysize = kb->head.len < keysize ? kb->head.len : keysize; in ep11_wrapkey()
1117 + ASN1TAGLEN(keysize) + 4; in ep11_wrapkey()
1138 p += asn1tag_write(p, 0x04, key, keysize); in ep11_wrapkey()
1141 kb = (struct ep11keyblob *)(p - keysize); in ep11_wrapkey()
Dzcrypt_ccamisc.h53 u16 keysize; /* key byte size */ member
156 const u8 *token, size_t keysize,
/kernel/linux/linux-5.10/fs/befs/
Dbtree.c412 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()
Dbtree.h12 size_t *keysize, befs_off_t *value);
Dlinuxvfs.c223 size_t keysize; in befs_readdir() local
231 keybuf, &keysize, &value); in befs_readdir()
254 befs_utf2nls(sb, keybuf, keysize, &nlsname, in befs_readdir()
267 if (!dir_emit(ctx, keybuf, keysize, in befs_readdir()
/kernel/linux/linux-5.10/drivers/crypto/ux500/cryp/
Dcryp.c119 *control_register |= (cryp_config->keysize << CRYP_CR_KEYSIZE_POS); in cryp_set_configuration()
313 switch (config->keysize) { in cryp_save_device_context()
363 switch (config->keysize) { in cryp_restore_device_context()
Dcryp.h90 int keysize; member
Dcryp_core.c951 ctx->config.keysize = CRYP_KEY_SIZE_128; in aes_skcipher_setkey()
955 ctx->config.keysize = CRYP_KEY_SIZE_192; in aes_skcipher_setkey()
959 ctx->config.keysize = CRYP_KEY_SIZE_256; in aes_skcipher_setkey()
/kernel/linux/linux-5.10/drivers/crypto/
Dhifn_795x.c617 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()
1201 nbytes, nbytes, ctx->key, ctx->keysize, in hifn_setup_cmd_desc()
1587 ctx->key, ctx->keysize, in hifn_setup_session()
1956 ctx->keysize = len; in hifn_setkey()
[all …]
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm-sysfs.c24 __be32 keysize; member
69 be32_to_cpu(out->keysize)); in pubek_show()
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
Dpkey.h185 __u16 keysize; /* out: key size in bits */ member
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dlm8323.c323 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()
/kernel/linux/linux-5.10/arch/x86/platform/efi/
Dquirks.c74 u32 keysize; member
/kernel/linux/linux-5.10/net/tls/
Dtls_sw.c2314 size_t keysize; in tls_set_sw_offload() local
2377 keysize = TLS_CIPHER_AES_GCM_128_KEY_SIZE; in tls_set_sw_offload()
2394 keysize = TLS_CIPHER_AES_GCM_256_KEY_SIZE; in tls_set_sw_offload()
2411 keysize = TLS_CIPHER_AES_CCM_128_KEY_SIZE; in tls_set_sw_offload()
2473 rc = crypto_aead_setkey(*aead, key, keysize); in tls_set_sw_offload()

12