iterated_hash.h revision 1.1.1.2
1/* 2 * iterated_hash.h -- nsec3 hash calculation. 3 * 4 * Copyright (c) 2001-2011, 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#include <config.h> 14#ifdef NSEC3 15#include <openssl/sha.h> 16 17int iterated_hash(unsigned char out[SHA_DIGEST_LENGTH], 18 const unsigned char *salt,int saltlength, 19 const unsigned char *in,int inlength,int iterations); 20 21#endif /* NSEC3 */ 22#endif /* ITERATED_HASH_H */ 23