Lines Matching refs:digest
40 * Start HMAC-MD5 process. Initialize an md5 context and digest the key.
86 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) {
90 isc_md5_final(&ctx->md5ctx, digest);
98 isc_md5_update(&ctx->md5ctx, digest, ISC_MD5_DIGESTLENGTH);
99 isc_md5_final(&ctx->md5ctx, digest);
105 * compare to the supplied digest.
108 isc_hmacmd5_verify(isc_hmacmd5_t *ctx, unsigned char *digest) {
109 return (isc_hmacmd5_verify2(ctx, digest, ISC_MD5_DIGESTLENGTH));
113 isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len) {
118 return (isc_safe_memcmp(digest, newdigest, len));