Lines Matching defs:digest

40  * Start HMAC-SHA1 process.  Initialize an sha1 context and digest the key.
86 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) {
103 memmove(digest, newdigest, len);
109 * compare to the supplied digest.
112 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) {
117 return (isc_safe_memcmp(digest, newdigest, len));
121 * Start HMAC-SHA224 process. Initialize an sha224 context and digest the key.
166 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) {
182 memmove(digest, newdigest, len);
188 * compare to the supplied digest.
191 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) {
196 return (isc_safe_memcmp(digest, newdigest, len));
200 * Start HMAC-SHA256 process. Initialize an sha256 context and digest the key.
245 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) {
261 memmove(digest, newdigest, len);
267 * compare to the supplied digest.
270 isc_hmacsha256_verify(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) {
275 return (isc_safe_memcmp(digest, newdigest, len));
279 * Start HMAC-SHA384 process. Initialize an sha384 context and digest the key.
324 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) {
340 memmove(digest, newdigest, len);
346 * compare to the supplied digest.
349 isc_hmacsha384_verify(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) {
354 return (isc_safe_memcmp(digest, newdigest, len));
358 * Start HMAC-SHA512 process. Initialize an sha512 context and digest the key.
403 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) {
419 memmove(digest, newdigest, len);
425 * compare to the supplied digest.
428 isc_hmacsha512_verify(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) {
433 return (isc_safe_memcmp(digest, newdigest, len));