Searched refs:hash (Results 226 - 250 of 798) sorted by relevance

1234567891011>>

/freebsd-current/sys/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c90 static int parse_manifest(char *path, unsigned char *hash, char *prefix);
135 * We expect it to be in form of "path shaX=hash".
136 * The line will be split into path, hash type and hash value.
154 /* Look for the last "shaX=hash" in line */
218 * In future another env with hash type could be introduced.
224 unsigned char hash[SHA256_DIGEST_LENGTH]; local
228 SHA256_Final(hash, &ctx);
230 return (memcmp(expected_hash, hash, SHA256_DIGEST_LENGTH));
297 panic("Manifest hash does
379 parse_manifest(char *path, unsigned char *hash, char *prefix) argument
[all...]
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dfunctional.inc106 // [unord.hash], class template hash
107 using std::hash;
/freebsd-current/contrib/bearssl/src/ec/
H A Decdsa_i31_vrfy_raw.c33 const void *hash, size_t hash_len,
121 * Truncate the hash to the modulus length (in bits) and reduce
126 br_ecdsa_i31_bits2int(t1, hash, hash_len, n[0]);
130 * Multiply the (truncated, reduced) hash value with 1/s, result in
32 br_ecdsa_i31_vrfy_raw(const br_ec_impl *impl, const void *hash, size_t hash_len, const br_ec_public_key *pk, const void *sig, size_t sig_len) argument
H A Decdsa_i15_vrfy_raw.c33 const void *hash, size_t hash_len,
122 * Truncate the hash to the modulus length (in bits) and reduce
127 br_ecdsa_i15_bits2int(t1, hash, hash_len, n[0]);
131 * Multiply the (truncated, reduced) hash value with 1/s, result in
32 br_ecdsa_i15_vrfy_raw(const br_ec_impl *impl, const void *hash, size_t hash_len, const br_ec_public_key *pk, const void *sig, size_t sig_len) argument
/freebsd-current/contrib/wpa/src/tls/
H A Dtlsv1_common.c342 size_t server_params_len, u8 *hash)
370 if (crypto_hash_finish(ctx, hash, &hlen) < 0)
381 size_t server_params_len, u8 *hash)
387 hpos = hash;
396 if (crypto_hash_finish(ctx, hash, &hlen) < 0)
406 hlen = hash + sizeof(hash) - hpos;
410 return hpos - hash;
514 wpa_printf(MSG_DEBUG, "TLSv1: Invalid Signature in CertificateVerify - did not match calculated hash");
338 tlsv12_key_x_server_params_hash(u16 tls_version, u8 hash_alg, const u8 *client_random, const u8 *server_random, const u8 *server_params, size_t server_params_len, u8 *hash) argument
378 tls_key_x_server_params_hash(u16 tls_version, const u8 *client_random, const u8 *server_random, const u8 *server_params, size_t server_params_len, u8 *hash) argument
/freebsd-current/contrib/ofed/libibnetdisc/
H A Dinternal.h122 int add_to_nodeguid_hash(ibnd_node_t * node, ibnd_node_t * hash[]);
124 int add_to_portguid_hash(ibnd_port_t * port, ibnd_port_t * hash[]);
/freebsd-current/contrib/unbound/dnscrypt/
H A Ddnscrypt.c57 /** the hash table key */
59 /** the hash table entry, data is uint8_t pointer of size crypto_box_BEFORENMBYTES which contains the shared secret. */
71 /** the hash table entry, data is uint8_t */
83 * \return the hash of the key.
104 * \param[in] hash: the hash of the key.
111 uint32_t hash,
125 k->entry.hash = hash;
129 hash,
109 dnsc_shared_secret_cache_insert(struct slabhash *cache, uint8_t key[DNSCRYPT_SHARED_SECRET_KEY_LENGTH], uint32_t hash, uint8_t nmkey[crypto_box_BEFORENMBYTES]) argument
143 dnsc_shared_secrets_lookup(struct slabhash* cache, uint8_t key[DNSCRYPT_SHARED_SECRET_KEY_LENGTH], uint32_t hash) argument
179 dnsc_nonce_cache_insert(struct slabhash *cache, const uint8_t nonce[crypto_box_HALF_NONCEBYTES], const uint8_t magic_query[DNSCRYPT_MAGIC_HEADER_LEN], const uint8_t pk[crypto_box_PUBLICKEYBYTES], uint32_t hash) argument
215 dnsc_nonces_lookup(struct slabhash* cache, const uint8_t nonce[crypto_box_HALF_NONCEBYTES], const uint8_t magic_query[DNSCRYPT_MAGIC_HEADER_LEN], const uint8_t pk[crypto_box_PUBLICKEYBYTES], uint32_t hash) argument
257 uint32_t hash; local
[all...]
/freebsd-current/crypto/openssl/crypto/ec/curve448/
H A Deddsa.c96 /* In this file because it uses the hash */
272 const uint8_t hash[64], const uint8_t *context,
275 return ossl_c448_ed448_sign(ctx, signature, privkey, pubkey, hash, 64, 1,
368 const uint8_t hash[64], const uint8_t *context,
371 return ossl_c448_ed448_verify(ctx, signature, pubkey, hash, 64, 1, context,
397 ossl_ed448ph_sign(OSSL_LIB_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64], argument
402 hash, context, context_len,
407 ossl_ed448ph_verify(OSSL_LIB_CTX *ctx, const uint8_t hash[64], argument
412 return ossl_c448_ed448_verify_prehash(ctx, signature, public_key, hash,
267 ossl_c448_ed448_sign_prehash( OSSL_LIB_CTX *ctx, uint8_t signature[EDDSA_448_SIGNATURE_BYTES], const uint8_t privkey[EDDSA_448_PRIVATE_BYTES], const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], const uint8_t hash[64], const uint8_t *context, size_t context_len, const char *propq) argument
364 ossl_c448_ed448_verify_prehash( OSSL_LIB_CTX *ctx, const uint8_t signature[EDDSA_448_SIGNATURE_BYTES], const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], const uint8_t hash[64], const uint8_t *context, uint8_t context_len, const char *propq) argument
/freebsd-current/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dexecutor_address_test.cpp114 EXPECT_EQ(std::hash<uint64_t>()(RawAddr), std::hash<ExecutorAddr>()(Addr));
/freebsd-current/release/scripts/
H A Dmake-manifest.sh44 hash="$(sha256 -q ${i})"
70 printf "${dist}\t${hash}\t${nfiles}\t${distname}\t\"${desc}\"\t${default}\n"
/freebsd-current/usr.sbin/ppp/
H A Dchap_ms.c134 NtPasswordHash(char *key, int keylen, char *hash) argument
140 MD4Final(hash, &MD4context);
144 HashNtPasswordHash(char *hash, char *hashhash) argument
149 MD4Update(&MD4context, hash, 16);
247 * Now hash the hash
403 u_char hash[16]; local
411 DesEncrypt(salt, SECRET, hash);
412 DesEncrypt(salt, SECRET + 7, hash + 8);
414 ChallengeResponse(challenge, hash, diges
[all...]
/freebsd-current/contrib/libfido2/src/
H A Dtpm.c128 uint16_t hash; /* TPM_ALG_SHA256 */
139 uint16_t hash; /* TPM_ALG_SHA256 */
190 x->hash = htobe16(x->hash);
203 x->hash = htobe16(x->hash);
240 expected.hash = TPM_ALG_SHA256;
275 expected.hash = TPM_ALG_SHA256;
/freebsd-current/libexec/revnetgroup/
H A Dhash.c39 #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).
106 return(hash((void *)key, strlen(key)) & HASH_MASK);
109 /* Find an entry in the hash table (may be hanging off a linked list). */
127 * Store an entry in the main netgroup hash table. Here's how this
130 * much larger than the table. Since our hash values are adjusted to
132 * we find ourselves with two keys that hash t
[all...]
/freebsd-current/sys/dev/random/
H A Dfortuna.c65 #include <dev/random/hash.h>
404 uint8_t hash[RANDOM_KEYSIZE]; local
427 randomdev_hash_finish(&context, hash);
429 randomdev_hash_iterate(&context, hash, RANDOM_KEYSIZE);
430 randomdev_hash_finish(&context, hash);
431 randomdev_encrypt_init(&fortuna_state.fs_key, hash);
432 explicit_bzero(hash, sizeof(hash));
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_report.cpp596 if (hash[0] == other.hash[0] && hash[1] == other.hash[1])
598 if (hash[0] == other.hash[1] && hash[1] == other.hash[0])
603 static bool FindRacyStacks(const RacyStacks &hash) { argument
605 if (hash
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRDFRegisters.h108 size_t hash() const { function in struct:llvm::rdf::RegisterRef
109 return std::hash<RegisterId>{}(Reg) ^
110 std::hash<LaneBitmask::Type>{}(Mask.getAsInteger());
236 size_t hash() const { return DenseMapInfo<BitVector>::getHashValue(Units); } function in struct:llvm::rdf::RegisterAggr
327 template <> struct hash<llvm::rdf::RegisterRef> { struct in namespace:std
329 return A.hash();
333 template <> struct hash<llvm::rdf::RegisterAggr> { struct in namespace:std
335 return A.hash();
/freebsd-current/crypto/openssh/
H A Dsshsig.c263 error_f("unsupported hash algorithm \"%.100s\"", hashalg);
358 error("Couldn't verify signature: hash algorithm mismatch");
403 char *hex, hash[SSH_DIGEST_MAX_LENGTH]; local
408 memset(hash, 0, sizeof(hash));
413 error_f("can't look up hash algorithm %s", hashalg);
416 if ((r = ssh_digest_buffer(alg, m, hash, sizeof(hash))) != 0) {
420 if ((hex = tohex(hash, ssh_digest_bytes(alg))) != NULL) {
421 debug3_f("final hash
503 char *hex, rbuf[8192], hash[SSH_DIGEST_MAX_LENGTH]; local
[all...]
/freebsd-current/contrib/unbound/util/storage/
H A Dlruhash.c2 * util/storage/lruhash.c - hashtable, hash function, LRU keeping.
124 /* move entries to new table. Notice that since hash x is mapped to
142 newbin = &newa[p->hash & newmask];
203 bin = &table->array[d->hash & table->size_mask];
220 struct lruhash_bin* bin, hashvalue_type hash, void* key, size_t* collisions)
225 if(p->hash == hash && table->compfunc(p->key, key) == 0)
242 log_err("hash array malloc: size_t too small");
248 log_err("hash grow: malloc failed");
305 lruhash_insert(struct lruhash* table, hashvalue_type hash, argument
219 bin_find_entry(struct lruhash* table, struct lruhash_bin* bin, hashvalue_type hash, void* key, size_t* collisions) argument
364 lruhash_lookup(struct lruhash* table, hashvalue_type hash, void* key, int wr) argument
386 lruhash_remove(struct lruhash* table, hashvalue_type hash, void* key) argument
618 lruhash_insert_or_retrieve(struct lruhash* table, hashvalue_type hash, struct lruhash_entry* entry, void* data, void* cb_arg) argument
[all...]
/freebsd-current/sys/dev/cxgbe/
H A Dt4_filter.c87 uint32_t hash; local
91 hash = fnv_32_buf(&ft->sip[0], 16, FNV1_32_INIT);
92 hash = fnv_32_buf(&ft->dip[0], 16, hash);
94 hash = fnv_32_buf(&ft->sip[0], 4, FNV1_32_INIT);
95 hash = fnv_32_buf(&ft->dip[0], 4, hash);
97 hash = fnv_32_buf(&ft->sport, sizeof(ft->sport), hash);
98 hash
186 insert_hf(struct adapter *sc, struct filter_entry *f, uint32_t hash) argument
203 uint32_t hash; local
262 lookup_hf(struct adapter *sc, struct t4_filter_specification *fs, uint32_t hash) argument
288 uint32_t hash; local
1626 uint32_t hash; local
[all...]
/freebsd-current/contrib/ofed/opensm/include/opensm/
H A Dst.h62 st_ptr_t(*hash) (void *); member in struct:st_hash_type
/freebsd-current/contrib/wpa/src/utils/
H A Dhttp-utils.h24 u8 *hash; member in struct:http_logo
/freebsd-current/sys/contrib/ck/src/
H A Dck_ht.c340 * Check memoized portion of hash value before
351 if (cursor->hash != h.value)
427 h.value = entry->hash;
438 h.value = entry->hash;
455 CK_HT_TYPE_STORE(&priority->hash, entry->hash);
540 snapshot->hash = CK_HT_TYPE_LOAD(&cursor->hash);
562 * Check memoized portion of hash value before
572 if (snapshot->hash !
[all...]
/freebsd-current/crypto/openssl/include/openssl/
H A Dtxt_db.h53 OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp);
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_hmac_private.h62 PBYTE hash; member in struct:__anon6
/freebsd-current/sys/net/
H A Drss_config.h36 * Supported RSS hash functions.
38 #define RSS_HASH_NAIVE 0x00000001 /* Poor but fast hash. */
45 * Instances of struct inpcbinfo declare an RSS hash type indicating what
55 * calculate which hash types to enable and which not to enable.
83 * For RSS hash methods that do a software hash on an mbuf, the packet
112 u_int rss_getbucket(u_int hash);

Completed in 445 milliseconds

1234567891011>>