Searched refs:salt (Results 1 - 25 of 25) sorted by relevance

/bind-9.11.3/lib/dns/rdata/generic/
H A Dnsec3param_51.h27 unsigned char *salt; member in struct:dns_rdata_nsec3param
H A Dnsec3_50.h29 unsigned char *salt; member in struct:dns_rdata_nsec3
H A Dnsec3param_51.c210 RETERR(mem_tobuffer(target, nsec3param->salt,
235 nsec3param->salt = mem_maybedup(mctx, region.base,
237 if (nsec3param->salt == NULL)
255 if (nsec3param->salt != NULL)
256 isc_mem_free(nsec3param->mctx, nsec3param->salt);
H A Dnsec3_50.c74 /* salt */
263 RETERR(mem_tobuffer(target, nsec3->salt, nsec3->salt_length));
293 nsec3->salt = mem_maybedup(mctx, region.base, nsec3->salt_length);
294 if (nsec3->salt == NULL)
315 isc_mem_free(mctx, nsec3->salt);
329 if (nsec3->salt != NULL)
330 isc_mem_free(nsec3->mctx, nsec3->salt);
/bind-9.11.3/lib/isc/
H A Diterated_hash.c21 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/isc/include/isc/
H A Diterated_hash.h33 const unsigned char *salt, int saltlength,
/bind-9.11.3/lib/dns/tests/
H A Dnsec3_test.c68 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 Dprivate_test.c43 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 Ddbversion_test.c567 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 Dnsec3hash.c55 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/bin/tests/system/inline/ns7/
H A Dnamed.conf16 * parameters (number of iterations and salt value), zone data and named
/bind-9.11.3/lib/dns/include/dns/
H A Dnsec3.h26 * hash = 1, flags =1, iterations = 2, salt length = 1, salt = 255 (max)
31 * hash = 1, flags = 1, iterations = 2, salt length = 1, salt = 255 (max)
46 const unsigned char *salt, size_t salt_length,
77 const unsigned char *salt, size_t saltlength);
238 * Convert the salt of given NSEC3PARAM RDATA into hex-encoded, NULL-terminated
H A Ddb.h156 unsigned char *salt,
1486 unsigned char *salt, size_t *salt_length);
H A Dzone.h2359 unsigned char *salt, isc_boolean_t replace);
/bind-9.11.3/lib/dns/
H A Dnsec3.c54 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 Ddb.c993 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 Drbtdb.c637 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 Dzone.c661 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...]
H A Dvalidator.c343 nsec3.iterations, nsec3.salt,
/bind-9.11.3/bin/dnssec/
H A Ddnssec-signzone.c750 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...]
H A Ddnssectool.c64 /* unsigned char salt[0]; */
773 memmove(cp, nsec3->salt, nsec3->salt_length);
813 memcmp(nsec3.salt, nsec3param->salt,
854 memcmp(nsec3.salt, nsec3param->salt,
887 memcmp(nsec3param.salt, nsec3->salt,
972 nsec3param.salt, nsec3param.salt_length);
1035 nsec3param.salt, nsec3para
[all...]
/bind-9.11.3/bin/tests/system/dnssec/
H A Dtests.sh2343 echo "I:check that 'rndc signing -nsec3param' works with salt ($n)"
2348 salt=`$DIG $DIGOPTS +nodnssec +short nsec3param inline.example. @10.53.0.3 | awk '{print $4}'`
2349 if [ "$salt" = "FFFF" ]; then
2355 [ "$salt" = "FFFF" ] || ret=1
2360 echo "I:check that 'rndc signing -nsec3param' works without salt ($n)"
2365 salt=`$DIG $DIGOPTS +nodnssec +short nsec3param inline.example. @10.53.0.3 | awk '{print $4}'`
2366 if [ "$salt" = "-" ]; then
2372 [ "$salt" = "-" ] || ret=1
2377 echo "I:check that 'rndc signing -nsec3param' works with 'auto' as salt ($n)"
2382 salt
[all...]
/bind-9.11.3/bin/tests/system/dyndb/driver/
H A Ddb.c445 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/named/
H A Dserver.c12942 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
H A Dquery.c6066 unsigned char salt[256]; local
6081 salt_length = sizeof(salt);
6083 &iterations, salt, &salt_length);
6103 iterations, salt, salt_length);

Completed in 172 milliseconds