/freebsd/crypto/openssl/crypto/siphash/ |
H A D | siphash.c | 75 return ctx->hash_size; in SipHash_hash_size() 78 static size_t siphash_adjust_hash_size(size_t hash_size) in siphash_adjust_hash_size() argument 80 if (hash_size == 0) in siphash_adjust_hash_size() 81 hash_size = SIPHASH_MAX_DIGEST_SIZE; in siphash_adjust_hash_size() 82 return hash_size; in siphash_adjust_hash_size() 85 int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size) in SipHash_set_hash_size() argument 87 hash_size = siphash_adjust_hash_size(hash_size); in SipHash_set_hash_size() 88 if (hash_size != SIPHASH_MIN_DIGEST_SIZE in SipHash_set_hash_size() 89 && hash_size != SIPHASH_MAX_DIGEST_SIZE) in SipHash_set_hash_size() 98 ctx->hash_size = siphash_adjust_hash_size(ctx->hash_size); in SipHash_set_hash_size() [all …]
|
/freebsd/sys/net/route/ |
H A D | nhop_utils.h | 33 uint32_t hash_size; member 43 if ((head->items_count * 2 > head->hash_size) && (head->hash_size < 65536)) in _cht_get_resize_size() 44 new_size = head->hash_size * 2; in _cht_get_resize_size() 45 else if ((head->items_count * 4 < head->hash_size) && head->hash_size > 16) in _cht_get_resize_size() 46 new_size = head->hash_size / 2; in _cht_get_resize_size() 70 uint32_t hash_size; \ 76 (_head)->hash_size = _num_buckets; \ 82 #define CHT_GET_BUCK(_head, _PX, _key) _PX##_hash_key(_key) & ((_head)->hash_size - 1) 83 #define CHT_GET_BUCK_OBJ(_head, _PX, _obj) _PX##_hash_obj(_obj) & ((_head)->hash_size - 1) 136 for (uint32_t _i = 0; _i < (_head)->hash_size; _i++) { \ [all …]
|
H A D | nhgrp.c | 295 if (ctl->gr_head.hash_size == 0) { in nhgrp_ctl_alloc_default()
|
H A D | nhgrp_ctl.c | 480 if (ctl->gr_head.hash_size == 0) { in nhgrp_alloc()
|
/freebsd/lib/libsecureboot/efi/ |
H A D | efi_variables.c | 174 size_t db_size, header_size, hash_size; in efi_get_forbidden_digests() local 205 hash_size = br_sha256_SIZE; in efi_get_forbidden_digests() 208 hash_size = br_sha384_SIZE; in efi_get_forbidden_digests() 211 hash_size = br_sha512_SIZE; in efi_get_forbidden_digests() 234 digests[digest_count].data = malloc(hash_size); in efi_get_forbidden_digests() 240 hash_size); in efi_get_forbidden_digests() 241 digests[digest_count].hash_size = hash_size; in efi_get_forbidden_digests()
|
/freebsd/contrib/wpa/src/tls/ |
H A D | tlsv1_record.c | 46 rl->hash_size = MD5_MAC_LEN; in tlsv1_record_set_cipher_suite() 49 rl->hash_size = SHA1_MAC_LEN; in tlsv1_record_set_cipher_suite() 52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite() 208 rl->hash_size); in tlsv1_record_send() 219 if (clen < rl->hash_size) { in tlsv1_record_send() 427 if (plen < rl->hash_size) { in tlsv1_record_receive() 434 plen -= rl->hash_size; in tlsv1_record_receive() 437 rl->hash_size); in tlsv1_record_receive() 458 if (hlen != rl->hash_size || in tlsv1_record_receive()
|
H A D | tlsv1_server.c | 85 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_derive_keys() 100 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys() 101 pos += conn->rl.hash_size; in tlsv1_server_derive_keys() 103 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys() 104 pos += conn->rl.hash_size; in tlsv1_server_derive_keys() 674 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_get_keyblock_size()
|
H A D | tlsv1_client.c | 103 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len); in tls_derive_keys() 119 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys() 120 pos += conn->rl.hash_size; in tls_derive_keys() 122 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys() 123 pos += conn->rl.hash_size; in tls_derive_keys() 798 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_client_get_keyblock_size()
|
H A D | tlsv1_record.h | 41 size_t hash_size; member
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | siphash.h | 25 int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size); 40 unsigned int hash_size; member
|
/freebsd/crypto/openssl/crypto/sm2/ |
H A D | sm2_crypt.c | 304 const int hash_size = EVP_MD_get_size(digest); in ossl_sm2_decrypt() 313 if (field_size == 0 || hash_size <= 0) in ossl_sm2_decrypt() 325 if (sm2_ctext->C3->length != hash_size) { in ossl_sm2_decrypt() 355 computed_C3 = OPENSSL_zalloc(hash_size); in ossl_sm2_decrypt() 408 if (CRYPTO_memcmp(computed_C3, C3, hash_size) != 0) { 286 const int hash_size = EVP_MD_get_size(digest); ossl_sm2_decrypt() local
|
/freebsd/contrib/bearssl/src/mac/ |
H A D | hmac_ct.c | 28 hash_size(const br_hash_class *dig) in hash_size() function 89 hlen = hash_size(dig); in br_hmac_outCT()
|
/freebsd/contrib/flex/src/ |
H A D | sym.c | 158 static int hashfunct (const char *str, int hash_size) in hashfunct() argument 168 hashval %= hash_size; in hashfunct()
|
/freebsd/lib/libsecureboot/ |
H A D | libsecureboot-priv.h | 37 size_t hash_size; member
|
H A D | vets.c | 635 switch (digest->hash_size) { in check_forbidden_digests()
|
/freebsd/sys/contrib/zlib/ |
H A D | deflate.c | 172 s->head[s->hash_size - 1] = NIL; \ 174 (unsigned)(s->hash_size - 1)*sizeof(*s->head)); \ 192 n = s->hash_size; in slide_hash() 445 s->hash_size = 1 << s->hash_bits; in deflateInit2_() 446 s->hash_mask = s->hash_size - 1; in deflateInit2_() 451 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos)); in deflateInit2_() 1308 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos)); in deflateCopy() 1319 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos)); in deflateCopy()
|
H A D | deflate.h | 147 uInt hash_size; /* number of elements in hash table */ member
|
/freebsd/crypto/libecc/src/sig/ |
H A D | eddsa.c | 1235 u8 hsize, hash_size; local 1331 hash_size = sizeof(hash); 1332 ret = eddsa_get_digest_from_priv_key(hash, &hash_size, priv_key); EG(ret, err); 1335 MUST_HAVE((hash_size == hsize), ret, err); 1523 VAR_ZEROIFY(hash_size); 1580 u8 hsize, hash_size; local 1670 hash_size = sizeof(ph_hash); 1671 ret = eddsa_compute_pre_hash(m, mlen, ph_hash, &hash_size, sig_type); EG(ret, err); 1672 MUST_HAVE(use_message_pre_hash_hsize <= hash_size, ret, err); 1676 hash_size = sizeof(hash); [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_dn_io.c | 103 value = V_dn_cfg.hash_size; in sysctl_hash_size() 109 V_dn_cfg.hash_size = value; in sysctl_hash_size() 157 SYSCTL_PROC(_net_inet_ip_dummynet, OID_AUTO, hash_size,
|
H A D | ip_dn_private.h | 106 int hash_size; member
|
H A D | ip_dummynet.c | 1647 ipdn_bound_var((int *)&nfs->buckets, V_dn_cfg.hash_size, in config_fs() 1754 ipdn_bound_var((int *)&a.sch->buckets, V_dn_cfg.hash_size, in config_sched() 2579 V_dn_cfg.hash_size = 64; /* default hash size */ in ip_dn_vnet_init() 2584 V_dn_cfg.schedhash = dn_ht_init(NULL, V_dn_cfg.hash_size, in ip_dn_vnet_init() 2587 V_dn_cfg.fshash = dn_ht_init(NULL, V_dn_cfg.hash_size, in ip_dn_vnet_init()
|
H A D | ip_fw_sockopt.c | 3371 ipfw_objhash_create(uint32_t items, size_t hash_size) in ipfw_objhash_create() argument 3378 sizeof(struct namedobjects_head) * hash_size + in ipfw_objhash_create() 3379 sizeof(struct namedobjects_head) * hash_size; in ipfw_objhash_create() 3382 ni->nn_size = hash_size; in ipfw_objhash_create() 3383 ni->nv_size = hash_size; in ipfw_objhash_create()
|
H A D | ip_fw_private.h | 703 struct namedobj_instance *ipfw_objhash_create(uint32_t items, size_t hash_size);
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_rar5.c | 1281 const int hash_size = sizeof(rar->file.blake2sp); in parse_file_extra_hash() local 1283 if(!read_ahead(a, hash_size, &p)) in parse_file_extra_hash() 1287 memcpy(&rar->file.blake2sp, p, hash_size); in parse_file_extra_hash() 1289 if(ARCHIVE_OK != consume(a, hash_size)) { in parse_file_extra_hash() 1293 *extra_data_size -= hash_size; in parse_file_extra_hash()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | tls_openssl.c | 414 DWORD hash_size, len, i; in cryptoapi_rsa_priv_enc() local 444 len = sizeof(hash_size); in cryptoapi_rsa_priv_enc() 445 if (!CryptGetHashParam(hash, HP_HASHSIZE, (BYTE *) &hash_size, &len, in cryptoapi_rsa_priv_enc() 451 if ((int) hash_size != flen) { in cryptoapi_rsa_priv_enc() 453 (unsigned) hash_size, flen); in cryptoapi_rsa_priv_enc()
|