Annotation of src/external/mpl/bind/dist/lib/isc/include/isc/iterated_hash.h, Revision 1.1.1.2
1.1 christos 1: /* $NetBSD$ */
2:
3: /*
4: * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5: *
6: * This Source Code Form is subject to the terms of the Mozilla Public
7: * License, v. 2.0. If a copy of the MPL was not distributed with this
8: * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9: *
10: * See the COPYRIGHT file distributed with this work for additional
11: * information regarding copyright ownership.
12: */
13:
1.1.1.2 ! christos 14: #pragma once
1.1 christos 15:
16: #include <isc/lang.h>
17:
18: /*
19: * The maximal hash length that can be encoded in a name
20: * using base32hex. floor(255/8)*5
21: */
22: #define NSEC3_MAX_HASH_LENGTH 155
23:
24: /*
25: * The maximum has that can be encoded in a single label using
26: * base32hex. floor(63/8)*5
27: */
28: #define NSEC3_MAX_LABEL_HASH 35
29:
30: ISC_LANG_BEGINDECLS
31:
1.1.1.2 ! christos 32: int
! 33: isc_iterated_hash(unsigned char *out,
! 34: const unsigned int hashalg, const int iterations,
! 35: const unsigned char *salt, const int saltlength,
! 36: const unsigned char *in, const int inlength);
1.1 christos 37:
38: ISC_LANG_ENDDECLS
CVSweb <webmaster@jp.NetBSD.org>