1*0616fd7fSPavel Filipensky /* 2*0616fd7fSPavel Filipensky * CDDL HEADER START 3*0616fd7fSPavel Filipensky * 4*0616fd7fSPavel Filipensky * The contents of this file are subject to the terms of the 5*0616fd7fSPavel Filipensky * Common Development and Distribution License (the "License"). 6*0616fd7fSPavel Filipensky * You may not use this file except in compliance with the License. 7*0616fd7fSPavel Filipensky * 8*0616fd7fSPavel Filipensky * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*0616fd7fSPavel Filipensky * or http://www.opensolaris.org/os/licensing. 10*0616fd7fSPavel Filipensky * See the License for the specific language governing permissions 11*0616fd7fSPavel Filipensky * and limitations under the License. 12*0616fd7fSPavel Filipensky * 13*0616fd7fSPavel Filipensky * When distributing Covered Code, include this CDDL HEADER in each 14*0616fd7fSPavel Filipensky * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*0616fd7fSPavel Filipensky * If applicable, add the following below this CDDL HEADER, with the 16*0616fd7fSPavel Filipensky * fields enclosed by brackets "[]" replaced with your own identifying 17*0616fd7fSPavel Filipensky * information: Portions Copyright [yyyy] [name of copyright owner] 18*0616fd7fSPavel Filipensky * 19*0616fd7fSPavel Filipensky * CDDL HEADER END 20*0616fd7fSPavel Filipensky */ 21*0616fd7fSPavel Filipensky /* 22*0616fd7fSPavel Filipensky * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 23*0616fd7fSPavel Filipensky */ 24*0616fd7fSPavel Filipensky 25*0616fd7fSPavel Filipensky #ifndef _PKP_HASH_H_ 26*0616fd7fSPavel Filipensky #define _PKP_HASH_H_ 27*0616fd7fSPavel Filipensky 28*0616fd7fSPavel Filipensky #include <sys/types.h> 29*0616fd7fSPavel Filipensky 30*0616fd7fSPavel Filipensky #ifdef __cplusplus 31*0616fd7fSPavel Filipensky extern "C" { 32*0616fd7fSPavel Filipensky #endif 33*0616fd7fSPavel Filipensky 34*0616fd7fSPavel Filipensky /* 35*0616fd7fSPavel Filipensky * Pearson's string hash 36*0616fd7fSPavel Filipensky * 37*0616fd7fSPavel Filipensky * See: Communications of the ACM, June 1990 Vol 33 pp 677-680 38*0616fd7fSPavel Filipensky * http://portal.acm.org/citation.cfm?doid=78973.78978 39*0616fd7fSPavel Filipensky */ 40*0616fd7fSPavel Filipensky #define PKP_HASH_SIZE 256 41*0616fd7fSPavel Filipensky 42*0616fd7fSPavel Filipensky extern uint_t pkp_tab_hash(char *, int); 43*0616fd7fSPavel Filipensky 44*0616fd7fSPavel Filipensky #ifdef __cplusplus 45*0616fd7fSPavel Filipensky } 46*0616fd7fSPavel Filipensky #endif 47*0616fd7fSPavel Filipensky 48*0616fd7fSPavel Filipensky #endif /* _PKP_HASH_H_ */ 49