summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/iterated_hash.h
blob: 2a6bef399d0378677194d18b77089c21923177bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * iterated_hash.h -- nsec3 hash calculation.
 *
 * Copyright (c) 2001-2011, NLnet Labs. All rights reserved.
 *
 * See LICENSE for the license.
 *
 * With thanks to Ben Laurie.
 */
#ifndef ITERATED_HASH_H
#define ITERATED_HASH_H

#include "config.h"
#ifdef NSEC3
#include <openssl/sha.h>

int iterated_hash(unsigned char out[SHA_DIGEST_LENGTH],
	const unsigned char *salt,int saltlength,
	const unsigned char *in,int inlength,int iterations);

#endif /* NSEC3 */
#endif /* ITERATED_HASH_H */