/linux/lib/crypto/ |
H A D | aesgcm.c | 566 int klen; member 572 .klen = 16, 576 .klen = 16, 584 .klen = 16, 594 .klen = 16, 606 .klen = 24, 610 .klen = 24, 619 .klen = 24, 627 .klen = 32, 631 .klen = 32, [all …]
|
H A D | aescfb.c | 115 int klen; member 121 .klen = 16, 145 .klen = 24, 170 .klen = 32, 193 .klen = 16, 206 .klen = 16, 221 if (aes_expandkey(&ctx, aescfb_tv[i].key, aescfb_tv[i].klen)) { in libaescfb_init()
|
/linux/arch/x86/crypto/ |
H A 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/net/mac80211/ |
H A D | wep.c | 110 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_encrypt_data() argument 117 arc4_setkey(ctx, rc4key, klen); in ieee80211_wep_encrypt_data() 167 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_decrypt_data() argument 171 arc4_setkey(ctx, rc4key, klen); in ieee80211_wep_decrypt_data() 196 u32 klen; in ieee80211_wep_decrypt() local 218 klen = 3 + key->conf.keylen; in ieee80211_wep_decrypt() 226 if (ieee80211_wep_decrypt_data(&local->wep_rx_ctx, rc4key, klen, in ieee80211_wep_decrypt()
|
H A D | wep.h | 18 size_t klen, u8 *data, size_t data_len); 23 size_t klen, u8 *data, size_t data_len);
|
/linux/crypto/ |
H A D | tcrypt.h | 17 unsigned int klen; member 22 unsigned int klen; member 40 .klen = 24,
|
H A 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()
|
H A 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() 2271 klen = 16; in do_test() 2617 u8 speed_template[2] = {klen, 0}; in do_test() 2879 module_param(klen, uint, 0); [all …]
|
H A D | testmgr.c | 2088 err = do_setkey(crypto_aead_setkey, tfm, vec->key, vec->klen, in test_aead_vec_cfg() 2423 vec->klen = maxkeysize; in generate_random_aead_testvec() 2425 vec->klen = prandom_u32_below(rng, maxkeysize + 1); in generate_random_aead_testvec() 2426 generate_random_bytes(rng, (u8 *)vec->key, vec->klen); in generate_random_aead_testvec() 2427 vec->setkey_error = crypto_aead_setkey(tfm, vec->key, vec->klen); in generate_random_aead_testvec() 2462 vec->alen, vec->plen, authsize, vec->klen, vec->novrfy); in generate_random_aead_testvec() 2647 test_desc->suite.aead.vecs[i].klen); in test_aead_extra() 2798 template[i].klen); in test_cipher() 2868 err = do_setkey(crypto_skcipher_setkey, tfm, vec->key, vec->klen, in test_skcipher_vec_cfg() 3069 vec->klen = maxkeysize; in generate_random_cipher_testvec() [all …]
|
/linux/fs/jfs/ |
H A 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
|
/linux/drivers/s390/crypto/ |
H A D | pkey_api.c | 392 u32 klen = KEYBLOBBUFSIZE; in pkey_ioctl_genseck2() local 410 kkey = kzalloc(klen, GFP_KERNEL); in pkey_ioctl_genseck2() 417 kkey, &klen, NULL); in pkey_ioctl_genseck2() 425 if (kgs.keylen < klen) { in pkey_ioctl_genseck2() 429 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_ioctl_genseck2() 434 kgs.keylen = klen; in pkey_ioctl_genseck2() 444 u32 klen = KEYBLOBBUFSIZE; in pkey_ioctl_clr2seck2() local 465 kkey = kzalloc(klen, GFP_KERNEL); in pkey_ioctl_clr2seck2() 474 kkey, &klen, NULL); in pkey_ioctl_clr2seck2() 483 if (kcs.keylen < klen) { in pkey_ioctl_clr2seck2() [all …]
|
/linux/net/netfilter/ |
H A D | nft_set_hash.c | 64 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp() 433 params.key_len = set->klen; in nft_rhash_init() 517 hash = jhash(key, set->klen, priv->seed); in nft_hash_lookup() 520 if (!memcmp(nft_set_ext_key(&he->ext), key, set->klen) && in nft_hash_lookup() 538 hash = jhash(elem->key.val.data, set->klen, priv->seed); in nft_hash_get() 541 if (!memcmp(nft_set_ext_key(&he->ext), elem->key.val.data, set->klen) && in nft_hash_get() 578 if (set->klen == 4) { in nft_jhash() 582 hash = jhash(key, set->klen, priv->seed); in nft_jhash() 601 nft_set_ext_key(&he->ext), set->klen) && in nft_hash_insert() 640 set->klen) && in nft_hash_deactivate() [all …]
|
H A D | nft_set_rbtree.c | 47 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() 562 set->klen); in nft_rbtree_deactivate()
|
H A D | nft_dynset.c | 220 set->klen); in nft_dynset_init() 309 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init()
|
H A 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()
|
H A D | nft_objref.c | 147 set->klen); in nft_objref_map_init()
|
H A D | nft_lookup.c | 117 set->klen); in nft_lookup_init()
|
H A D | nf_tables_api.c | 4792 if (nla_put_be32(skb, NFTA_SET_KEY_LEN, htonl(set->klen))) in nf_tables_fill_set() 5084 key_num_regs = DIV_ROUND_UP(desc->klen, sizeof(u32)); in nft_set_desc_concat() 5175 set->klen != desc->klen || in nft_set_is_same() 5230 desc.klen = ntohl(nla_get_be32(nla[NFTA_SET_KEY_LEN])); in nf_tables_newset() 5231 if (desc.klen == 0 || desc.klen > NFT_DATA_VALUE_MAXLEN) in nf_tables_newset() 5442 set->klen = desc.klen; in nf_tables_newset() 5917 NFT_DATA_VALUE, set->klen) < 0) in nf_tables_fill_setelem() 5922 NFT_DATA_VALUE, set->klen) < 0) in nf_tables_fill_setelem() 6245 .len = set->klen, in nft_setelem_parse_key() 6623 nft_set_ext_key(ext), key, set->klen) < 0) in nft_set_elem_init() [all …]
|
/linux/drivers/crypto/starfive/ |
H A D | jh7110-hash.c | 68 int klen = ctx->keylen, loop; in starfive_hash_hmac_key() local 79 for (loop = 0; loop < klen / sizeof(unsigned int); loop++, key++) in starfive_hash_hmac_key() 82 if (klen & 0x3) { in starfive_hash_hmac_key() 84 for (loop = 0; loop < (klen & 0x3); loop++, cl++) in starfive_hash_hmac_key()
|
/linux/net/ |
H A D | socket.c | 274 static int move_addr_to_user(struct sockaddr_storage *kaddr, int klen, in move_addr_to_user() argument 280 BUG_ON(klen > sizeof(struct sockaddr_storage)); in move_addr_to_user() 284 if (len > klen) in move_addr_to_user() 285 len = klen; in move_addr_to_user() 289 if (audit_sockaddr(klen, kaddr)) in move_addr_to_user() 298 return __put_user(klen, ulen); in move_addr_to_user()
|
/linux/drivers/input/ |
H A D | input.c | 1358 int len, klen, remainder, space; in input_print_modalias_parts() local 1374 klen = input_print_modalias_bits(buf + len, size - len, in input_print_modalias_parts() 1376 len += klen; in input_print_modalias_parts() 1387 if (full_len && size < full_len + 1 && klen > 3) { in input_print_modalias_parts()
|
/linux/fs/smb/client/ |
H A D | smbdirect.c | 1959 unsigned int remaining_data_length, klen; in smbd_send() local 1998 klen = 0; in smbd_send() 2000 klen += rqst->rq_iov[i].iov_len; in smbd_send() 2001 iov_iter_kvec(&iter, ITER_SOURCE, rqst->rq_iov, rqst->rq_nvec, klen); in smbd_send()
|
/linux/include/net/netfilter/ |
H A D | nf_tables.h | 358 unsigned int klen; member 607 u8 klen; member
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
H A D | r535.c | 1120 size_t klen; member 1178 reg->klen = nlen; in add_registry() 1252 memcpy((void *)registry + str_offset, reg->key, reg->klen); in build_registry() 1253 str_offset += reg->klen; in build_registry()
|
/linux/drivers/net/ethernet/sun/ |
H A D | cassini.c | 3184 int klen = readb(p + 2); in cas_get_vpd_info() local 3233 if ((klen == 29) && readb(p + 4) == 6 && in cas_get_vpd_info() 3251 if ((klen == 24) && in cas_get_vpd_info() 3262 if ((klen == 18) && readb(p + 4) == 4 && in cas_get_vpd_info() 3270 if ((klen == 23) && readb(p + 4) == 4 && in cas_get_vpd_info() 3285 p += klen; in cas_get_vpd_info()
|