/bind-9.6-ESV-R11/bin/tests/ |
H A D | ndc.conf-include | 20 key "another-key" {
|
H A D | hash_test.c | 62 unsigned char key[20]; local 106 memset(key, 0x0b, 16); 107 isc_hmacmd5_init(&hmacmd5, key, 16); 114 strcpy((char *)key, "Jefe"); 115 isc_hmacmd5_init(&hmacmd5, key, 4); 126 memset(key, 0xaa, 16); 127 isc_hmacmd5_init(&hmacmd5, key, 16); 137 memset(key, 0x0b, 20); 138 isc_hmacsha1_init(&hmacsha1, key, 20); 145 strcpy((char *)key, "Jef [all...] |
H A D | sym_test.c | 33 undefine_action(char *key, unsigned int type, isc_symvalue_t value, void *arg) argument 38 isc_mem_free(mctx, key); 44 char s[1000], *cp, *key; local 90 key = cp; 94 result = isc_symtab_lookup(st, key, 0, &value); 96 printf("lookup('%s'): %s", key, 106 key = isc_mem_strdup(mctx, key); 108 result = isc_symtab_define(st, key, 1, value, 112 key, c [all...] |
/bind-9.6-ESV-R11/lib/dns/ |
H A D | key.c | 60 dst_key_name(const dst_key_t *key) { argument 61 REQUIRE(VALID_KEY(key)); 62 return (key->key_name); 66 dst_key_size(const dst_key_t *key) { argument 67 REQUIRE(VALID_KEY(key)); 68 return (key->key_size); 72 dst_key_proto(const dst_key_t *key) { argument 73 REQUIRE(VALID_KEY(key)); 74 return (key->key_proto); 78 dst_key_alg(const dst_key_t *key) { argument 84 dst_key_flags(const dst_key_t *key) argument 90 dst_key_id(const dst_key_t *key) argument 96 dst_key_class(const dst_key_t *key) argument 102 dst_key_iszonekey(const dst_key_t *key) argument 116 dst_key_isnullkey(const dst_key_t *key) argument 130 dst_key_setbits(dst_key_t *key, isc_uint16_t bits) argument 142 dst_key_getbits(const dst_key_t *key) argument [all...] |
H A D | dst_api.c | 91 static isc_result_t write_public_key(const dst_key_t *key, int type, 99 static isc_result_t computeid(dst_key_t *key); 243 dst_context_create(dst_key_t *key, isc_mem_t *mctx, dst_context_t **dctxp) { argument 244 return (dst_context_create2(key, mctx, 249 dst_context_create2(dst_key_t *key, isc_mem_t *mctx, argument 255 REQUIRE(VALID_KEY(key)); 259 if (key->func->createctx == NULL) 261 if (key->keydata.generic == NULL) 267 dctx->key = key; 305 dst_key_t *key; local 364 dst_key_tofile(const dst_key_t *key, int type, const char *directory) argument 396 dst_key_t *key; local 439 dst_key_t *pubkey = NULL, *key = NULL; local 526 dst_key_todns(const dst_key_t *key, isc_buffer_t *target) argument 562 dst_key_t *key = NULL; local 602 dst_key_t *key = NULL; local 623 dst_key_tobuffer(const dst_key_t *key, isc_buffer_t *target) argument 637 dst_key_privatefrombuffer(dst_key_t *key, isc_buffer_t *buffer) argument 659 dst_key_getgssctx(const dst_key_t *key) argument 670 dst_key_t *key; local 691 dst_key_t *key; local 734 dst_key_t *key; local 826 dst_key_t *key; local 856 dst_key_isprivate(const dst_key_t *key) argument 863 dst_key_buildfilename(const dst_key_t *key, int type, const char *directory, isc_buffer_t *out) argument 875 dst_key_sigsize(const dst_key_t *key, unsigned int *n) argument 922 dst_key_secretsize(const dst_key_t *key, unsigned int *n) argument 947 dst_key_t *key; local 1114 issymmetric(const dst_key_t *key) argument 1141 write_public_key(const dst_key_t *key, int type, const char *directory) argument 1265 computeid(dst_key_t *key) argument 1286 dst_key_t *key; local [all...] |
H A D | zonekey.c | 37 dns_rdata_dnskey_t key; local 42 result = dns_rdata_tostruct(keyrdata, &key, NULL); 46 if ((key.flags & DNS_KEYTYPE_NOAUTH) != 0) 48 if ((key.flags & DNS_KEYFLAG_OWNERMASK) != DNS_KEYOWNER_ZONE) 50 if (key.protocol != DNS_KEYPROTO_DNSSEC && 51 key.protocol != DNS_KEYPROTO_ANY)
|
H A D | hmac_link.c | 58 static isc_result_t hmacmd5_fromdns(dst_key_t *key, isc_buffer_t *data); 61 unsigned char key[HMAC_LEN]; member in struct:dst_hmacmd5_key 65 getkeybits(dst_key_t *key, struct dst_private_element *element) { argument 70 key->key_bits = (element->data[0] << 8) + element->data[1]; 76 hmacmd5_createctx(dst_key_t *key, dst_context_t *dctx) { argument 78 dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5; 83 isc_hmacmd5_init(hmacmd5ctx, hkey->key, HMAC_LEN); 146 if (isc_safe_memcmp(hkey1->key, hkey2->key, HMAC_LEN)) 153 hmacmd5_generate(dst_key_t *key, in argument 180 hmacmd5_isprivate(const dst_key_t *key) argument 186 hmacmd5_destroy(dst_key_t *key) argument 194 hmacmd5_todns(const dst_key_t *key, isc_buffer_t *data) argument 211 hmacmd5_fromdns(dst_key_t *key, isc_buffer_t *data) argument 244 hmacmd5_tofile(const dst_key_t *key, const char *directory) argument 271 hmacmd5_parse(dst_key_t *key, isc_lex_t *lexer) argument 340 unsigned char key[ISC_SHA1_DIGESTLENGTH]; member in struct:dst_hmacsha1_key 344 hmacsha1_createctx(dst_key_t *key, dst_context_t *dctx) argument 421 hmacsha1_generate(dst_key_t *key, int pseudorandom_ok) argument 448 hmacsha1_isprivate(const dst_key_t *key) argument 454 hmacsha1_destroy(dst_key_t *key) argument 462 hmacsha1_todns(const dst_key_t *key, isc_buffer_t *data) argument 479 hmacsha1_fromdns(dst_key_t *key, isc_buffer_t *data) argument 512 hmacsha1_tofile(const dst_key_t *key, const char *directory) argument 539 hmacsha1_parse(dst_key_t *key, isc_lex_t *lexer) argument 609 unsigned char key[ISC_SHA224_DIGESTLENGTH]; member in struct:dst_hmacsha224_key 613 hmacsha224_createctx(dst_key_t *key, dst_context_t *dctx) argument 690 hmacsha224_generate(dst_key_t *key, int pseudorandom_ok) argument 717 hmacsha224_isprivate(const dst_key_t *key) argument 723 hmacsha224_destroy(dst_key_t *key) argument 731 hmacsha224_todns(const dst_key_t *key, isc_buffer_t *data) argument 748 hmacsha224_fromdns(dst_key_t *key, isc_buffer_t *data) argument 781 hmacsha224_tofile(const dst_key_t *key, const char *directory) argument 808 hmacsha224_parse(dst_key_t *key, isc_lex_t *lexer) argument 878 unsigned char key[ISC_SHA256_DIGESTLENGTH]; member in struct:dst_hmacsha256_key 882 hmacsha256_createctx(dst_key_t *key, dst_context_t *dctx) argument 959 hmacsha256_generate(dst_key_t *key, int pseudorandom_ok) argument 986 hmacsha256_isprivate(const dst_key_t *key) argument 992 hmacsha256_destroy(dst_key_t *key) argument 1000 hmacsha256_todns(const dst_key_t *key, isc_buffer_t *data) argument 1017 hmacsha256_fromdns(dst_key_t *key, isc_buffer_t *data) argument 1050 hmacsha256_tofile(const dst_key_t *key, const char *directory) argument 1077 hmacsha256_parse(dst_key_t *key, isc_lex_t *lexer) argument 1147 unsigned char key[ISC_SHA384_DIGESTLENGTH]; member in struct:dst_hmacsha384_key 1151 hmacsha384_createctx(dst_key_t *key, dst_context_t *dctx) argument 1228 hmacsha384_generate(dst_key_t *key, int pseudorandom_ok) argument 1255 hmacsha384_isprivate(const dst_key_t *key) argument 1261 hmacsha384_destroy(dst_key_t *key) argument 1269 hmacsha384_todns(const dst_key_t *key, isc_buffer_t *data) argument 1286 hmacsha384_fromdns(dst_key_t *key, isc_buffer_t *data) argument 1319 hmacsha384_tofile(const dst_key_t *key, const char *directory) argument 1346 hmacsha384_parse(dst_key_t *key, isc_lex_t *lexer) argument 1416 unsigned char key[ISC_SHA512_DIGESTLENGTH]; member in struct:dst_hmacsha512_key 1420 hmacsha512_createctx(dst_key_t *key, dst_context_t *dctx) argument 1497 hmacsha512_generate(dst_key_t *key, int pseudorandom_ok) argument 1524 hmacsha512_isprivate(const dst_key_t *key) argument 1530 hmacsha512_destroy(dst_key_t *key) argument 1538 hmacsha512_todns(const dst_key_t *key, isc_buffer_t *data) argument 1555 hmacsha512_fromdns(dst_key_t *key, isc_buffer_t *data) argument 1588 hmacsha512_tofile(const dst_key_t *key, const char *directory) argument 1615 hmacsha512_parse(dst_key_t *key, isc_lex_t *lexer) argument [all...] |
H A D | opensslrsa_link.c | 113 static isc_result_t opensslrsa_todns(const dst_key_t *key, isc_buffer_t *data); 116 opensslrsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument 122 UNUSED(key); 123 REQUIRE(dctx->key->key_alg == DST_ALG_RSAMD5 || 124 dctx->key->key_alg == DST_ALG_RSASHA1 || 125 dctx->key->key_alg == DST_ALG_NSEC3RSASHA1 || 126 dctx->key->key_alg == DST_ALG_RSASHA256 || 127 dctx->key->key_alg == DST_ALG_RSASHA512); 134 switch (dctx->key->key_alg) { 164 switch (dctx->key 367 dst_key_t *key = dctx->key; local 506 dst_key_t *key = dctx->key; local 720 opensslrsa_generate(dst_key_t *key, int exp) argument 816 opensslrsa_isprivate(const dst_key_t *key) argument 831 opensslrsa_destroy(dst_key_t *key) argument 845 opensslrsa_todns(const dst_key_t *key, isc_buffer_t *data) argument 907 opensslrsa_fromdns(dst_key_t *key, isc_buffer_t *data) argument 976 opensslrsa_tofile(const dst_key_t *key, const char *directory) argument 1095 opensslrsa_parse(dst_key_t *key, isc_lex_t *lexer) argument 1247 opensslrsa_fromlabel(dst_key_t *key, const char *engine, const char *label, const char *pin) argument [all...] |
/bind-9.6-ESV-R11/bin/tests/system/common/ |
H A D | rndc.key | 19 key rndc_key {
|
/bind-9.6-ESV-R11/lib/isccc/include/isccc/ |
H A D | alist.h | 59 isccc_alist_assq(isccc_sexpr_t *alist, const char *key); 62 isccc_alist_delete(isccc_sexpr_t *alist, const char *key); 65 isccc_alist_define(isccc_sexpr_t *alist, const char *key, isccc_sexpr_t *value); 68 isccc_alist_definestring(isccc_sexpr_t *alist, const char *key, const char *str); 71 isccc_alist_definebinary(isccc_sexpr_t *alist, const char *key, isccc_region_t *r); 74 isccc_alist_lookup(isccc_sexpr_t *alist, const char *key); 77 isccc_alist_lookupstring(isccc_sexpr_t *alist, const char *key, char **strp); 80 isccc_alist_lookupbinary(isccc_sexpr_t *alist, const char *key, isccc_region_t **r);
|
H A D | symtab.h | 49 * It's possible that a client will attempt to define a <key, type, 50 * value> tuple when a tuple with the given key and type already 57 * with the old <key, type, value> tuple. 62 * A lookup of a key using type 0 will return the most-recently 63 * defined symbol with that key. An undefine of a key using type 0 64 * will undefine the most-recently defined symbol with that key. 65 * Trying to define a key with type 0 is illegal. 67 * The symbol table library does not make a copy the key field, so the 68 * caller must ensure that any key i [all...] |
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/include/idn/ |
H A D | strhash.h | 90 * private copy of the key string. 97 idn__strhash_put(idn__strhash_t hash, const char *key, void *value); 100 * Find an item with the specified key. 107 idn__strhash_get(idn__strhash_t hash, const char *key, void **valuep); 110 * Check if an item with the specified key exists. 117 idn__strhash_exists(idn__strhash_t hash, const char *key);
|
/bind-9.6-ESV-R11/lib/isc/win32/ |
H A D | thread.c | 71 isc_thread_key_getspecific(isc_thread_key_t key) { argument 72 return(TlsGetValue(key)); 76 isc_thread_key_setspecific(isc_thread_key_t key, void *value) { argument 77 return (TlsSetValue(key, value) ? 0 : GetLastError()); 81 isc_thread_key_create(isc_thread_key_t *key, void (*func)(void *)) { argument 82 *key = TlsAlloc(); 84 return ((*key != -1) ? 0 : GetLastError()); 88 isc_thread_key_delete(isc_thread_key_t key) { argument 89 return (TlsFree(key) ? 0 : GetLastError());
|
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/ |
H A D | strhash.c | 73 char *key; member in struct:strhash_entry 83 static unsigned long hash_value(const char *key); 84 static strhash_entry_t *find_entry(strhash_entry_t *entry, const char *key, 86 static strhash_entry_t *new_entry(const char *key, void *value); 141 idn__strhash_put(idn__strhash_t hash, const char *key, void *value) { argument 145 assert(hash != NULL && key != NULL); 147 h = hash_value(key); 150 if ((entry = find_entry(hash->bins[h_index], key, h)) != NULL) { 155 if ((entry = new_entry(key, value)) == NULL) { 177 idn__strhash_get(idn__strhash_t hash, const char *key, voi argument 193 idn__strhash_exists(idn__strhash_t hash, const char *key) argument 203 hash_value(const char *key) argument 215 find_entry(strhash_entry_t *entry, const char *key, unsigned long hash) argument 227 new_entry(const char *key, void *value) argument [all...] |
/bind-9.6-ESV-R11/lib/isc/ |
H A D | hmacsha.c | 40 * Start HMAC-SHA1 process. Initialize an sha1 context and digest the key. 43 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, argument 49 memset(ctx->key, 0, sizeof(ctx->key)); 50 if (len > sizeof(ctx->key)) { 53 isc_sha1_update(&sha1ctx, key, len); 54 isc_sha1_final(&sha1ctx, ctx->key); 56 memmove(ctx->key, key, len); 61 ipad[i] ^= ctx->key[ 124 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, unsigned int len) argument 203 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, unsigned int len) argument 282 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, unsigned int len) argument 361 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, unsigned int len) argument [all...] |
H A D | hmacmd5.c | 40 * Start HMAC-MD5 process. Initialize an md5 context and digest the key. 43 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key, argument 49 memset(ctx->key, 0, sizeof(ctx->key)); 50 if (len > sizeof(ctx->key)) { 53 isc_md5_update(&md5ctx, key, len); 54 isc_md5_final(&md5ctx, ctx->key); 56 memmove(ctx->key, key, len); 61 ipad[i] ^= ctx->key[ [all...] |
/bind-9.6-ESV-R11/lib/isc/tests/ |
H A D | symtab_test.c | 33 undefine(char *key, unsigned int type, isc_symvalue_t value, void *arg) { argument 37 isc_mem_free(mctx, key); 72 char str[16], *key; local 75 key = isc_mem_strdup(mctx, str); 76 ATF_REQUIRE(key != NULL); 79 result = isc_symtab_define(st, key, 1, value, policy); 82 undefine(key, 1, value, NULL); 89 char str[16], *key; local 92 key = isc_mem_strdup(mctx, str); 93 ATF_REQUIRE(key ! [all...] |
/bind-9.6-ESV-R11/lib/isc/include/isc/ |
H A D | symtab.h | 30 * Keys are C strings, and key comparisons are case-insensitive. A type may 35 * It's possible that a client will attempt to define a <key, type, value> 36 * tuple when a tuple with the given key and type already exists in the table. 42 * with the old <key, type, value> tuple. 47 * A lookup of a key using type 0 will return the most-recently defined 48 * symbol with that key. An undefine of a key using type 0 will undefine the 49 * most-recently defined symbol with that key. Trying to define a key with 52 * The symbol table library does not make a copy the key fiel [all...] |
H A D | hmacsha.h | 40 unsigned char key[ISC_HMACSHA1_KEYLENGTH]; member in struct:__anon160 45 unsigned char key[ISC_HMACSHA224_KEYLENGTH]; member in struct:__anon161 50 unsigned char key[ISC_HMACSHA256_KEYLENGTH]; member in struct:__anon162 55 unsigned char key[ISC_HMACSHA384_KEYLENGTH]; member in struct:__anon163 60 unsigned char key[ISC_HMACSHA512_KEYLENGTH]; member in struct:__anon164 66 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, 84 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, 102 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, 120 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, 138 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, [all...] |
/bind-9.6-ESV-R11/bin/tests/system/tsig/ns1/ |
H A D | named.conf | 33 key "md5" { 38 key "sha1" { 43 key "sha224" { 48 key "sha256" { 53 key "sha384" { 58 key "sha512" { 63 key "md5-trunc" { 68 key "sha1-trunc" { 73 key "sha224-trunc" { 78 key "sha25 [all...] |
/bind-9.6-ESV-R11/lib/dns/include/dst/ |
H A D | dst.h | 42 * functions provided to retrieve key attributes. If an application needs 72 /*% A buffer of this size is large enough to hold any key */ 77 * of any key 82 #define DST_TYPE_KEY 0x1000000 /* KEY key */ 124 dst_context_create(dst_key_t *key, isc_mem_t *mctx, dst_context_t **dctxp); 127 dst_context_create2(dst_key_t *key, isc_mem_t *mctx, 134 * \li "key" is a valid key. 177 * Computes a signature using the data and key stored in the context. 195 * Verifies the signature using the data and key store [all...] |
/bind-9.6-ESV-R11/lib/dns/rdata/generic/ |
H A D | key_25.c | 75 /* Ensure there's at least enough data to compute a key ID for MD5 */ 117 /* key */ 135 RETERR(str_totext(" ; key id = ", target)); 160 * RSAMD5 computes key ID differently from other 203 dns_rdata_key_t *key = source; local 207 REQUIRE(key->common.rdtype == type); 208 REQUIRE(key->common.rdclass == rdclass); 214 RETERR(uint16_tobuffer(key->flags, target)); 217 RETERR(uint8_tobuffer(key->protocol, target)); 220 RETERR(uint8_tobuffer(key 228 dns_rdata_key_t *key = target; local 271 dns_rdata_key_t *key = (dns_rdata_key_t *) source; local [all...] |
/bind-9.6-ESV-R11/lib/isccc/ |
H A D | symtab.c | 50 char * key; member in struct:elt 108 (symtab->undefine_action)(elt->key, elt->type, elt->value, 139 hash(const char *key, isc_boolean_t case_sensitive) { argument 152 for (s = key; *s != '\0'; s++) { 160 for (s = key; *s != '\0'; s++) { 181 strcmp(e->key, (k)) == 0) \ 189 strcasecmp(e->key, (k)) == 0) \ 195 isccc_symtab_lookup(isccc_symtab_t *symtab, const char *key, unsigned int type, argument 202 REQUIRE(key != NULL); 204 FIND(symtab, key, typ 216 isccc_symtab_define(isccc_symtab_t *symtab, char *key, unsigned int type, isccc_symvalue_t value, isccc_symexists_t exists_policy) argument 257 isccc_symtab_undefine(isccc_symtab_t *symtab, const char *key, unsigned int type) argument [all...] |
/bind-9.6-ESV-R11/bin/tests/dst/ |
H A D | dst_test.c | 43 use(dst_key_t *key, isc_mem_t *mctx) { argument 61 ret = dst_context_create(key, mctx, &ctx); 63 printf("contextcreate(%d) returned: %s\n", dst_key_alg(key), 69 printf("adddata(%d) returned: %s\n", dst_key_alg(key), 75 printf("sign(%d) returned: %s\n", dst_key_alg(key), 81 ret = dst_context_create(key, mctx, &ctx); 83 printf("contextcreate(%d) returned: %s\n", dst_key_alg(key), 89 printf("adddata(%d) returned: %s\n", dst_key_alg(key), 95 printf("verify(%d) returned: %s\n", dst_key_alg(key), 101 dns(dst_key_t *key, isc_mem_ argument 139 dst_key_t *key = NULL; local 218 dst_key_t *key = NULL; local [all...] |
/bind-9.6-ESV-R11/lib/dns/include/dns/ |
H A D | dnssec.h | 42 dst_key_t **key); 44 * Creates a DST key from a DNS record. Basically a wrapper around 51 *\li 'key' is not NULL 52 *\li '*key' is NULL 62 dns_dnssec_sign(dns_name_t *name, dns_rdataset_t *set, dst_key_t *key, 72 *\li 'key' is a valid key 84 *\li #DNS_R_KEYUNAUTHORIZED - the key cannot sign this data (either 85 * it is not a zone key or its flags prevent 91 dns_dnssec_verify(dns_name_t *name, dns_rdataset_t *set, dst_key_t *key, [all...] |