blob: 9997e62598b7c7a96ad559af84547b27724dd36c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* iterated_hash.h -- nsec3 hash calculation.
*
* Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
*
* See LICENSE for the license.
*
* With thanks to Ben Laurie.
*/
#ifndef ITERATED_HASH_H
#define ITERATED_HASH_H
#ifdef NSEC3
#include <openssl/sha.h>
#define NSEC3_SHA1_HASH 1 /* same type code as DS hash */
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 */
|