/bind-9.11.3/lib/dns/rdata/generic/ |
H A D | ds_43.h | 23 unsigned char *digest; member in struct:dns_rdata_ds
|
H A D | sshfp_44.h | 23 unsigned char *digest; member in struct:dns_rdata_sshfp
|
/bind-9.11.3/lib/dns/ |
H A D | ds.c | 43 unsigned char digest[ISC_SHA384_DIGESTLENGTH]; local 75 isc_sha1_final(&sha1, digest); 94 RETERR(isc_gost_final(&gost, digest)); 105 isc_sha384_final(digest, &sha384); 116 isc_sha256_final(digest, &sha256); 146 ds.digest = digest;
|
H A D | opensslecdsa_link.c | 149 unsigned char digest[EVP_MAX_MD_SIZE]; local 167 if (!EVP_DigestFinal(evp_md_ctx, digest, &dgstlen)) 172 ecdsasig = ECDSA_do_sign(digest, dgstlen, eckey); 203 unsigned char digest[EVP_MAX_MD_SIZE]; local 220 if (!EVP_DigestFinal_ex(evp_md_ctx, digest, &dgstlen)) 234 status = ECDSA_do_verify(digest, dgstlen, ecdsasig, eckey);
|
H A D | opensslgost_link.c | 88 isc_gost_final(isc_gost_t *ctx, unsigned char *digest) { argument 93 INSIST(digest != NULL); 95 ret = EVP_DigestFinal(ctx->ctx, digest, NULL);
|
H A D | pkcs11ecdsa_link.c | 167 CK_BYTE digest[ISC_SHA384_DIGESTLENGTH]; local 190 (pk11_ctx->session, digest, &dgstlen), 245 digest, dgstlen, 289 CK_BYTE digest[ISC_SHA384_DIGESTLENGTH]; local 307 (pk11_ctx->session, digest, &dgstlen), 349 digest, dgstlen,
|
H A D | pkcs11gost_link.c | 111 isc_gost_final(isc_gost_t *ctx, unsigned char *digest) { argument 117 (ctx->session, (CK_BYTE_PTR) digest, &len),
|
H A D | openssldsa_link.c | 219 unsigned char digest[ISC_SHA1_DIGESTLENGTH]; local 265 if (!EVP_DigestFinal_ex(evp_md_ctx, digest, &siglen)) { 270 dsasig = DSA_do_sign(digest, ISC_SHA1_DIGESTLENGTH, dsa); 276 isc_sha1_final(sha1ctx, digest); 278 dsasig = DSA_do_sign(digest, ISC_SHA1_DIGESTLENGTH, dsa); 320 unsigned char digest[ISC_SHA1_DIGESTLENGTH]; local 325 /* Only use EVP for the digest */ 326 if (!EVP_DigestFinal_ex(evp_md_ctx, digest, &siglen)) { 331 isc_sha1_final(sha1ctx, digest); 367 status = DSA_do_verify(digest, ISC_SHA1_DIGESTLENGT [all...] |
H A D | opensslrsa_link.c | 559 unsigned char digest[PREFIXLEN + ISC_SHA512_DIGESTLENGTH]; local 603 isc_md5_final(md5ctx, digest); 614 isc_sha1_final(sha1ctx, digest); 623 isc_sha256_final(digest, sha256ctx); 637 isc_sha512_final(digest, sha512ctx); 659 status = RSA_sign(type, digest, digestlen, r.base, 667 INSIST(prefixlen + digestlen <= sizeof(digest)); 669 memmove(digest + prefixlen, digest, digestlen); 670 memmove(digest, prefi 710 unsigned char digest[ISC_SHA512_DIGESTLENGTH]; local [all...] |
H A D | pkcs11rsa_link.c | 733 CK_BYTE digest[MAX_DER_SIZE + ISC_SHA512_DIGESTLENGTH]; local 815 INSIST(dgstlen <= sizeof(digest)); 816 memmove(digest, der, derlen); 819 (pk11_ctx->session, digest + derlen, &hashlen), 934 digest, dgstlen, 943 digest, dgstlen, 986 CK_BYTE digest[MAX_DER_SIZE + ISC_SHA512_DIGESTLENGTH]; local 1039 INSIST(dgstlen <= sizeof(digest)); 1040 memmove(digest, der, derlen); 1043 (pk11_ctx->session, digest [all...] |
H A D | hmac_link.c | 104 unsigned char *digest; local 108 digest = isc_buffer_used(sig); 109 isc_hmacmd5_sign(hmacmd5ctx, digest); 412 unsigned char *digest; local 416 digest = isc_buffer_used(sig); 417 isc_hmacsha1_sign(hmacsha1ctx, digest, ISC_SHA1_DIGESTLENGTH); 703 unsigned char *digest; local 707 digest = isc_buffer_used(sig); 708 isc_hmacsha224_sign(hmacsha224ctx, digest, ISC_SHA224_DIGESTLENGTH); 990 unsigned char *digest; local 1277 unsigned char *digest; local 1564 unsigned char *digest; local [all...] |
H A D | name.c | 2289 dns_name_digest(dns_name_t *name, dns_digestfunc_t digest, void *arg) { argument 2297 * Send 'name' in DNSSEC canonical form to 'digest'. 2301 REQUIRE(digest != NULL); 2317 return ((digest)(arg, &r));
|
/bind-9.11.3/bin/tests/ |
H A D | hash_test.c | 55 unsigned char digest[ISC_SHA512_DIGESTLENGTH]; local 67 isc_sha1_final(&sha1, digest); 68 print_digest(s, "sha1", digest, ISC_SHA1_DIGESTLENGTH/4); 74 isc_sha1_final(&sha1, digest); 75 print_digest(s, "sha1", digest, ISC_SHA1_DIGESTLENGTH/4); 81 isc_sha224_final(digest, &sha224); 82 print_digest(s, "sha224", digest, ISC_SHA224_DIGESTLENGTH/4); 88 isc_sha224_final(digest, &sha224); 89 print_digest(s, "sha224", digest, ISC_SHA224_DIGESTLENGTH/4); 96 isc_md5_final(&md5, digest); [all...] |
/bind-9.11.3/bin/tests/pkcs11/ |
H A D | pkcs11-md5sum.c | 76 char digest[16]; variable 208 rv = pkcs_C_DigestFinal(hSession, (CK_BYTE_PTR) digest, &len); 220 printf("%02x", digest[i] & 0xff);
|
H A D | pkcs11-hmacmd5.c | 81 char digest[16]; variable 298 rv = pkcs_C_SignFinal(hSession, (CK_BYTE_PTR) digest, &len); 310 printf("%02x", digest[i] & 0xff);
|
/bind-9.11.3/lib/isc/ |
H A D | hmacmd5.c | 68 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) { argument 69 RUNTIME_CHECK(HMAC_Final(ctx->ctx, digest, NULL) == 1); 149 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) { argument 154 (ctx->session, (CK_BYTE_PTR) digest, &len)); 221 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) { argument 229 (ctx->session, (CK_BYTE_PTR) digest, 240 (ctx->session, (CK_BYTE_PTR) digest, len)); 243 (CK_BYTE_PTR) digest, 256 * Start HMAC-MD5 process. Initialize an md5 context and digest the key. 302 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) { argument 326 isc_hmacmd5_verify(isc_hmacmd5_t *ctx, unsigned char *digest) argument 331 isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len) argument [all...] |
H A D | md5.c | 12 * This code implements the MD5 message-digest algorithm. 22 * To compute the message digest of a chunk of bytes, declare an 25 * will fill a supplied 16-byte array with the digest. 79 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) { argument 80 RUNTIME_CHECK(EVP_DigestFinal(ctx->ctx, digest, NULL) == 1); 120 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) { argument 125 (ctx->session, (CK_BYTE_PTR) digest, &len)); 309 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) { argument 335 memmove(digest, ctx->buf, 16); 352 unsigned char digest[ISC_MD5_DIGESTLENGT local [all...] |
H A D | hmacsha.c | 66 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) { argument 74 memmove(digest, newdigest, len); 104 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) { argument 112 memmove(digest, newdigest, len); 142 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) { argument 150 memmove(digest, newdigest, len); 180 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) { argument 188 memmove(digest, newdigest, len); 218 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) { argument 226 memmove(digest, newdiges 319 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) argument 391 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) argument 489 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument 561 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument 659 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument 731 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument 829 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument 901 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument 999 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument 1071 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument 1152 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) argument 1219 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument 1285 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument 1351 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument 1417 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument 1443 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) argument 1456 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument 1469 isc_hmacsha256_verify(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument 1482 isc_hmacsha384_verify(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument 1495 isc_hmacsha512_verify(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument [all...] |
H A D | sha1.c | 82 isc_sha1_final(isc_sha1_t *context, unsigned char *digest) { argument 83 INSIST(digest != 0); 87 RUNTIME_CHECK(EVP_DigestFinal(context->ctx, digest, NULL) == 1); 127 isc_sha1_final(isc_sha1_t *ctx, unsigned char *digest) { argument 132 (ctx->session, (CK_BYTE_PTR) digest, &len)); 374 * Add padding and return the message digest. 381 isc_sha1_final(isc_sha1_t *context, unsigned char *digest) { argument 385 INSIST(digest != 0); 401 if (digest) { 403 digest[ 424 unsigned char digest[ISC_SHA1_DIGESTLENGTH]; local [all...] |
H A D | sha2.c | 106 isc_sha224_final(isc_uint8_t digest[], isc_sha224_t *context) { argument 111 /* If no digest buffer is passed, we don't bother doing this: */ 112 if (digest != (isc_uint8_t*)0) 114 digest, NULL) == 1); 154 isc_sha256_final(isc_uint8_t digest[], isc_sha256_t *context) { argument 159 /* If no digest buffer is passed, we don't bother doing this: */ 160 if (digest != (isc_uint8_t*)0) 162 digest, NULL) == 1); 200 void isc_sha512_final(isc_uint8_t digest[], isc_sha512_t *context) { argument 205 /* If no digest buffe 248 isc_sha384_final(isc_uint8_t digest[], isc_sha384_t *context) argument 307 isc_sha224_final(isc_uint8_t digest[], isc_sha224_t *context) argument 373 isc_sha256_final(isc_uint8_t digest[], isc_sha256_t *context) argument 439 isc_sha512_final(isc_uint8_t digest[], isc_sha512_t *context) argument 505 isc_sha384_final(isc_uint8_t digest[], isc_sha384_t *context) argument 885 isc_sha224_final(isc_uint8_t digest[], isc_sha224_t *context) argument 1148 isc_sha256_final(isc_uint8_t digest[], isc_sha256_t *context) argument 1511 isc_sha512_final(isc_uint8_t digest[], isc_sha512_t *context) argument 1564 isc_sha384_final(isc_uint8_t digest[], isc_sha384_t *context) argument 1602 isc_uint8_t digest[ISC_SHA224_DIGESTLENGTH], *d = digest; local 1631 isc_sha224_data(const isc_uint8_t *data, size_t len, char digest[ISC_SHA224_DIGESTSTRINGLENGTH]) argument 1643 isc_uint8_t digest[ISC_SHA256_DIGESTLENGTH], *d = digest; local 1672 isc_sha256_data(const isc_uint8_t* data, size_t len, char digest[ISC_SHA256_DIGESTSTRINGLENGTH]) argument 1684 isc_uint8_t digest[ISC_SHA512_DIGESTLENGTH], *d = digest; local 1713 isc_sha512_data(const isc_uint8_t *data, size_t len, char digest[ISC_SHA512_DIGESTSTRINGLENGTH]) argument 1725 isc_uint8_t digest[ISC_SHA384_DIGESTLENGTH], *d = digest; local 1754 isc_sha384_data(const isc_uint8_t *data, size_t len, char digest[ISC_SHA384_DIGESTSTRINGLENGTH]) argument [all...] |
H A D | entropy.c | 540 unsigned char digest[ISC_SHA1_DIGESTLENGTH]; local 617 isc_sha1_final(&hash, digest); 622 entropypool_adddata(ent, digest, ISC_SHA1_DIGESTLENGTH, 0); 625 buf[i] = digest[i] ^ digest[i + RND_ENTROPY_THRESHOLD]; 638 isc_safe_memwipe(digest, sizeof(digest)); 651 isc_safe_memwipe(digest, sizeof(digest));
|
/bind-9.11.3/lib/dns/tests/ |
H A D | gost_test.c | 48 unsigned char digest[ISC_GOST_DIGESTLENGTH]; variable 128 TEST_INPUT("message digest"), 205 result = isc_gost_final(&gost, digest); 207 tohexstr(digest, ISC_GOST_DIGESTLENGTH, str, sizeof(str));
|
/bind-9.11.3/lib/isc/tests/ |
H A D | hash_test.c | 35 unsigned char digest[ISC_SHA512_DIGESTLENGTH]; variable 203 isc_sha1_final(&sha1, digest); 204 tohexstr(digest, ISC_SHA1_DIGESTLENGTH, str, sizeof(str)); 330 isc_sha224_final(digest, &sha224); 335 * isc_sha224_final(&sha224, digest); 337 tohexstr(digest, ISC_SHA224_DIGESTLENGTH, str, sizeof(str)); 462 isc_sha256_final(digest, &sha256); 467 * isc_sha224_final(&sha224, digest); 469 tohexstr(digest, ISC_SHA256_DIGESTLENGTH, str, sizeof(str)); 608 isc_sha384_final(digest, [all...] |
/bind-9.11.3/lib/isccc/ |
H A D | cc.c | 262 unsigned char digest[ISC_SHA512_DIGESTLENGTH]; local 265 source.rstart = digest; 273 isc_hmacmd5_sign(&ctx.hmd5, digest); 274 source.rend = digest + ISC_MD5_DIGESTLENGTH; 282 isc_hmacsha1_sign(&ctx.hsha, digest, 284 source.rend = digest + ISC_SHA1_DIGESTLENGTH; 291 isc_hmacsha224_sign(&ctx.h224, digest, 293 source.rend = digest + ISC_SHA224_DIGESTLENGTH; 300 isc_hmacsha256_sign(&ctx.h256, digest, 302 source.rend = digest 430 unsigned char digest[ISC_SHA512_DIGESTLENGTH]; local [all...] |
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/ |
H A D | dns.c | 387 hmac_sign(perf_dnstsigkey_t *tsigkey, hmac_ctx_t *ctx, unsigned char *digest, argument 392 isc_hmacmd5_sign(&ctx->hmacmd5, digest); 395 isc_hmacsha1_sign(&ctx->hmacsha1, digest, digestlen); 398 isc_hmacsha224_sign(&ctx->hmacsha224, digest, digestlen); 401 isc_hmacsha256_sign(&ctx->hmacsha256, digest, digestlen); 404 isc_hmacsha384_sign(&ctx->hmacsha384, digest, digestlen); 407 isc_hmacsha512_sign(&ctx->hmacsha512, digest, digestlen); 426 unsigned char digest[ISC_SHA256_DIGESTLENGTH]; local 460 hmac_sign(tsigkey, &hmac, digest, tsigkey->digestlen); 472 isc_buffer_putuint16(packet, tsigkey->digestlen); /* digest le [all...] |