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