Home
last modified time | relevance | path

Searched refs:klen (Results 1 – 22 of 22) sorted by relevance

/linux-3.4.99/crypto/
Dtestmgr.h58 unsigned char klen; member
76 unsigned char klen; member
87 unsigned char klen; member
2007 .klen = 8,
2014 .klen = 8,
2021 .klen = 8,
2028 .klen = 8,
2041 .klen = 8,
2048 .klen = 8,
2059 .klen = 8,
[all …]
Dtcrypt.h22 unsigned int klen; member
28 unsigned int klen; /* key length */ member
41 .klen = 24,
90 { .blen = 16, .plen = 16, .klen = 16, },
91 { .blen = 64, .plen = 16, .klen = 16, },
92 { .blen = 64, .plen = 64, .klen = 16, },
93 { .blen = 256, .plen = 16, .klen = 16, },
94 { .blen = 256, .plen = 64, .klen = 16, },
95 { .blen = 256, .plen = 256, .klen = 16, },
96 { .blen = 1024, .plen = 16, .klen = 16, },
[all …]
Dansi_cprng.c280 unsigned char *key, size_t klen, in reset_prng_context() argument
292 klen = DEFAULT_PRNG_KSZ; in reset_prng_context()
309 ret = crypto_cipher_setkey(ctx->tfm, prng_key, klen); in reset_prng_context()
Dtcrypt.c195 if (template[j].klen == *keysize) { in test_cipher_speed()
454 if (speed[i].klen) in test_hash_speed()
455 crypto_hash_setkey(tfm, tvmem[0], speed[i].klen); in test_hash_speed()
870 if (template[j].klen == *keysize) { in test_acipher_speed()
Dtestmgr.c433 template[i].klen); in test_aead()
523 ret = crypto_aead_setkey(tfm, key, template[i].klen); in test_aead()
727 template[i].klen); in test_cipher()
823 template[i].klen); in test_skcipher()
887 template[i].klen); in test_skcipher()
1266 template[i].klen); in test_cprng()
1267 memcpy(seed + template[i].vlen + template[i].klen, in test_cprng()
/linux-3.4.99/fs/afs/
Dcache.c88 uint16_t klen; in afs_cell_cache_get_key() local
92 klen = strlen(cell->name); in afs_cell_cache_get_key()
93 if (klen > bufmax) in afs_cell_cache_get_key()
96 memcpy(buffer, cell->name, klen); in afs_cell_cache_get_key()
97 return klen; in afs_cell_cache_get_key()
138 uint16_t klen; in afs_vlocation_cache_get_key() local
142 klen = strnlen(vlocation->vldb.name, sizeof(vlocation->vldb.name)); in afs_vlocation_cache_get_key()
143 if (klen > bufmax) in afs_vlocation_cache_get_key()
146 memcpy(buffer, vlocation->vldb.name, klen); in afs_vlocation_cache_get_key()
148 _leave(" = %u", klen); in afs_vlocation_cache_get_key()
[all …]
/linux-3.4.99/fs/fscache/
Dfsdef.c85 unsigned klen; in fscache_fsdef_netfs_get_key() local
89 klen = strlen(netfs->name); in fscache_fsdef_netfs_get_key()
90 if (klen > bufmax) in fscache_fsdef_netfs_get_key()
93 memcpy(buffer, netfs->name, klen); in fscache_fsdef_netfs_get_key()
94 return klen; in fscache_fsdef_netfs_get_key()
/linux-3.4.99/net/wireless/
Dlib80211_crypt_wep.c95 u32 klen; in lib80211_wep_build_iv() local
105 klen = 3 + wep->key_len; in lib80211_wep_build_iv()
114 if (B >= 3 && B < klen) in lib80211_wep_build_iv()
137 u32 crc, klen, len; in lib80211_wep_encrypt() local
158 klen = 3 + wep->key_len; in lib80211_wep_encrypt()
168 crypto_blkcipher_setkey(wep->tx_tfm, key, klen); in lib80211_wep_encrypt()
184 u32 crc, klen, plen; in lib80211_wep_decrypt() local
200 klen = 3 + wep->key_len; in lib80211_wep_decrypt()
208 crypto_blkcipher_setkey(wep->rx_tfm, key, klen); in lib80211_wep_decrypt()
/linux-3.4.99/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_wep.c109 u32 klen, len; in prism2_wep_encrypt() local
125 klen = 3 + wep->key_len; in prism2_wep_encrypt()
134 if (B >= 3 && B < klen) in prism2_wep_encrypt()
155 crypto_blkcipher_setkey(wep->tx_tfm, key, klen); in prism2_wep_encrypt()
173 u32 klen, plen; in prism2_wep_decrypt() local
191 klen = 3 + wep->key_len; in prism2_wep_decrypt()
199 crypto_blkcipher_setkey(wep->rx_tfm, key, klen); in prism2_wep_decrypt()
/linux-3.4.99/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_wep.c105 u32 klen, len; in prism2_wep_encrypt() local
122 klen = 3 + wep->key_len; in prism2_wep_encrypt()
131 if (B >= 3 && B < klen) in prism2_wep_encrypt()
155 crypto_blkcipher_setkey(wep->tx_tfm, key, klen); in prism2_wep_encrypt()
175 u32 klen, plen; in prism2_wep_decrypt() local
194 klen = 3 + wep->key_len; in prism2_wep_decrypt()
204 crypto_blkcipher_setkey(wep->rx_tfm, key, klen); in prism2_wep_decrypt()
/linux-3.4.99/drivers/staging/rtl8192e/
Drtllib_crypt_wep.c99 u32 klen, len; in prism2_wep_encrypt() local
120 klen = 3 + wep->key_len; in prism2_wep_encrypt()
129 if (B >= 3 && B < klen) in prism2_wep_encrypt()
153 crypto_blkcipher_setkey(wep->tx_tfm, key, klen); in prism2_wep_encrypt()
171 u32 klen, plen; in prism2_wep_decrypt() local
191 klen = 3 + wep->key_len; in prism2_wep_decrypt()
201 crypto_blkcipher_setkey(wep->rx_tfm, key, klen); in prism2_wep_decrypt()
/linux-3.4.99/net/mac80211/
Dwep.c129 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_encrypt_data() argument
140 crypto_cipher_setkey(tfm, rc4key, klen); in ieee80211_wep_encrypt_data()
187 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_decrypt_data() argument
195 crypto_cipher_setkey(tfm, rc4key, klen); in ieee80211_wep_decrypt_data()
220 u32 klen; in ieee80211_wep_decrypt() local
242 klen = 3 + key->conf.keylen; in ieee80211_wep_decrypt()
250 if (ieee80211_wep_decrypt_data(local->wep_rx_tfm, rc4key, klen, in ieee80211_wep_decrypt()
Dwep.h22 size_t klen, u8 *data, size_t data_len);
27 size_t klen, u8 *data, size_t data_len);
/linux-3.4.99/fs/jfs/
Djfs_dtree.h77 #define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15)) argument
136 #define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15)) argument
Djfs_dtree.c3604 int klen, namlen, len, rc; in dtCompare() local
3625 klen = key->namlen; in dtCompare()
3634 len = min(klen, len); in dtCompare()
3638 klen -= len; in dtCompare()
3643 while (klen > 0 && namlen > 0) { in dtCompare()
3647 len = min(klen, len); in dtCompare()
3652 klen -= len; in dtCompare()
3658 return (klen - namlen); in dtCompare()
3681 int klen, namlen, len, rc; in ciCompare() local
3704 klen = key->namlen; in ciCompare()
[all …]
/linux-3.4.99/fs/9p/
Dcache.c62 uint16_t klen = 0; in v9fs_cache_session_get_key() local
69 klen = strlen(v9ses->cachetag); in v9fs_cache_session_get_key()
71 if (klen > bufmax) in v9fs_cache_session_get_key()
74 memcpy(buffer, v9ses->cachetag, klen); in v9fs_cache_session_get_key()
76 return klen; in v9fs_cache_session_get_key()
/linux-3.4.99/net/
Dcompat.c666 int klen, ulen, err; in compat_mc_getsockopt() local
677 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt()
679 if (klen < GROUP_FILTER_SIZE(0)) in compat_mc_getsockopt()
683 __put_user(klen, koptlen)) in compat_mc_getsockopt()
687 kgf = compat_alloc_user_space(klen+sizeof(*optlen)); in compat_mc_getsockopt()
704 __get_user(klen, koptlen)) in compat_mc_getsockopt()
707 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt()
713 if (!access_ok(VERIFY_READ, kgf, klen) || in compat_mc_getsockopt()
725 klen -= GROUP_FILTER_SIZE(0); in compat_mc_getsockopt()
727 if (copylen > klen) in compat_mc_getsockopt()
[all …]
Dsocket.c212 static int move_addr_to_user(struct sockaddr_storage *kaddr, int klen, in move_addr_to_user() argument
218 BUG_ON(klen > sizeof(struct sockaddr_storage)); in move_addr_to_user()
222 if (len > klen) in move_addr_to_user()
223 len = klen; in move_addr_to_user()
227 if (audit_sockaddr(klen, kaddr)) in move_addr_to_user()
236 return __put_user(klen, ulen); in move_addr_to_user()
/linux-3.4.99/arch/x86/crypto/
Daes-i586-asm_32.S49 #define klen (480) macro
239 mov klen(%ebp),%r3 // key size
314 mov klen(%ebp),%r3 // key size
/linux-3.4.99/net/xfrm/
Dxfrm_user.c404 int klen, ulen; in xfrm_alloc_replay_state_esn() local
410 klen = xfrm_replay_state_esn_len(up); in xfrm_alloc_replay_state_esn()
411 ulen = nla_len(rta) >= klen ? klen : sizeof(*up); in xfrm_alloc_replay_state_esn()
413 p = kzalloc(klen, GFP_KERNEL); in xfrm_alloc_replay_state_esn()
417 pp = kzalloc(klen, GFP_KERNEL); in xfrm_alloc_replay_state_esn()
/linux-3.4.99/drivers/net/ethernet/sun/
Dcassini.c3245 int klen = readb(p + 2); in cas_get_vpd_info() local
3294 if ((klen == 29) && readb(p + 4) == 6 && in cas_get_vpd_info()
3312 if ((klen == 24) && in cas_get_vpd_info()
3323 if ((klen == 18) && readb(p + 4) == 4 && in cas_get_vpd_info()
3331 if ((klen == 23) && readb(p + 4) == 4 && in cas_get_vpd_info()
3346 p += klen; in cas_get_vpd_info()
/linux-3.4.99/drivers/net/wireless/
Dairo.c505 __le16 klen; member
5206 int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); in get_wep_key() local
5207 memcpy(buf, wkr.key, klen); in get_wep_key()
5208 return klen; in get_wep_key()
5250 wkr.klen = cpu_to_le16(keylen); in set_wep_key()
5373 le16_to_cpu(wkr.klen)); in proc_wepkey_open()