/bind-9.11.3/lib/dns/rdata/generic/ |
H A D | nsec3param_51.h | 27 unsigned char *salt; member in struct:dns_rdata_nsec3param
|
H A D | nsec3_50.h | 29 unsigned char *salt; member in struct:dns_rdata_nsec3
|
/bind-9.11.3/lib/isc/ |
H A D | iterated_hash.c | 21 const unsigned char *salt, int saltlength, 33 isc_sha1_update(&ctx, salt, saltlength); 19 isc_iterated_hash(unsigned char out[ISC_SHA1_DIGESTLENGTH], unsigned int hashalg, int iterations, const unsigned char *salt, int saltlength, const unsigned char *in, int inlength) argument
|
/bind-9.11.3/lib/dns/tests/ |
H A D | nsec3_test.c | 68 char salt[64]; local 85 result = dns_nsec3param_salttotext(&nsec3param, salt, sizeof(salt)); 89 ATF_CHECK_EQ_MSG(strcmp(salt, params->expected_salt), 0, 90 "\"%s\": expected salt \"%s\", got \"%s\"", 91 params->nsec3param_text, params->expected_salt, salt); local 94 * Ensure available space in the buffer is checked before the salt is 99 ATF_REQUIRE(length < sizeof(salt) - 1); /* prevent buffer overwrite */ 102 result = dns_nsec3param_salttotext(&nsec3param, salt, length - 1); 108 result = dns_nsec3param_salttotext(&nsec3param, salt, lengt [all...] |
H A D | private_test.c | 43 unsigned long salt; member in struct:__anon202 77 isc_uint32_t salt; local 81 /* for simplicity, we're using a maximum salt length of 4 */ 82 salt = htonl(testcase->salt); 83 sp = (unsigned char *) &salt; 93 params.salt = sp;
|
H A D | dbversion_test.c | 567 unsigned char salt[DNS_NSEC3_SALTSIZE]; local 568 size_t salt_length = sizeof(salt); 577 &flags, &iterations, salt,
|
/bind-9.11.3/bin/tools/ |
H A D | nsec3hash.c | 55 fprintf(stderr, "Usage: %s salt algorithm iterations domain\n", 68 unsigned char salt[DNS_NSEC3_SALTSIZE]; local 80 salt[0] = 0; 82 isc_buffer_init(&buffer, salt, sizeof(salt)); 84 check_result(result, "isc_hex_decodestring(salt)"); 87 fatal("salt too long"); 104 length = isc_iterated_hash(hash, hash_alg, iterations, salt, 112 fprintf(stdout, "%.*s (salt=%s, hash=%u, iterations=%u)\n",
|
/bind-9.11.3/lib/dns/ |
H A D | nsec3.c | 54 const unsigned char *salt, size_t salt_length, 94 memmove(p, salt, salt_length); 220 const unsigned char *salt, size_t saltlength) 241 salt, (int)saltlength, 368 !memcmp(nsec3->salt, nsec3param->salt, nsec3->salt_length)) 524 unsigned char *salt; local 548 salt = nsec3param->salt; 562 salt, salt_lengt 51 dns_nsec3_buildrdata(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node, unsigned int hashalg, unsigned int flags, unsigned int iterations, const unsigned char *salt, size_t salt_length, const unsigned char *nexthash, size_t hash_length, unsigned char *buffer, dns_rdata_t *rdata) argument 216 dns_nsec3_hashname(dns_fixedname_t *result, unsigned char rethash[NSEC3_MAX_HASH_LENGTH], size_t *hash_length, dns_name_t *name, dns_name_t *origin, dns_hash_t hashalg, unsigned int iterations, const unsigned char *salt, size_t saltlength) argument 1332 unsigned char *salt; local [all...] |
H A D | db.c | 993 unsigned char *salt, size_t *salt_length) 1001 salt, salt_length)); 990 dns_db_getnsec3parameters(dns_db_t *db, dns_dbversion_t *version, dns_hash_t *hash, isc_uint8_t *flags, isc_uint16_t *iterations, unsigned char *salt, size_t *salt_length) argument
|
H A D | rbtdb.c | 637 unsigned char salt[DNS_NSEC3_SALTSIZE]; member in struct:rbtdb_version 1514 memmove(version->salt, rbtdb->current_version->salt, 1521 memset(version->salt, 0, sizeof(version->salt)); 2625 memmove(version->salt, nsec3param.salt, 3827 memcmp(nsec3.salt, search->rbtversion->salt, 8092 unsigned char *salt, size_ 8090 getnsec3parameters(dns_db_t *db, dns_dbversion_t *version, dns_hash_t *hash, isc_uint8_t *flags, isc_uint16_t *iterations, unsigned char *salt, size_t *salt_length) argument [all...] |
H A D | zone.c | 661 unsigned char salt[255]; member in struct:dns_nsec3chain 677 * 'salt' is buffer space and is referenced via 'nsec3param.salt'. 3375 memmove(nsec3chain->salt, nsec3param->salt, nsec3param->salt_length); 3376 nsec3chain->nsec3param.salt = nsec3chain->salt; 3435 && !memcmp(current->nsec3param.salt, nsec3param->salt, 7079 memcmp(nsec3param.salt, chai 17251 char salt[255*2+1]; local 18915 dns_zone_setnsec3param(dns_zone_t *zone, isc_uint8_t hash, isc_uint8_t flags, isc_uint16_t iter, isc_uint8_t saltlen, unsigned char *salt, isc_boolean_t replace) argument [all...] |
/bind-9.11.3/bin/tests/system/dyndb/driver/ |
H A D | db.c | 445 unsigned char *salt, size_t *salt_length) 453 salt, salt_length)); 442 getnsec3parameters(dns_db_t *db, dns_dbversion_t *version, dns_hash_t *hash, isc_uint8_t *flags, isc_uint16_t *iterations, unsigned char *salt, size_t *salt_length) argument
|
/bind-9.11.3/bin/dnssec/ |
H A D | dnssec-signzone.c | 750 const unsigned char *salt, size_t salt_len, 759 salt, (int)salt_len, 841 const unsigned char *salt, size_t salt_len) 868 hashlist_add_dns_name(l, wild, hashalg, iterations, salt, salt_len, 1853 addnsec3param(const unsigned char *salt, size_t salt_len, argument 1875 DE_CONST(salt, nsec3param.salt); 1911 const unsigned char *salt, size_t salt_len, 1935 salt, salt_len); 1942 salt, salt_le 748 hashlist_add_dns_name(hashlist_t *l, dns_name_t *name, unsigned int hashalg, unsigned int iterations, const unsigned char *salt, size_t salt_len, isc_boolean_t speculative) argument 839 addnowildcardhash(hashlist_t *l, dns_name_t *name, unsigned int hashalg, unsigned int iterations, const unsigned char *salt, size_t salt_len) argument 1910 addnsec3(dns_name_t *name, dns_dbnode_t *node, const unsigned char *salt, size_t salt_len, unsigned int iterations, hashlist_t *hashlist, dns_ttl_t ttl) argument 1975 nsec3clean(dns_name_t *name, dns_dbnode_t *node, unsigned int hashalg, unsigned int iterations, const unsigned char *salt, size_t salt_len, hashlist_t *hashlist) argument 2196 nsec3ify(unsigned int hashalg, dns_iterations_t iterations, const unsigned char *salt, size_t salt_len, hashlist_t *hashlist) argument [all...] |
/bind-9.11.3/bin/named/ |
H A D | query.c | 6066 unsigned char salt[256]; local 6081 salt_length = sizeof(salt); 6083 &iterations, salt, &salt_length); 6103 iterations, salt, salt_length);
|
H A D | server.c | 12942 generate_salt(unsigned char *salt, size_t saltlen) { argument 12960 memmove(salt, rnd.rnd, saltlen); 12972 "generated salt: %s", text); 12994 unsigned char salt[255]; local 13059 /* Auto-generate a random salt. 13066 CHECK(generate_salt(salt, saltlen)); 13070 isc_buffer_init(&buf, salt, sizeof(salt)); 13096 (isc_uint8_t)saltlen, salt, local
|