3 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms are permitted only
7 * as authorized by the OpenLDAP Public License. A copy of this
8 * license is available at http://www.OpenLDAP.org/license.html or
9 * in file LICENSE in the top-level directory of the distribution.
12 /* See hash.c for explanation and copyright information. */
14 #ifndef _LUTIL_HASH_H_
15 #define _LUTIL_HASH_H_
17 #include <lber_types.h>
21 #define LUTIL_HASH_BYTES 4
23 struct lutil_HASHContext {
28 lutil_HASHInit LDAP_P((
29 struct lutil_HASHContext *context));
32 lutil_HASHUpdate LDAP_P((
33 struct lutil_HASHContext *context,
34 unsigned char const *buf,
38 lutil_HASHFinal LDAP_P((
39 unsigned char digest[LUTIL_HASH_BYTES],
40 struct lutil_HASHContext *context));
42 typedef struct lutil_HASHContext lutil_HASH_CTX;
46 #endif /* _LUTIL_HASH_H_ */