/linux-6.6.21/crypto/ |
D | testmgr.h | 73 unsigned short klen; member 115 unsigned char klen; member 129 unsigned char klen; member 10212 .klen = 8, 10218 .klen = 8, 10224 .klen = 8, 10230 .klen = 8, 10242 .klen = 8, 10248 .klen = 8, 10256 .klen = 8, [all …]
|
D | tcrypt.h | 17 unsigned int klen; member 22 unsigned int klen; member 40 .klen = 24,
|
D | ansi_cprng.c | 277 const unsigned char *key, size_t klen, in reset_prng_context() argument 289 klen = DEFAULT_PRNG_KSZ; in reset_prng_context() 306 ret = crypto_cipher_setkey(ctx->tfm, prng_key, klen); in reset_prng_context()
|
D | tcrypt.c | 69 static unsigned int klen; variable 354 if (template[j].klen == *keysize) { in test_mb_aead_speed() 612 if (template[j].klen == *keysize) { in test_aead_speed() 914 if (klen) in test_ahash_speed_common() 915 crypto_ahash_setkey(tfm, tvmem[0], klen); in test_ahash_speed_common() 1137 if (template[j].klen == *keysize) { in test_mb_skcipher_speed() 1356 if (template[j].klen == *keysize) { in test_skcipher_speed() 2284 klen = 16; in do_test() 2943 module_param(klen, uint, 0); 2944 MODULE_PARM_DESC(klen, "Key length (defaults to 0)");
|
D | testmgr.c | 2056 err = do_setkey(crypto_aead_setkey, tfm, vec->key, vec->klen, in test_aead_vec_cfg() 2391 vec->klen = maxkeysize; in generate_random_aead_testvec() 2393 vec->klen = prandom_u32_below(rng, maxkeysize + 1); in generate_random_aead_testvec() 2394 generate_random_bytes(rng, (u8 *)vec->key, vec->klen); in generate_random_aead_testvec() 2395 vec->setkey_error = crypto_aead_setkey(tfm, vec->key, vec->klen); in generate_random_aead_testvec() 2430 vec->alen, vec->plen, authsize, vec->klen, vec->novrfy); in generate_random_aead_testvec() 2615 test_desc->suite.aead.vecs[i].klen); in test_aead_extra() 2764 template[i].klen); in test_cipher() 2834 err = do_setkey(crypto_skcipher_setkey, tfm, vec->key, vec->klen, in test_skcipher_vec_cfg() 3035 vec->klen = maxkeysize; in generate_random_cipher_testvec() [all …]
|
/linux-6.6.21/lib/crypto/ |
D | aesgcm.c | 553 int klen; member 559 .klen = 16, 563 .klen = 16, 571 .klen = 16, 581 .klen = 16, 593 .klen = 24, 597 .klen = 24, 606 .klen = 24, 614 .klen = 32, 618 .klen = 32, [all …]
|
/linux-6.6.21/net/wireless/ |
D | lib80211_crypt_wep.c | 67 u32 klen; in lib80211_wep_build_iv() local 77 klen = 3 + wep->key_len; in lib80211_wep_build_iv() 86 if (B >= 3 && B < klen) in lib80211_wep_build_iv() 108 u32 crc, klen, len; in lib80211_wep_encrypt() local 128 klen = 3 + wep->key_len; in lib80211_wep_encrypt() 138 arc4_setkey(&wep->tx_ctx, key, klen); in lib80211_wep_encrypt() 154 u32 crc, klen, plen; in lib80211_wep_decrypt() local 169 klen = 3 + wep->key_len; in lib80211_wep_decrypt() 177 arc4_setkey(&wep->rx_ctx, key, klen); in lib80211_wep_decrypt()
|
/linux-6.6.21/net/netfilter/ |
D | nft_set_bitmap.c | 57 if (set->klen == 2) in nft_bitmap_location() 98 nft_set_ext_key(&this->ext), set->klen) || in nft_bitmap_elem_find() 115 if (memcmp(nft_set_ext_key(&be->ext), elem->key.val.data, set->klen) || in nft_bitmap_get() 244 static inline u32 nft_bitmap_size(u32 klen) in nft_bitmap_size() argument 246 return ((2 << ((klen * BITS_PER_BYTE) - 1)) / BITS_PER_BYTE) << 1; in nft_bitmap_size() 249 static inline u64 nft_bitmap_total_size(u32 klen) in nft_bitmap_total_size() argument 251 return sizeof(struct nft_bitmap) + nft_bitmap_size(klen); in nft_bitmap_total_size() 257 u32 klen = ntohl(nla_get_be32(nla[NFTA_SET_KEY_LEN])); in nft_bitmap_privsize() local 259 return nft_bitmap_total_size(klen); in nft_bitmap_privsize() 269 priv->bitmap_size = nft_bitmap_size(set->klen); in nft_bitmap_init() [all …]
|
D | nft_set_hash.c | 60 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp() 410 params.key_len = set->klen; in nft_rhash_init() 492 hash = jhash(key, set->klen, priv->seed); in nft_hash_lookup() 495 if (!memcmp(nft_set_ext_key(&he->ext), key, set->klen) && in nft_hash_lookup() 512 hash = jhash(elem->key.val.data, set->klen, priv->seed); in nft_hash_get() 515 if (!memcmp(nft_set_ext_key(&he->ext), elem->key.val.data, set->klen) && in nft_hash_get() 552 if (set->klen == 4) { in nft_jhash() 556 hash = jhash(key, set->klen, priv->seed); in nft_jhash() 575 nft_set_ext_key(&he->ext), set->klen) && in nft_hash_insert() 614 set->klen) && in nft_hash_deactivate() [all …]
|
D | nft_set_rbtree.c | 46 set->klen); in nft_rbtree_cmp() 72 d = memcmp(nft_set_ext_key(&rbe->ext), key, set->klen); in __nft_rbtree_lookup() 154 d = memcmp(this, key, set->klen); in __nft_rbtree_get() 557 set->klen); in nft_rbtree_deactivate()
|
D | nft_dynset.c | 218 set->klen); in nft_dynset_init() 307 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init()
|
D | nf_conncount.c | 80 static int key_diff(const u32 *a, const u32 *b, unsigned int klen) in key_diff() argument 82 return memcmp(a, b, klen * sizeof(u32)); in key_diff()
|
/linux-6.6.21/tools/bpf/ |
D | bpf_jit_disasm.c | 106 static char *get_klog_buff(unsigned int *klen) in get_klog_buff() argument 125 *klen = ret; in get_klog_buff() 129 static char *get_flog_buff(const char *file, unsigned int *klen) in get_flog_buff() argument 154 *klen = ret; in get_flog_buff() 163 static char *get_log_buff(const char *file, unsigned int *klen) in get_log_buff() argument 165 return file ? get_flog_buff(file, klen) : get_klog_buff(klen); in get_log_buff() 266 unsigned int len, klen, opt, opcodes = 0; in main() local 293 kbuff = get_log_buff(file, &klen); in main() 299 image = get_last_jit_image(kbuff, klen, &len); in main()
|
/linux-6.6.21/arch/x86/crypto/ |
D | aes_ctrby8_avx-x86_64.S | 115 .set klen, \key_len define 180 .if (klen == KEY_128) 197 .if (klen == KEY_128) 209 .if (klen == KEY_128) 223 .if (klen == KEY_128) 231 .if (klen == KEY_128) 252 .if (klen == KEY_128) 260 .if (klen == KEY_128) 275 .if (klen == KEY_128) 287 .if (klen == KEY_128) [all …]
|
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_wep.c | 69 u32 klen, len; in prism2_wep_encrypt() local 85 klen = 3 + wep->key_len; in prism2_wep_encrypt() 96 if (B >= 3 && B < klen) in prism2_wep_encrypt() 118 arc4_setkey(&wep->tx_ctx_arc4, key, klen); in prism2_wep_encrypt() 136 u32 klen, plen; in prism2_wep_decrypt() local 154 klen = 3 + wep->key_len; in prism2_wep_decrypt() 163 arc4_setkey(&wep->rx_ctx_arc4, key, klen); in prism2_wep_decrypt()
|
/linux-6.6.21/drivers/staging/rtl8192e/ |
D | rtllib_crypt_wep.c | 62 u32 klen, len; in prism2_wep_encrypt() local 81 klen = 3 + wep->key_len; in prism2_wep_encrypt() 92 if (B >= 3 && B < klen) in prism2_wep_encrypt() 114 arc4_setkey(&wep->tx_ctx_arc4, key, klen); in prism2_wep_encrypt() 131 u32 klen, plen; in prism2_wep_decrypt() local 150 klen = 3 + wep->key_len; in prism2_wep_decrypt() 159 arc4_setkey(&wep->rx_ctx_arc4, key, klen); in prism2_wep_decrypt()
|
/linux-6.6.21/net/mac80211/ |
D | wep.c | 109 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_encrypt_data() argument 116 arc4_setkey(ctx, rc4key, klen); in ieee80211_wep_encrypt_data() 166 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_decrypt_data() argument 170 arc4_setkey(ctx, rc4key, klen); in ieee80211_wep_decrypt_data() 195 u32 klen; in ieee80211_wep_decrypt() local 217 klen = 3 + key->conf.keylen; in ieee80211_wep_decrypt() 225 if (ieee80211_wep_decrypt_data(&local->wep_rx_ctx, rc4key, klen, in ieee80211_wep_decrypt()
|
D | wep.h | 18 size_t klen, u8 *data, size_t data_len); 23 size_t klen, u8 *data, size_t data_len);
|
/linux-6.6.21/fs/fscache/ |
D | volume.c | 125 size_t klen; in fscache_volume_same() local 132 klen = round_up(a->key[0] + 1, sizeof(__le32)); in fscache_volume_same() 133 return memcmp(a->key, b->key, klen) == 0; in fscache_volume_same() 206 size_t klen, hlen; in fscache_alloc_volume() local 209 klen = strlen(volume_key); in fscache_alloc_volume() 210 if (klen > NAME_MAX) in fscache_alloc_volume() 237 hlen = round_up(1 + klen + 1, sizeof(__le32)); in fscache_alloc_volume() 241 key[0] = klen; in fscache_alloc_volume() 242 memcpy(key + 1, volume_key, klen); in fscache_alloc_volume()
|
/linux-6.6.21/fs/jfs/ |
D | jfs_dtree.h | 64 #define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15)) argument 123 #define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15)) argument
|
D | jfs_dtree.c | 3291 int klen, namlen, len, rc; in dtCompare() local 3312 klen = key->namlen; in dtCompare() 3321 len = min(klen, len); in dtCompare() 3325 klen -= len; in dtCompare() 3330 while (klen > 0 && namlen > 0) { in dtCompare() 3334 len = min(klen, len); in dtCompare() 3339 klen -= len; in dtCompare() 3345 return (klen - namlen); in dtCompare() 3368 int klen, namlen, len, rc; in ciCompare() local 3391 klen = key->namlen; in ciCompare() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_hw.c | 363 int wrlen, klen, len; in chtls_setkey() local 373 klen = roundup((keylen + AEAD_H_SIZE) + sizeof(*kctx), 32); in chtls_setkey() 375 len = klen + wrlen; in chtls_setkey() 413 kwr->req.dlen = cpu_to_be32(ULP_MEMIO_DATA_LEN_V(klen >> 5)); in chtls_setkey() 418 kwr->sc_imm.len = cpu_to_be32(klen); in chtls_setkey()
|
/linux-6.6.21/arch/arm64/kvm/ |
D | guest.c | 409 unsigned int klen; /* length in kernel memory */ member 478 region->klen = min(maxlen, reqlen); in sve_reg_to_region() 479 region->upad = reqlen - region->klen; in sve_reg_to_region() 503 region.klen) || in get_sve_reg() 504 clear_user(uptr + region.klen, region.upad)) in get_sve_reg() 529 region.klen)) in set_sve_reg()
|
/linux-6.6.21/drivers/s390/crypto/ |
D | pkey_api.c | 1508 size_t klen = KEYBLOBBUFSIZE; in pkey_unlocked_ioctl() local 1518 kkey = kzalloc(klen, GFP_KERNEL); in pkey_unlocked_ioctl() 1525 kkey, &klen); in pkey_unlocked_ioctl() 1533 if (kgs.keylen < klen) { in pkey_unlocked_ioctl() 1537 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_unlocked_ioctl() 1542 kgs.keylen = klen; in pkey_unlocked_ioctl() 1550 size_t klen = KEYBLOBBUFSIZE; in pkey_unlocked_ioctl() local 1560 kkey = kzalloc(klen, GFP_KERNEL); in pkey_unlocked_ioctl() 1567 kcs.clrkey.clrkey, kkey, &klen); in pkey_unlocked_ioctl() 1575 if (kcs.keylen < klen) { in pkey_unlocked_ioctl() [all …]
|
/linux-6.6.21/drivers/crypto/starfive/ |
D | jh7110-hash.c | 61 int klen = ctx->keylen, loop; in starfive_hash_hmac_key() local 72 for (loop = 0; loop < klen / sizeof(unsigned int); loop++, key++) in starfive_hash_hmac_key() 75 if (klen & 0x3) { in starfive_hash_hmac_key() 77 for (loop = 0; loop < (klen & 0x3); loop++, cl++) in starfive_hash_hmac_key()
|