/freebsd-current/contrib/wpa/src/eap_common/ |
H A D | eap_pwd_common.h | 68 void eap_pwd_h_update(struct crypto_hash *hash, const u8 *data, size_t len); 69 void eap_pwd_h_final(struct crypto_hash *hash, u8 *digest);
|
/freebsd-current/contrib/bearssl/src/rsa/ |
H A D | rsa_pss_sig_unpad.c | 31 const unsigned char *hash, size_t salt_len, 69 * Check that the modulus is large enough for the hash value 108 hf_data->update(&hc.vtable, hash, hash_len); 29 br_rsa_pss_sig_unpad(const br_hash_class *hf_data, const br_hash_class *hf_mgf1, const unsigned char *hash, size_t salt_len, const br_rsa_public_key *pk, unsigned char *x) argument
|
/freebsd-current/sys/dev/random/ |
H A D | other_algorithm.c | 60 #include <dev/random/hash.h> 78 #include <dev/random/hash.h>
|
/freebsd-current/libexec/mknetid/ |
H A D | hash.c | 39 #include "hash.h" 42 * This hash function is stolen directly from the 48 * OZ's original sdbm hash 51 hash(const void *keyarg, size_t len) function 96 * Generate a hash value for a given key (character string). 105 return(hash((void *)key, strlen(key)) & HASH_MASK); 108 /* Find an entry in the hash table (may be hanging off a linked list). */
|
/freebsd-current/crypto/openssl/tools/ |
H A D | c_rehash.in | 12 # and add symbolic links to their hash values. 21 my $crlhash = "-hash"; 187 print STDERR "Cannot compute hash on '$fname'\n"; 192 print STDERR "Cannot compute hash on '$fname'\n"; 199 # Link a certificate to its subject name hash value, each hash is of 200 # the form <hash>.<n> where n is an integer. If the hash value already exists 209 # Same as above except for a CRL. CRL links are of the form <hash>.r<n> 219 my ($hash, [all...] |
/freebsd-current/crypto/heimdal/lib/gssapi/krb5/ |
H A D | 8003.c | 179 unsigned char hash[16]; local 193 if(length != sizeof(hash)) { 202 if(hash_input_chan_bindings(input_chan_bindings, hash) != 0) { 206 if(ct_memcmp(hash, p, sizeof(hash)) != 0) { 212 p += sizeof(hash);
|
H A D | verify_mic.c | 52 u_char hash[16], *seq; local 82 EVP_DigestFinal_ex(md5, hash, NULL); 89 DES_cbc_cksum ((void *)hash, (void *)hash, sizeof(hash), 91 if (ct_memcmp (p - 8, hash, 8) != 0) { 111 EVP_CipherInit_ex(des_ctx, EVP_des_cbc(), NULL, key->keyvalue.data, hash, 0);
|
/freebsd-current/contrib/wpa/src/eap_server/ |
H A D | eap_server_pwd.c | 314 struct crypto_hash *hash = NULL; local 342 hash = eap_pwd_h_init(); 343 if (hash == NULL) 353 eap_pwd_h_update(hash, cruft, prime_len); 362 eap_pwd_h_update(hash, cruft, prime_len * 2); 366 eap_pwd_h_update(hash, cruft, order_len); 375 eap_pwd_h_update(hash, cruft, prime_len * 2); 379 eap_pwd_h_update(hash, cruft, order_len); 391 eap_pwd_h_update(hash, cruft, ptr - cruft); 394 eap_pwd_h_final(hash, con 747 struct crypto_hash *hash = NULL; local [all...] |
/freebsd-current/contrib/wpa/src/wps/ |
H A D | wps_attr_process.c | 19 u8 hash[SHA256_MAC_LEN]; local 44 hash) < 0 || 45 os_memcmp_const(hash, authenticator, WPS_AUTHENTICATOR_LEN) != 0) { 57 u8 hash[SHA256_MAC_LEN]; local 74 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, head, len, hash) < 0 || 75 os_memcmp_const(hash, key_wrap_auth, WPS_KWA_LEN) != 0) {
|
/freebsd-current/crypto/openssl/crypto/ct/ |
H A D | ct_sct_ctx.c | 205 unsigned char **hash, size_t *hash_len) 217 if (*hash != NULL && *hash_len >= SHA256_DIGEST_LENGTH) { 218 md = *hash; 225 /* Calculate key hash */ 233 if (md != *hash) { 234 OPENSSL_free(*hash); 235 *hash = md; 204 ct_public_key_hash(SCT_CTX *sctx, X509_PUBKEY *pkey, unsigned char **hash, size_t *hash_len) argument
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_stackdepot.cpp | 33 bool eq(hash_type hash, const args_type &args) const { argument 34 return hash == stack_hash; 37 static hash_type hash(const args_type &args) { function in struct:__sanitizer::StackDepotNode 46 void store(u32 id, const args_type &args, hash_type hash); 191 void StackDepotNode::store(u32 id, const args_type &args, hash_type hash) { argument 192 stack_hash = hash;
|
/freebsd-current/contrib/llvm-project/clang/lib/APINotes/ |
H A D | APINotesFormat.h | 305 auto hash = llvm::hash_value(Selector.NumArgs); local 306 hash = hash_combine(hash, Selector.Identifiers.size()); 308 hash = hash_combine(hash, static_cast<unsigned>(piece)); 311 return hash;
|
/freebsd-current/contrib/wpa/src/tls/ |
H A D | pkcs5.c | 439 u8 hash[SHA1_MAC_LEN]; local 447 if (sha1_vector(2, addr, len, hash) < 0) 450 addr[0] = hash; 453 if (sha1_vector(1, addr, len, hash) < 0) 458 os_memcpy(out, hash, out_len); 463 os_memcpy(out, hash, u); 468 /* B = copies of Ai (final hash value) */ 470 B[i] = hash[i % u]; 533 u8 hash[MD5_MAC_LEN]; local 550 if (md5_vector(2, addr, len, hash) < [all...] |
H A D | tlsv1_record.c | 44 if (suite->hash == TLS_HASH_MD5) { 47 } else if (suite->hash == TLS_HASH_SHA) { 50 } else if (suite->hash == TLS_HASH_SHA256) { 285 u8 len[2], hash[100]; local 429 "hash value"); 451 hlen = sizeof(hash); 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 459 os_memcmp_const(hash, out_data + plen, hlen) != 0 ||
|
/freebsd-current/contrib/unbound/services/cache/ |
H A D | rrset.c | 97 hashvalue_type hash, rrset_id_type id) 99 struct lruhash* table = slabhash_gettable(&r->table, hash); 111 /* we have locked the hash table, the item can still be deleted. 115 * also, with hash not changed, we are using the right slab. 118 if(key->id == id && key->entry.hash == hash) { 195 hashvalue_type h = k->entry.hash; 272 rrset->entry.hash = rrset_key_hash(&rrset->rk); 295 key.entry.hash = rrset_key_hash(&key.rk); 297 if((e = slabhash_lookup(&r->table, key.entry.hash, 96 rrset_cache_touch(struct rrset_cache* r, struct ub_packed_rrset_key* key, hashvalue_type hash, rrset_id_type id) argument [all...] |
/freebsd-current/contrib/wpa/src/eap_peer/ |
H A D | eap_pwd.c | 392 "EAP-PWD (peer): MS password hash not supported in FIPS mode"); 692 struct crypto_hash *hash = NULL; local 737 hash = eap_pwd_h_init(); 738 if (hash == NULL) 746 eap_pwd_h_update(hash, cruft, prime_len); 755 eap_pwd_h_update(hash, cruft, prime_len * 2); 759 eap_pwd_h_update(hash, cruft, order_len); 768 eap_pwd_h_update(hash, cruft, prime_len * 2); 772 eap_pwd_h_update(hash, cruft, order_len); 775 eap_pwd_h_update(hash, (u [all...] |
/freebsd-current/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_linux.c | 171 u8 hash[SHA1_MAC_LEN]; local 194 sha1_vector(1, addr, len, hash); 196 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { 202 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { 209 os_memcpy(l2->last_hash, hash, SHA1_MAC_LEN); 226 u8 hash[SHA1_MAC_LEN]; local 251 sha1_vector(1, addr, len, hash); 253 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { 258 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { 265 os_memcpy(l2->last_hash, hash, SHA1_MAC_LE [all...] |
/freebsd-current/crypto/openssl/crypto/x509/ |
H A D | by_dir.c | 35 unsigned long hash; member in struct:lookup_dir_hashes_st 136 static void by_dir_hash_free(BY_DIR_HASH *hash) argument 138 OPENSSL_free(hash); 144 if ((*a)->hash > (*b)->hash) 146 if ((*a)->hash < (*b)->hash) 279 htmp.hash = h; 361 * simple case where no CRL is present for a hash. 371 htmp.hash [all...] |
/freebsd-current/sys/cddl/dev/fbt/ |
H A D | fbt.c | 220 fbt_probe_t *hash, *hashprev, *next; local 224 for (hash = fbt_probetab[ndx], hashprev = NULL; hash != NULL; 225 hashprev = hash, hash = hash->fbtp_hashnext) { 226 if (hash == fbt) { 228 next->fbtp_hashnext = hash->fbtp_hashnext; 230 next = hash->fbtp_hashnext; 236 } else if (hash 300 fbt_probe_t *fbt = parg, *hash; local [all...] |
/freebsd-current/contrib/ntp/ntpd/ |
H A D | ntp_peer.c | 80 * Peer hash tables 82 struct peer *peer_hash[NTP_HASH_SIZE]; /* peer hash table */ 84 struct peer *assoc_hash[NTP_HASH_SIZE]; /* association ID hash table */ 221 * same peer through different interfaces in the hash table. 309 u_int hash; local 315 hash = NTP_HASH_ADDR(srcadr); 316 for (p = peer_hash[hash]; p != NULL; p = p->adr_link) { 376 u_int hash; local 379 hash = assoc & NTP_HASH_MASK; 380 for (p = assoc_hash[hash]; 485 int hash; local 807 u_int hash; local [all...] |
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_ldm.c | 77 static U32 ZSTD_ldm_getChecksum(U64 hash, U32 numBitsToDiscard) argument 80 return (hash >> (64 - 32 - numBitsToDiscard)) & 0xFFFFFFFF; 84 * Given the hash, returns the most significant numTagBits bits 89 static U32 ZSTD_ldm_getTag(U64 hash, U32 hbits, U32 numTagBits) argument 93 return hash & (((U32)1 << numTagBits) - 1); 95 return (hash >> (32 - hbits - numTagBits)) & (((U32)1 << numTagBits) - 1); 100 * Returns a pointer to the start of the bucket associated with hash. */ 102 ldmState_t* ldmState, size_t hash, ldmParams_t const ldmParams) 104 return ldmState->hashTable + (hash << ldmParams.bucketSizeLog); 108 * Insert the entry with corresponding hash int 101 ZSTD_ldm_getBucket( ldmState_t* ldmState, size_t hash, ldmParams_t const ldmParams) argument 109 ZSTD_ldm_insertEntry(ldmState_t* ldmState, size_t const hash, const ldmEntry_t entry, ldmParams_t const ldmParams) argument 138 U32 const hash = ZSTD_ldm_getSmallHash(rollingHash, hBits); local [all...] |
/freebsd-current/crypto/openssl/apps/ |
H A D | rehash.c | 81 unsigned int hash; member in struct:bucket_st 120 static int add_entry(enum Type type, unsigned int hash, const char *filename, argument 128 unsigned int ndx = (type + hash) % OSSL_NELEM(hash_table); 131 if (bp->type == type && bp->hash == hash) 134 bp = app_malloc(sizeof(*bp), "hash bucket"); 138 bp->hash = hash; 160 "%s: error: hash table overflow for %s\n", 197 unsigned int hash local [all...] |
/freebsd-current/sys/contrib/libb2/ |
H A D | blake2bp.c | 172 uint8_t hash[PARALLELISM_DEGREE][BLAKE2B_OUTBYTES]; local 187 blake2b_final( S->S[i], hash[i], BLAKE2B_OUTBYTES ); 191 blake2b_update( S->R, hash[i], BLAKE2B_OUTBYTES ); 198 uint8_t hash[PARALLELISM_DEGREE][BLAKE2B_OUTBYTES]; local 233 #pragma omp parallel shared(S,hash) 259 blake2b_final( S[id__], hash[id__], BLAKE2B_OUTBYTES ); 268 blake2b_update( FS, hash[i], BLAKE2B_OUTBYTES );
|
H A D | blake2sp.c | 168 uint8_t hash[PARALLELISM_DEGREE][BLAKE2S_OUTBYTES]; local 183 blake2s_final( S->S[i], hash[i], BLAKE2S_OUTBYTES ); 187 blake2s_update( S->R, hash[i], BLAKE2S_OUTBYTES ); 196 uint8_t hash[PARALLELISM_DEGREE][BLAKE2S_OUTBYTES]; local 231 #pragma omp parallel shared(S,hash) 258 blake2s_final( S[id__], hash[id__], BLAKE2S_OUTBYTES ); 267 blake2s_update( FS, hash[i], BLAKE2S_OUTBYTES );
|
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | argon2.c | 88 const void *salt, const size_t saltlen, void *hash, 137 /* if raw hash requested, write it */ 138 if (hash) { 139 memcpy(hash, out, hashlen); 173 void *hash, const size_t hashlen) 176 hash, hashlen, NULL, 0, Argon2_i); 194 void *hash, const size_t hashlen) 197 hash, hashlen, NULL, 0, Argon2_id); 86 argon2_hash(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, void *hash, const size_t hashlen, char *encoded, const size_t encodedlen, argon2_type type) argument 170 argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, void *hash, const size_t hashlen) argument 191 argon2id_hash_raw(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, void *hash, const size_t hashlen) argument
|