xref: /openbsd/usr.sbin/nsd/iterated_hash.h (revision d3fecca9)
1 /*
2  * iterated_hash.h -- nsec3 hash calculation.
3  *
4  * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
5  *
6  * See LICENSE for the license.
7  *
8  * With thanks to Ben Laurie.
9  */
10 #ifndef ITERATED_HASH_H
11 #define ITERATED_HASH_H
12 
13 #ifdef NSEC3
14 #include <openssl/sha.h>
15 
16 #define NSEC3_SHA1_HASH 1 /* same type code as DS hash */
17 
18 int iterated_hash(unsigned char out[SHA_DIGEST_LENGTH],
19 	const unsigned char *salt,int saltlength,
20 	const unsigned char *in,int inlength,int iterations);
21 
22 #endif /* NSEC3 */
23 #endif /* ITERATED_HASH_H */
24