Searched defs:digest (Results 1 - 25 of 31) sorted by relevance

12

/bind-9.11.3/lib/dns/rdata/generic/
H A Dds_43.h23 unsigned char *digest; member in struct:dns_rdata_ds
H A Dsshfp_44.h23 unsigned char *digest; member in struct:dns_rdata_sshfp
/bind-9.11.3/lib/dns/
H A Dds.c43 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 Dopensslecdsa_link.c149 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 Dopensslgost_link.c88 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 Dpkcs11ecdsa_link.c167 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 Dpkcs11gost_link.c111 isc_gost_final(isc_gost_t *ctx, unsigned char *digest) { argument
117 (ctx->session, (CK_BYTE_PTR) digest, &len),
H A Dopenssldsa_link.c219 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 Dopensslrsa_link.c559 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 Dpkcs11rsa_link.c733 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 Dhmac_link.c104 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 Dname.c2289 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 Dhash_test.c55 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 Dpkcs11-md5sum.c76 char digest[16]; variable
208 rv = pkcs_C_DigestFinal(hSession, (CK_BYTE_PTR) digest, &len);
220 printf("%02x", digest[i] & 0xff);
H A Dpkcs11-hmacmd5.c81 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 Dhmacmd5.c68 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 Dmd5.c12 * 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 Dhmacsha.c66 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 Dsha1.c82 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 Dsha2.c106 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 Dentropy.c540 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 Dgost_test.c48 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 Dhash_test.c35 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 Dcc.c262 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 Ddns.c387 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...]

Completed in 64 milliseconds

12