Home
last modified time | relevance | path

Searched refs:key_size (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/tests/sys/kern/
H A Dktls_test.c1977 #define GEN_TRANSMIT_APP_DATA_TEST(cipher_name, cipher_alg, key_size, \ argument
1987 build_tls_enable(tc, cipher_alg, key_size, auth_alg, minor, \
1993 #define ADD_TRANSMIT_APP_DATA_TEST(cipher_name, cipher_alg, key_size, \ argument
1997 #define GEN_TRANSMIT_CONTROL_TEST(cipher_name, cipher_alg, key_size, \ argument
2007 build_tls_enable(tc, cipher_alg, key_size, auth_alg, minor, \
2013 #define ADD_TRANSMIT_CONTROL_TEST(cipher_name, cipher_alg, key_size, \ argument
2018 key_size, auth_alg, minor) \ argument
2027 build_tls_enable(tc, cipher_alg, key_size, auth_alg, minor, \
2034 key_size, auth_alg, minor) \ argument
2037 #define GEN_TRANSMIT_TESTS(cipher_name, cipher_alg, key_size, auth_al argument
2046 ADD_TRANSMIT_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2071 GEN_TRANSMIT_PADDING_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2106 ADD_TRANSMIT_PADDING_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2173 GEN_INVALID_TRANSMIT_TEST(name,cipher_alg,key_size,auth_alg,minor) global() argument
2189 ADD_INVALID_TRANSMIT_TEST(name,cipher_alg,key_size,auth_alg,minor) global() argument
2222 GEN_RECEIVE_APP_DATA_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,name,len,padding) global() argument
2238 ADD_RECEIVE_APP_DATA_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,name) global() argument
2242 GEN_RECEIVE_BAD_DATA_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2258 ADD_RECEIVE_BAD_DATA_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2262 GEN_RECEIVE_BAD_MAC_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2278 ADD_RECEIVE_BAD_MAC_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2282 GEN_RECEIVE_TRUNCATED_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2298 ADD_RECEIVE_TRUNCATED_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2302 GEN_RECEIVE_BAD_MAJOR_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2318 ADD_RECEIVE_BAD_MAJOR_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2322 GEN_RECEIVE_BAD_MINOR_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2338 ADD_RECEIVE_BAD_MINOR_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2342 GEN_RECEIVE_BAD_SIZE_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,name,len) global() argument
2358 ADD_RECEIVE_BAD_SIZE_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,name) global() argument
2362 GEN_RECEIVE_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2385 ADD_RECEIVE_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2433 GEN_RECEIVE_MTE_PADDING_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2472 ADD_RECEIVE_MTE_PADDING_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2510 GEN_RECEIVE_BAD_PADDING_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2526 ADD_RECEIVE_BAD_PADDING_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2530 GEN_RECEIVE_MTE_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2540 ADD_RECEIVE_MTE_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2567 GEN_RECEIVE_BAD_IV_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2583 ADD_RECEIVE_BAD_IV_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2588 GEN_RECEIVE_EXPLICIT_IV_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2596 ADD_RECEIVE_EXPLICIT_IV_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2610 GEN_RECEIVE_BAD_TYPE_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor,len) global() argument
2626 ADD_RECEIVE_BAD_TYPE_TEST(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2630 GEN_RECEIVE_TLS13_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2639 ADD_RECEIVE_TLS13_TESTS(cipher_name,cipher_alg,key_size,auth_alg,minor) global() argument
2669 GEN_INVALID_RECEIVE_TEST(name,cipher_alg,key_size,auth_alg,minor) global() argument
2685 ADD_INVALID_RECEIVE_TEST(name,cipher_alg,key_size,auth_alg,minor) global() argument
2708 GEN_UNSUPPORTED_RECEIVE_TEST(name,cipher_alg,key_size,auth_alg,minor) global() argument
2724 ADD_UNSUPPORTED_RECEIVE_TEST(name,cipher_alg,key_size,auth_alg,minor) global() argument
[all...]
/freebsd/lib/libc/net/
H A Dnscache.c75 cache_data->key_size = NSS_CACHE_KEY_INITIAL_SIZE; in __nss_common_cache_read()
79 size = cache_data->key_size; in __nss_common_cache_read()
84 if (cache_data->key_size > NSS_CACHE_KEY_SIZE_LIMIT) in __nss_common_cache_read()
87 cache_data->key_size <<= 1; in __nss_common_cache_read()
89 cache_data->key_size); in __nss_common_cache_read()
90 memset(cache_data->key, 0, cache_data->key_size); in __nss_common_cache_read()
98 cache_data->key_size = 0; in __nss_common_cache_read()
101 cache_data->key_size = size; in __nss_common_cache_read()
114 cache_data->key, cache_data->key_size, buffer, in __nss_common_cache_read()
128 cache_data->key_size = 0; in __nss_common_cache_read()
[all …]
H A Dnscachedcli.c253 const char *key, size_t key_size, const char *data, size_t data_size) in __cached_write() argument
270 result = safe_write(connection, &key_size, sizeof(size_t)); in __cached_write()
282 result = safe_write(connection, key, key_size); in __cached_write()
305 const char *key, size_t key_size, char *data, size_t *data_size) in __cached_read() argument
324 result = safe_write(connection, &key_size, sizeof(size_t)); in __cached_read()
332 result = safe_write(connection, key, key_size); in __cached_read()
/freebsd/usr.sbin/nscd/
H A Dcachelib.c86 if (hp1->key_size != hp2->key_size) { in ht_items_cmp_func()
87 min_size = (hp1->key_size < hp2->key_size) ? hp1->key_size : in ht_items_cmp_func()
88 hp2->key_size; in ht_items_cmp_func()
92 return ((hp1->key_size < hp2->key_size) ? -1 : 1); in ht_items_cmp_func()
96 return (memcmp(hp1->key, hp2->key, hp1->key_size)); in ht_items_cmp_func()
112 if (hp1->key_size != hp2->key_size) { in ht_items_fixed_size_left_cmp_func()
113 min_size = (hp1->key_size < hp2->key_size) ? hp1->key_size : in ht_items_fixed_size_left_cmp_func()
114 hp2->key_size; in ht_items_fixed_size_left_cmp_func()
118 if (min_size == hp1->key_size) in ht_items_fixed_size_left_cmp_func()
121 return ((hp1->key_size < hp2->key_size) ? -1 : 1); in ht_items_fixed_size_left_cmp_func()
[all …]
H A Dcacheplcs.h42 size_t key_size; member
H A Dcachelib.h112 size_t key_size; member
/freebsd/contrib/ntp/sntp/
H A Dcrypto.c27 size_t key_size in compute_mac()
46 if (AES_128_KEY_SIZE > key_size) { in compute_mac()
47 memcpy(keybuf, key_data, key_size); in compute_mac()
48 memset((keybuf + key_size), 0, in compute_mac()
49 (AES_128_KEY_SIZE - key_size)); in compute_mac()
94 if (!EVP_DigestUpdate(ctx, key_data, key_size)) { in compute_mac()
115 EVP_DigestUpdate(ctx, key_data, key_size); in compute_mac()
26 compute_mac(u_char digest[EVP_MAX_MD_SIZE],char const * macname,void const * pkt_data,u_int pkt_size,void const * key_data,u_int key_size) compute_mac() argument
/freebsd/sys/dev/hyperv/utilities/
H A Dhv_kvp.c410 umsg->body.kvp_set.data.key_size = in hv_kvp_convert_hostmsg_to_usermsg()
415 hmsg->body.kvp_set.data.key_size, in hv_kvp_convert_hostmsg_to_usermsg()
419 umsg->body.kvp_set.data.key_size = in hv_kvp_convert_hostmsg_to_usermsg()
420 umsg->body.kvp_set.data.key_size / 2; in hv_kvp_convert_hostmsg_to_usermsg()
424 umsg->body.kvp_get.data.key_size = in hv_kvp_convert_hostmsg_to_usermsg()
428 hmsg->body.kvp_get.data.key_size, in hv_kvp_convert_hostmsg_to_usermsg()
431 umsg->body.kvp_get.data.key_size = in hv_kvp_convert_hostmsg_to_usermsg()
432 umsg->body.kvp_get.data.key_size / 2; in hv_kvp_convert_hostmsg_to_usermsg()
436 umsg->body.kvp_delete.key_size = in hv_kvp_convert_hostmsg_to_usermsg()
440 hmsg->body.kvp_delete.key_size, in hv_kvp_convert_hostmsg_to_usermsg()
[all …]
H A Dhv_kvp.h174 uint32_t key_size; member
198 uint32_t key_size; member
/freebsd/usr.sbin/nscd/agents/
H A Dservices.c121 services_lookup_func(const char *key, size_t key_size, char **buffer, in services_lookup_func() argument
137 if (key_size < sizeof(enum nss_lookup_type)) { in services_lookup_func()
145 size = key_size - sizeof(enum nss_lookup_type); in services_lookup_func()
158 if (key_size < sizeof(enum nss_lookup_type) + in services_lookup_func()
167 size = key_size - sizeof(enum nss_lookup_type) - sizeof(int); in services_lookup_func()
H A Dgroup.c118 group_lookup_func(const char *key, size_t key_size, char **buffer, in group_lookup_func() argument
132 if (key_size < sizeof(enum nss_lookup_type)) { in group_lookup_func()
140 size = key_size - sizeof(enum nss_lookup_type) + 1; in group_lookup_func()
146 if (key_size < sizeof(enum nss_lookup_type) + in group_lookup_func()
H A Dpasswd.c127 passwd_lookup_func(const char *key, size_t key_size, char **buffer, in passwd_lookup_func() argument
141 if (key_size < sizeof(enum nss_lookup_type)) { in passwd_lookup_func()
149 size = key_size - sizeof(enum nss_lookup_type) + 1; in passwd_lookup_func()
155 if (key_size < sizeof(enum nss_lookup_type) + in passwd_lookup_func()
/freebsd/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c365 kvp_key_delete(int pool, __u8 *key, int key_size) in kvp_key_delete() argument
383 if (memcmp(key, record[i].key, key_size)) { in kvp_key_delete()
422 kvp_key_add_or_modify(int pool, __u8 *key, __u32 key_size, __u8 *value, in kvp_key_add_or_modify() argument
433 if ((key_size > HV_KVP_EXCHANGE_MAX_KEY_SIZE) || in kvp_key_add_or_modify()
448 if (memcmp(key, record[i].key, key_size)) { in kvp_key_add_or_modify()
474 memcpy(record[i].key, key, key_size); in kvp_key_add_or_modify()
483 kvp_get_value(int pool, __u8 *key, int key_size, __u8 *value, in kvp_get_value() argument
493 if ((key_size > HV_KVP_EXCHANGE_MAX_KEY_SIZE) || in kvp_get_value()
506 if (memcmp(key, record[i].key, key_size)) { in kvp_get_value()
520 kvp_pool_enumerate(int pool, int idx, __u8 *key, int key_size, in kvp_pool_enumerate() argument
[all …]
/freebsd/sys/crypto/via/
H A Dpadlock.h41 u_int key_size : 2; member
53 #define cw_key_size __field.key_size
/freebsd/lib/libc/db/hash/
H A Dhash_bigkey.c85 int key_size, n; in __big_insert() local
94 key_size = key->size; in __big_insert()
99 for (space = FREESPACE(p) - BIGOVERHEAD; key_size; in __big_insert()
101 move_bytes = MIN(space, key_size); in __big_insert()
104 key_size -= move_bytes; in __big_insert()
116 if (!key_size) { in __big_insert()
/freebsd/sys/dev/ena/
H A Dena_rss.c63 ena_rss_reorder_hash_key(u8 *reordered_key, const u8 *key, size_t key_size) in ena_rss_reorder_hash_key() argument
67 key = key + key_size - 1; in ena_rss_reorder_hash_key()
69 for (i = 0; i < key_size; ++i) in ena_rss_reorder_hash_key()
/freebsd/contrib/ldns/
H A Dtsig.c177 int key_size; in ldns_tsig_mac_new() local
244 key_size = ldns_b64_pton(key_data, key_bytes, in ldns_tsig_mac_new()
246 if (key_size < 0) { in ldns_tsig_mac_new()
262 (void) HMAC(digester, key_bytes, key_size, (void *)wireformat, in ldns_tsig_mac_new()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_tls.c
/freebsd/crypto/openssl/engines/
H A De_afalg.h63 int key_size; member
/freebsd/contrib/unbound/dnscrypt/
H A Ddnscrypt.c1036 size_t key_size = sizeof(struct shared_secret_cache_key) in dnsc_shared_secrets_sizefunc() local
1040 return key_size + data_size; in dnsc_shared_secrets_sizefunc()
1074 size_t key_size = sizeof(struct nonce_cache_key) in dnsc_nonces_sizefunc() local
1077 return key_size; in dnsc_nonces_sizefunc()
/freebsd/lib/libc/include/
H A Dnscache.h175 size_t key_size; member
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Dsta.h471 u8 key_size;
469 u8 key_size; global() member
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_ni.h219 } key_size; member
/freebsd/sbin/pfctl/
H A Dpfctl_altq.c131 size_t key_size; in pfaltq_store() local
145 key_size = sizeof(a->ifname) + sizeof(a->qname); in pfaltq_store()
146 if ((item.key = malloc(key_size)) == NULL) in pfaltq_store()
148 snprintf(item.key, key_size, "%s:%s", a->ifname, a->qname); in pfaltq_store()
/freebsd/sys/dev/qat/include/common/
H A Dicp_qat_uclo.h463 unsigned int key_size; member

12