Lines Matching refs:newdigest
59 unsigned char newdigest[ISC_SHA1_DIGESTLENGTH];
63 HMAC_Final(ctx, newdigest, NULL);
65 memcpy(digest, newdigest, len);
66 memset(newdigest, 0, sizeof(newdigest));
90 unsigned char newdigest[ISC_SHA224_DIGESTLENGTH];
94 HMAC_Final(ctx, newdigest, NULL);
96 memcpy(digest, newdigest, len);
97 memset(newdigest, 0, sizeof(newdigest));
121 unsigned char newdigest[ISC_SHA256_DIGESTLENGTH];
125 HMAC_Final(ctx, newdigest, NULL);
127 memcpy(digest, newdigest, len);
128 memset(newdigest, 0, sizeof(newdigest));
152 unsigned char newdigest[ISC_SHA384_DIGESTLENGTH];
156 HMAC_Final(ctx, newdigest, NULL);
158 memcpy(digest, newdigest, len);
159 memset(newdigest, 0, sizeof(newdigest));
183 unsigned char newdigest[ISC_SHA512_DIGESTLENGTH];
187 HMAC_Final(ctx, newdigest, NULL);
189 memcpy(digest, newdigest, len);
190 memset(newdigest, 0, sizeof(newdigest));
247 unsigned char newdigest[ISC_SHA1_DIGESTLENGTH];
251 isc_sha1_final(&ctx->sha1ctx, newdigest);
259 isc_sha1_update(&ctx->sha1ctx, newdigest, ISC_SHA1_DIGESTLENGTH);
260 isc_sha1_final(&ctx->sha1ctx, newdigest);
262 memcpy(digest, newdigest, len);
263 memset(newdigest, 0, sizeof(newdigest));
314 unsigned char newdigest[ISC_SHA224_DIGESTLENGTH];
318 isc_sha224_final(newdigest, &ctx->sha224ctx);
326 isc_sha224_update(&ctx->sha224ctx, newdigest, ISC_SHA224_DIGESTLENGTH);
327 isc_sha224_final(newdigest, &ctx->sha224ctx);
328 memcpy(digest, newdigest, len);
329 memset(newdigest, 0, sizeof(newdigest));
380 unsigned char newdigest[ISC_SHA256_DIGESTLENGTH];
384 isc_sha256_final(newdigest, &ctx->sha256ctx);
392 isc_sha256_update(&ctx->sha256ctx, newdigest, ISC_SHA256_DIGESTLENGTH);
393 isc_sha256_final(newdigest, &ctx->sha256ctx);
394 memcpy(digest, newdigest, len);
395 memset(newdigest, 0, sizeof(newdigest));
446 unsigned char newdigest[ISC_SHA384_DIGESTLENGTH];
450 isc_sha384_final(newdigest, &ctx->sha384ctx);
458 isc_sha384_update(&ctx->sha384ctx, newdigest, ISC_SHA384_DIGESTLENGTH);
459 isc_sha384_final(newdigest, &ctx->sha384ctx);
460 memcpy(digest, newdigest, len);
461 memset(newdigest, 0, sizeof(newdigest));
512 unsigned char newdigest[ISC_SHA512_DIGESTLENGTH];
516 isc_sha512_final(newdigest, &ctx->sha512ctx);
524 isc_sha512_update(&ctx->sha512ctx, newdigest, ISC_SHA512_DIGESTLENGTH);
525 isc_sha512_final(newdigest, &ctx->sha512ctx);
526 memcpy(digest, newdigest, len);
527 memset(newdigest, 0, sizeof(newdigest));
537 unsigned char newdigest[ISC_SHA1_DIGESTLENGTH];
540 isc_hmacsha1_sign(ctx, newdigest, ISC_SHA1_DIGESTLENGTH);
541 return (ISC_TF(isc_tsmemcmp(digest, newdigest, len) == 0));
550 unsigned char newdigest[ISC_SHA224_DIGESTLENGTH];
553 isc_hmacsha224_sign(ctx, newdigest, ISC_SHA224_DIGESTLENGTH);
554 return (ISC_TF(isc_tsmemcmp(digest, newdigest, len) == 0));
563 unsigned char newdigest[ISC_SHA256_DIGESTLENGTH];
566 isc_hmacsha256_sign(ctx, newdigest, ISC_SHA256_DIGESTLENGTH);
567 return (ISC_TF(isc_tsmemcmp(digest, newdigest, len) == 0));
576 unsigned char newdigest[ISC_SHA384_DIGESTLENGTH];
579 isc_hmacsha384_sign(ctx, newdigest, ISC_SHA384_DIGESTLENGTH);
580 return (ISC_TF(isc_tsmemcmp(digest, newdigest, len) == 0));
589 unsigned char newdigest[ISC_SHA512_DIGESTLENGTH];
592 isc_hmacsha512_sign(ctx, newdigest, ISC_SHA512_DIGESTLENGTH);
593 return (ISC_TF(isc_tsmemcmp(digest, newdigest, len) == 0));