version 1.2, 2000/10/17 22:29:21
|
version 1.8.2.2, 2007/08/31 23:13:57
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/liblutil/hash.c,v 1.1 2000/09/22 20:19:46 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/liblutil/hash.c,v 1.9 2007/01/02 19:01:01 kurt Exp $ */ |
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
|
* |
|
* Copyright 2000-2007 The OpenLDAP Foundation. |
|
* Portions Copyright 2000-2003 Kurt D. Zeilenga. |
|
* All rights reserved. |
|
* |
|
* Redistribution and use in source and binary forms, with or without |
|
* modification, are permitted only as authorized by the OpenLDAP |
|
* Public License. |
|
* |
|
* A copy of this license is available in the file LICENSE in the |
|
* top-level directory of the distribution or, alternatively, at |
|
* <http://www.OpenLDAP.org/license.html>. |
|
*/ |
|
|
/* This implements the Fowler / Noll / Vo (FNV-1) hash algorithm. |
/* This implements the Fowler / Noll / Vo (FNV-1) hash algorithm. |
* A summary of the algorithm can be found at: |
* A summary of the algorithm can be found at: |
* http://www.isthe.com/chongo/tech/comp/fnv/index.html |
* http://www.isthe.com/chongo/tech/comp/fnv/index.html |
Line 29 void
|
Line 44 void
|
lutil_HASHUpdate( |
lutil_HASHUpdate( |
struct lutil_HASHContext *ctx, |
struct lutil_HASHContext *ctx, |
const unsigned char *buf, |
const unsigned char *buf, |
ber_len_t len |
ber_len_t len ) |
) |
|
{ |
{ |
const unsigned char *p, *e; |
const unsigned char *p, *e; |
ber_uint_t h; |
ber_uint_t h; |