| /openbmc/qemu/crypto/ |
| H A D | hash-gcrypt.c | 54 QCryptoHash *hash; in qcrypto_gcrypt_hash_new() local 57 hash = g_new(QCryptoHash, 1); in qcrypto_gcrypt_hash_new() 58 hash->alg = alg; in qcrypto_gcrypt_hash_new() 59 hash->opaque = g_new(gcry_md_hd_t, 1); in qcrypto_gcrypt_hash_new() 61 ret = gcry_md_open((gcry_md_hd_t *) hash->opaque, in qcrypto_gcrypt_hash_new() 67 g_free(hash->opaque); in qcrypto_gcrypt_hash_new() 68 g_free(hash); in qcrypto_gcrypt_hash_new() 71 return hash; in qcrypto_gcrypt_hash_new() 75 void qcrypto_gcrypt_hash_free(QCryptoHash *hash) in qcrypto_gcrypt_hash_free() argument 77 gcry_md_hd_t *ctx = hash->opaque; in qcrypto_gcrypt_hash_free() [all …]
|
| H A D | hash-glib.c | 51 QCryptoHash *hash; in qcrypto_glib_hash_new() local 53 hash = g_new(QCryptoHash, 1); in qcrypto_glib_hash_new() 54 hash->alg = alg; in qcrypto_glib_hash_new() 55 hash->opaque = g_checksum_new(qcrypto_hash_alg_map[alg]); in qcrypto_glib_hash_new() 57 return hash; in qcrypto_glib_hash_new() 61 void qcrypto_glib_hash_free(QCryptoHash *hash) in qcrypto_glib_hash_free() argument 63 if (hash->opaque) { in qcrypto_glib_hash_free() 64 g_checksum_free(hash->opaque); in qcrypto_glib_hash_free() 67 g_free(hash); in qcrypto_glib_hash_free() 72 int qcrypto_glib_hash_update(QCryptoHash *hash, in qcrypto_glib_hash_update() argument [all …]
|
| H A D | hash.c | 81 int qcrypto_hash_updatev(QCryptoHash *hash, in qcrypto_hash_updatev() argument 86 QCryptoHashDriver *drv = hash->driver; in qcrypto_hash_updatev() 88 return drv->hash_update(hash, iov, niov, errp); in qcrypto_hash_updatev() 91 int qcrypto_hash_update(QCryptoHash *hash, in qcrypto_hash_update() argument 98 return qcrypto_hash_updatev(hash, &iov, 1, errp); in qcrypto_hash_update() 103 QCryptoHash *hash = NULL; in qcrypto_hash_new() local 112 hash = qcrypto_hash_afalg_driver.hash_new(alg, NULL); in qcrypto_hash_new() 113 if (hash) { in qcrypto_hash_new() 114 hash->driver = &qcrypto_hash_afalg_driver; in qcrypto_hash_new() 115 return hash; in qcrypto_hash_new() [all …]
|
| H A D | hash-gnutls.c | 59 QCryptoHash *hash; in qcrypto_gnutls_hash_new() local 62 hash = g_new(QCryptoHash, 1); in qcrypto_gnutls_hash_new() 63 hash->alg = alg; in qcrypto_gnutls_hash_new() 64 hash->opaque = g_new(gnutls_hash_hd_t, 1); in qcrypto_gnutls_hash_new() 66 ret = gnutls_hash_init(hash->opaque, qcrypto_hash_alg_map[alg]); in qcrypto_gnutls_hash_new() 71 g_free(hash->opaque); in qcrypto_gnutls_hash_new() 72 g_free(hash); in qcrypto_gnutls_hash_new() 76 return hash; in qcrypto_gnutls_hash_new() 80 void qcrypto_gnutls_hash_free(QCryptoHash *hash) in qcrypto_gnutls_hash_free() argument 82 gnutls_hash_hd_t *ctx = hash->opaque; in qcrypto_gnutls_hash_free() [all …]
|
| H A D | hash-nettle.c | 124 QCryptoHash *hash; in qcrypto_nettle_hash_new() local 126 hash = g_new(QCryptoHash, 1); in qcrypto_nettle_hash_new() 127 hash->alg = alg; in qcrypto_nettle_hash_new() 128 hash->opaque = g_new(union qcrypto_hash_ctx, 1); in qcrypto_nettle_hash_new() 130 qcrypto_hash_alg_map[alg].init(hash->opaque); in qcrypto_nettle_hash_new() 131 return hash; in qcrypto_nettle_hash_new() 135 void qcrypto_nettle_hash_free(QCryptoHash *hash) in qcrypto_nettle_hash_free() argument 137 union qcrypto_hash_ctx *ctx = hash->opaque; in qcrypto_nettle_hash_free() 140 g_free(hash); in qcrypto_nettle_hash_free() 144 int qcrypto_nettle_hash_update(QCryptoHash *hash, in qcrypto_nettle_hash_update() argument [all …]
|
| H A D | pbkdf-gnutls.c | 26 bool qcrypto_pbkdf2_supports(QCryptoHashAlgo hash) in qcrypto_pbkdf2_supports() argument 28 switch (hash) { in qcrypto_pbkdf2_supports() 36 return qcrypto_hash_supports(hash); in qcrypto_pbkdf2_supports() 42 int qcrypto_pbkdf2(QCryptoHashAlgo hash, in qcrypto_pbkdf2() argument 69 if (hash >= G_N_ELEMENTS(hash_map) || in qcrypto_pbkdf2() 70 hash_map[hash] == GNUTLS_DIG_UNKNOWN) { in qcrypto_pbkdf2() 73 QCryptoHashAlgo_str(hash)); in qcrypto_pbkdf2() 77 ret = gnutls_pbkdf2(hash_map[hash], in qcrypto_pbkdf2()
|
| H A D | pbkdf-gcrypt.c | 26 bool qcrypto_pbkdf2_supports(QCryptoHashAlgo hash) in qcrypto_pbkdf2_supports() argument 28 switch (hash) { in qcrypto_pbkdf2_supports() 39 return qcrypto_hash_supports(hash); in qcrypto_pbkdf2_supports() 45 int qcrypto_pbkdf2(QCryptoHashAlgo hash, in qcrypto_pbkdf2() argument 73 if (hash >= G_N_ELEMENTS(hash_map) || in qcrypto_pbkdf2() 74 hash_map[hash] == GCRY_MD_NONE) { in qcrypto_pbkdf2() 77 QCryptoHashAlgo_str(hash)); in qcrypto_pbkdf2() 82 hash_map[hash], in qcrypto_pbkdf2()
|
| H A D | hash-afalg.c | 122 QCryptoHash *hash; in qcrypto_afalg_hash_new() local 131 hash = g_new(QCryptoHash, 1); in qcrypto_afalg_hash_new() 132 hash->alg = alg; in qcrypto_afalg_hash_new() 133 hash->opaque = qcrypto_afalg_hash_ctx_new(alg, errp); in qcrypto_afalg_hash_new() 134 if (!hash->opaque) { in qcrypto_afalg_hash_new() 135 free(hash); in qcrypto_afalg_hash_new() 139 return hash; in qcrypto_afalg_hash_new() 143 void qcrypto_afalg_hash_free(QCryptoHash *hash) in qcrypto_afalg_hash_free() argument 145 QCryptoAFAlgo *ctx = hash->opaque; in qcrypto_afalg_hash_free() 151 g_free(hash); in qcrypto_afalg_hash_free() [all …]
|
| /openbmc/sdbusplus/src/server/ |
| H A D | transaction.cpp | 23 details::id = std::hash<details::Transaction>{}(t); in get_id() 37 set_id(std::hash<Transaction>{}(t)); in set_id() 47 size_t hash<sdbusplus::bus_t>::operator()(sdbusplus::bus_t& b) const in operator ()() 50 return std::hash<std::string>{}(name); in operator ()() 53 size_t hash<sdbusplus::message_t>::operator()(sdbusplus::message_t& m) const in operator ()() 62 return std::hash<uint64_t>{}(m.get_reply_cookie()); in operator ()() 66 return std::hash<uint64_t>{}(m.get_cookie()); in operator ()() 70 return std::hash<uint64_t>{}( in operator ()() 77 size_t hash<sdbusplus::server::transaction::Transaction>::operator()( in operator ()() 80 auto hash1 = std::hash<sdbusplus::bus_t>{}(t.bus); in operator ()() [all …]
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-crypto-pbkdf.c | 34 QCryptoHashAlgo hash; member 55 .hash = QCRYPTO_HASH_ALGO_SHA1, 69 .hash = QCRYPTO_HASH_ALGO_SHA1, 83 .hash = QCRYPTO_HASH_ALGO_SHA1, 97 .hash = QCRYPTO_HASH_ALGO_SHA1, 111 .hash = QCRYPTO_HASH_ALGO_SHA1, 126 .hash = QCRYPTO_HASH_ALGO_SHA1, 141 .hash = QCRYPTO_HASH_ALGO_SHA1, 157 .hash = QCRYPTO_HASH_ALGO_SHA1, 169 .hash = QCRYPTO_HASH_ALGO_SHA1, [all …]
|
| H A D | test-qht.c | 29 uint32_t hash; in insert() local 34 hash = i; in insert() 36 inserted = qht_insert(&ht, &arr[i], hash, NULL); in insert() 38 inserted = qht_insert(&ht, &arr[i], hash, &existing); in insert() 49 uint32_t hash; in do_rm() local 51 hash = arr[i]; in do_rm() 53 g_assert_true(qht_remove(&ht, &arr[i], hash)); in do_rm() 55 g_assert_false(qht_remove(&ht, &arr[i], hash)); in do_rm() 78 uint32_t hash; in check() local 82 hash = i; in check() [all …]
|
| H A D | test-crypto-afsplit.c | 29 QCryptoHashAlgo hash; member 39 .hash = QCRYPTO_HASH_ALGO_SHA256, 71 .hash = QCRYPTO_HASH_ALGO_SHA256, 80 .hash = QCRYPTO_HASH_ALGO_SHA1, 91 .hash = QCRYPTO_HASH_ALGO_SHA256, 139 qcrypto_afsplit_encode(data->hash, in test_afsplit() 144 qcrypto_afsplit_decode(data->hash, in test_afsplit() 161 qcrypto_afsplit_decode(data->hash, in test_afsplit() 188 if (!qcrypto_hash_supports(test_data[i].hash)) { in main()
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/postfix/files/ |
| H A D | main.cf | 14 virtual_mailbox_maps = hash:/etc/postfix/virtual 15 virtual_alias_maps = hash:/etc/postfix/virtual_alias 17 alias_maps = hash:/etc/aliases 73 # check_sender_access hash:/etc/postfix/access_domains, 85 # check_client_access hash:/etc/postfix/maps/access_client, 86 # check_client_access hash:/etc/postfix/maps/exceptions_client, 87 # check_helo_access hash:/etc/postfix/maps/access_helo, 88 # check_helo_access hash:/etc/postfix/maps/verify_helo, 89 # check_sender_access hash:/etc/postfix/maps/access_sender, 90 # check_sender_access hash:/etc/postfix/maps/verify_sender, [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/freediameter/files/ |
| H A D | Replace-murmurhash-algorithm-with-Robert-Jenkin-s-ha.patch | 1 Replace murmurhash algorithm with Robert Jenkin's hash algorithm 6 processor, so replace it with Robert Jenkin's hash which has worked 29 + * Robert Jenkin's hash function. 30 + * http://burtleburtle.net/bob/hash/evahash.html 48 - uint32_t hash = len; 59 - /* Mix 4 bytes at a time into the hash */ 62 - _HASH_MIX(hash, k, m); 70 - case 3: hash ^= data[2] << 16; 71 - case 2: hash ^= data[1] << 8; 72 - case 1: hash ^= data[0]; [all …]
|
| /openbmc/u-boot/fs/ubifs/ |
| H A D | key.h | 36 static inline uint32_t key_mask_hash(uint32_t hash) in key_mask_hash() argument 38 hash &= UBIFS_S_KEY_HASH_MASK; in key_mask_hash() 39 if (unlikely(hash <= 2)) in key_mask_hash() 40 hash += 3; in key_mask_hash() 41 return hash; in key_mask_hash() 144 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init() local 146 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init() 148 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init() 161 uint32_t hash) in dent_key_init_hash() argument 163 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash() [all …]
|
| /openbmc/u-boot/scripts/basic/ |
| H A D | fixdep.c | 145 unsigned int hash; member 155 unsigned int i, hash = 2166136261U; in strhash() local 158 hash = (hash ^ str[i]) * 0x01000193; in strhash() 159 return hash; in strhash() 165 static int is_defined_config(const char *name, int len, unsigned int hash) in is_defined_config() argument 169 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in is_defined_config() 170 if (aux->hash == hash && aux->len == len && in is_defined_config() 180 static void define_config(const char *name, int len, unsigned int hash) in define_config() argument 190 aux->hash = hash; in define_config() 191 aux->next = hashtab[hash % HASHSZ]; in define_config() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/autofs/autofs/ |
| H A D | 0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch | 4 Subject: [PATCH] hash.h: include <sys/reg.h> instead of <bits/reg.h> 9 ../include/hash.h:27:2: error: #error Wordsize not 32 or 64 17 include/hash.h | 2 +- 20 diff --git a/include/hash.h b/include/hash.h 22 --- a/include/hash.h 23 +++ b/include/hash.h
|
| /openbmc/phosphor-host-ipmid/oem/nvidia/ |
| H A D | biosconfigcommands.cpp | 42 std::array<uint8_t, biosPasswordMaxHashSize> hash) in ipmiSetBiosPassword() argument 65 EVP_sha256(), SHA256_DIGEST_LENGTH, hash.data()); in ipmiSetBiosPassword() 67 json[keyAdminPwdHash] = hash; in ipmiSetBiosPassword() 72 json[keyAdminPwdHash] = hash; in ipmiSetBiosPassword() 77 json[keyAdminPwdHash] = hash; in ipmiSetBiosPassword() 115 std::array<uint8_t, biosPasswordMaxHashSize> hash = {0}; in ipmiGetBiosPassword() local 126 return ipmi::responseSuccess(action, salt, hash); in ipmiGetBiosPassword() 145 return ipmi::responseSuccess(action, salt, hash); in ipmiGetBiosPassword() 149 hash = json[keyAdminPwdHash]; in ipmiGetBiosPassword() 169 if (hash == nullHash) in ipmiGetBiosPassword() [all …]
|
| /openbmc/openbmc/meta-security/recipes-ids/suricata/files/ |
| H A D | CVE-2024-37151.patch | 8 is mean to tell the hash cleanup code to recyle the tracker and to let 13 1. there are sufficient frag trackers to make sure the hash table is 18 4. during the lookup, the frag for X2 hashes to a hash row that holds 20 5. as the trackers in hash row are evaluated, it finds the tracker for 27 trackers in the hash row. 35 src/defrag-hash.c | 2 +- 38 diff --git a/src/defrag-hash.c b/src/defrag-hash.c 40 --- a/src/defrag-hash.c 41 +++ b/src/defrag-hash.c 49 * hash list -- this rewards active trackers */
|
| /openbmc/qemu/ui/ |
| H A D | vnc-palette.c | 33 uint32_t color, unsigned int hash) in palette_find() argument 37 QLIST_FOREACH(entry, &palette->table[hash], next) { in palette_find() 78 unsigned int hash; in palette_put() local 82 hash = palette_hash(color, palette->bpp) % VNC_PALETTE_HASH_SIZE; in palette_put() 83 entry = palette_find(palette, color, hash); in palette_put() 92 QLIST_INSERT_HEAD(&palette->table[hash], entry, next); in palette_put() 101 unsigned int hash; in palette_idx() local 103 hash = palette_hash(color, palette->bpp) % VNC_PALETTE_HASH_SIZE; in palette_idx() 104 entry = palette_find(palette, color, hash); in palette_idx()
|
| /openbmc/u-boot/doc/uImage.FIT/ |
| H A D | multi.its | 21 hash-1 { 24 hash-2 { 38 hash-1 { 52 hash-1 { 66 hash-1 { 80 hash-1 { 91 hash-1 { 103 hash-1 {
|
| /openbmc/openbmc/meta-security/recipes-ids/samhain/files/ |
| H A D | 0001-Hash-fix-for-MIPS64-and-AARCH64.patch | 6 Samhain uses the addresses of local variables in generating hash 8 For MIPS64 when a 64-bit address is passed in the resulting hash 11 32-bits of the address and use that in generating hash values. 30 /* Calculate the hash table entry for a chunk */ 33 +#define hash(p) ((((unsigned long) p) & 0x7fffffff) >> 7) 35 +#define hash(p) ((((unsigned long) p - (unsigned long) startheap) & 0x7fffffff) >> 7) 39 #define hash(p) (((unsigned long) p) >> 7) 41 #define hash(p) (((unsigned long) p - (unsigned long) startheap) >> 7)
|
| /openbmc/u-boot/fs/jffs2/ |
| H A D | jffs2_nand_private.h | 118 static inline unsigned long end_name_hash(unsigned long hash) in end_name_hash() argument 120 return (unsigned int) hash; in end_name_hash() 127 unsigned long hash = init_name_hash(); in full_name_hash() local 129 hash = partial_name_hash(*name++, hash); in full_name_hash() 130 return end_name_hash(hash); in full_name_hash()
|
| /openbmc/qemu/util/ |
| H A D | path.c | 14 static GHashTable *hash; variable 31 hash = g_hash_table_new(g_str_hash, g_str_equal); in init_paths() 49 if (g_hash_table_lookup_extended(hash, name, &key, &value)) { in path() 58 g_hash_table_insert(hash, save, full); in path() 63 g_hash_table_insert(hash, save, NULL); in path()
|
| /openbmc/u-boot/lib/rsa/ |
| H A D | rsa-verify.c | 62 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument 75 if (memcmp((uint8_t *)msg + pad_len, hash, msg_len - pad_len)) { in padding_pkcs_15_verify() 158 uint8_t *hash, int hash_len, in compute_hash_prime() argument 167 region[1].data = hash; in compute_hash_prime() 184 const uint8_t *hash, int hash_len) in padding_pss_verify() argument 255 (uint8_t *)hash, hash_len, in padding_pss_verify() 289 const uint32_t sig_len, const uint8_t *hash, in rsa_verify_key() argument 300 if (!prop || !sig || !hash || !checksum) in rsa_verify_key() 336 ret = padding->verify(info, buf, key_len, hash, hash_len); in rsa_verify_key() 361 const void *hash, uint8_t *sig, in rsa_verify_with_keynode() argument [all …]
|