3 * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
8 * Public License. A copy of this license is available at
9 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10 * top-level directory of the distribution.
13 /* See hash.c for explanation and copyright information. */
15 #ifndef _LUTIL_HASH_H_
16 #define _LUTIL_HASH_H_
18 #include <lber_types.h>
22 #define LUTIL_HASH_BYTES 4
24 struct lutil_HASHContext {
29 lutil_HASHInit LDAP_P((
30 struct lutil_HASHContext *context));
33 lutil_HASHUpdate LDAP_P((
34 struct lutil_HASHContext *context,
35 unsigned char const *buf,
39 lutil_HASHFinal LDAP_P((
40 unsigned char digest[LUTIL_HASH_BYTES],
41 struct lutil_HASHContext *context));
43 typedef struct lutil_HASHContext lutil_HASH_CTX;
47 #endif /* _LUTIL_HASH_H_ */