Home
last modified time | relevance | path

Searched refs:hashsize (Results 1 – 18 of 18) sorted by relevance

/minix/lib/libc/citrus/
H A Dcitrus_hash.h33 #define _CITRUS_HASH_HEAD(headname, type, hashsize) \ argument
35 LIST_HEAD(, type) chh_table[hashsize]; \
37 #define _CITRUS_HASH_INIT(head, hashsize) \ argument
40 for (_ch_loop = 0; _ch_loop < hashsize; _ch_loop++) \
H A Dcitrus_hash.c47 _citrus_string_hash_func(const char *key, int hashsize) in _citrus_string_hash_func() argument
53 return (int)(_db_hash_std(NULL, &r) % (uint32_t)hashsize); in _citrus_string_hash_func()
/minix/crypto/external/bsd/netpgp/dist/src/libverify/
H A Dpgpsum.c110 calcsum(uint8_t *out, size_t size, uint8_t *mem, size_t cc, const uint8_t *hashed, size_t hashsize,… in calcsum() argument
138 digest_update(&hash, hashed, hashsize); in calcsum()
146 …(uint8_t *data, size_t size, const char *name, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_file() argument
174 ret = calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_file()
185 …t8_t *data, size_t size, void *mem, size_t cc, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_memory() argument
191 return calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_memory()
/minix/crypto/external/bsd/netpgp/dist/src/netpgpverify/
H A Dpgpsum.c111 calcsum(uint8_t *out, size_t size, uint8_t *mem, size_t cc, const uint8_t *hashed, size_t hashsize,… in calcsum() argument
139 digest_update(&hash, hashed, hashsize); in calcsum()
189 …(uint8_t *data, size_t size, const char *name, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_file() argument
217 ret = calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_file()
228 …t8_t *data, size_t size, void *mem, size_t cc, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_memory() argument
234 return calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_memory()
/minix/crypto/external/bsd/heimdal/dist/lib/otp/
H A Dotp_parse.c94 unsigned char *res = malloc(alg->hashsize); in get_altword()
99 ret = (unsigned)(res[alg->hashsize - 1]) | in get_altword()
100 ((res[alg->hashsize - 2] & 0x03) << 8); in get_altword()
H A Dotp.h64 int hashsize; member
/minix/crypto/external/bsd/netpgp/dist/src/lib/
H A Dsignature.c163 unsigned hashsize; in rsa_sign() local
173 hashsize = PGP_SHA1_HASH_SIZE + sizeof(prefix_sha1); in rsa_sign()
178 hashsize = PGP_SHA256_HASH_SIZE + sizeof(prefix_sha256); in rsa_sign()
188 if (10 + hashsize > keysize) { in rsa_sign()
196 printf("rsa_sign: PS is %d\n", keysize - hashsize - 1 - 2); in rsa_sign()
198 for (n = 2; n < keysize - hashsize - 1; ++n) { in rsa_sign()
231 unsigned hashsize; in dsa_sign() local
240 hashsize = 20; in dsa_sign()
252 dsasig = pgp_dsa_sign(hashbuf, hashsize, sdsa, dsa); in dsa_sign()
H A Dcreate.c363 unsigned hashsize; in write_seckey_body() local
371 hashsize = pgp_hash_size(key->hash_alg); in write_seckey_body()
373 size = MIN(needed, hashsize); in write_seckey_body()
374 if ((hashed = calloc(1, hashsize)) == NULL) { in write_seckey_body()
405 (void) memcpy(&sesskey[i * hashsize], in write_seckey_body()
H A Dpacket-parse.c2429 int hashsize; in parse_seckey() local
2475 hashsize = pgp_hash_size(pkt.u.seckey.hash_alg); in parse_seckey()
2476 if (hashsize == 0 || hashsize > PGP_MAX_HASH_SIZE) { in parse_seckey()
2482 for (n = 0; n * hashsize < keysize; ++n) { in parse_seckey()
2499 for (n = 0; n * hashsize < keysize; ++n) { in parse_seckey()
2538 for (n = 0; n * hashsize < keysize; ++n) { in parse_seckey()
2541 r = hashes[n].finish(&hashes[n], key + n * hashsize); in parse_seckey()
2542 if (r != hashsize) { in parse_seckey()
H A Dopenssl_crypto.c816 unsigned hashsize, in pgp_dsa_sign() argument
830 dsasig = DSA_do_sign(hashbuf, (int)hashsize, odsa); in pgp_dsa_sign()
H A Dwriter.c1354 unsigned hashsize; in pgp_push_checksum_writer() local
1363 hashsize = pgp_hash_size(sum->hash_alg); in pgp_push_checksum_writer()
1365 sum->hashed = seckey->checkhash = calloc(1, hashsize); in pgp_push_checksum_writer()
/minix/external/bsd/bind/dist/lib/dns/
H A Drbt.c89 unsigned int hashsize; member
948 rbt->hashsize = 0; in dns_rbt_create()
1014 return (rbt->hashsize); in dns_rbt_hashsize()
2248 hash = HASHVAL(node) % rbt->hashsize; in hash_add_node()
2258 rbt->hashsize = RBT_HASH_SIZE; in inithash()
2278 oldsize = rbt->hashsize; in rehash()
2281 rbt->hashsize = rbt->hashsize * 2 + 1; in rehash()
2287 rbt->hashsize = oldsize; in rehash()
2291 INSIST(rbt->hashsize > 0); in rehash()
2293 for (i = 0; i < rbt->hashsize; i++) in rehash()
[all …]
H A Ddb.c884 if (db->methods->hashsize == NULL) in dns_db_hashsize()
887 return ((db->methods->hashsize)(db)); in dns_db_hashsize()
H A Drbtdb.c216 #define hashsize hashsize64 macro
7790 hashsize(dns_db_t *db) { in hashsize() function
8088 hashsize
8134 hashsize
/minix/lib/libintl/
H A Dgettext.c379 calc_collision_step(uint32_t hashval, uint32_t hashsize) in calc_collision_step() argument
381 _DIAGASSERT(hashsize>2); in calc_collision_step()
382 return (hashval % (hashsize - 2)) + 1; in calc_collision_step()
389 calc_next_index(uint32_t curidx, uint32_t hashsize, uint32_t step) in calc_next_index() argument
391 return curidx+step - (curidx >= hashsize-step ? hashsize : 0); in calc_next_index()
/minix/external/bsd/file/dist/magic/magdir/
H A Dispell62 >16 long x hashsize %d,
/minix/crypto/external/bsd/openssl/dist/ssl/
H A Dt1_enc.c946 int hashsize = EVP_MD_size(md); in tls1_final_finish_mac() local
948 if (!hdgst || hashsize < 0 in tls1_final_finish_mac()
949 || hashsize > (int)(sizeof buf - (size_t)(q - buf))) { in tls1_final_finish_mac()
957 (i != (unsigned int)hashsize)) in tls1_final_finish_mac()
959 q += hashsize; in tls1_final_finish_mac()
/minix/external/bsd/bind/dist/lib/dns/include/dns/
H A Ddb.h199 unsigned int (*hashsize)(dns_db_t *db); member