1*280d8c66SLionel Sambuc /* $NetBSD: extern.h,v 1.19 2006/09/04 20:01:10 dsl Exp $ */ 2*280d8c66SLionel Sambuc 3*280d8c66SLionel Sambuc /*- 4*280d8c66SLionel Sambuc * Copyright (c) 1991, 1993 5*280d8c66SLionel Sambuc * The Regents of the University of California. All rights reserved. 6*280d8c66SLionel Sambuc * 7*280d8c66SLionel Sambuc * Redistribution and use in source and binary forms, with or without 8*280d8c66SLionel Sambuc * modification, are permitted provided that the following conditions 9*280d8c66SLionel Sambuc * are met: 10*280d8c66SLionel Sambuc * 1. Redistributions of source code must retain the above copyright 11*280d8c66SLionel Sambuc * notice, this list of conditions and the following disclaimer. 12*280d8c66SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright 13*280d8c66SLionel Sambuc * notice, this list of conditions and the following disclaimer in the 14*280d8c66SLionel Sambuc * documentation and/or other materials provided with the distribution. 15*280d8c66SLionel Sambuc * 3. Neither the name of the University nor the names of its contributors 16*280d8c66SLionel Sambuc * may be used to endorse or promote products derived from this software 17*280d8c66SLionel Sambuc * without specific prior written permission. 18*280d8c66SLionel Sambuc * 19*280d8c66SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20*280d8c66SLionel Sambuc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*280d8c66SLionel Sambuc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*280d8c66SLionel Sambuc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23*280d8c66SLionel Sambuc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24*280d8c66SLionel Sambuc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25*280d8c66SLionel Sambuc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26*280d8c66SLionel Sambuc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27*280d8c66SLionel Sambuc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28*280d8c66SLionel Sambuc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29*280d8c66SLionel Sambuc * SUCH DAMAGE. 30*280d8c66SLionel Sambuc * 31*280d8c66SLionel Sambuc * @(#)extern.h 8.1 (Berkeley) 6/6/93 32*280d8c66SLionel Sambuc */ 33*280d8c66SLionel Sambuc 34*280d8c66SLionel Sambuc #if HAVE_NBTOOL_CONFIG_H 35*280d8c66SLionel Sambuc #include "nbtool_config.h" 36*280d8c66SLionel Sambuc #endif 37*280d8c66SLionel Sambuc 38*280d8c66SLionel Sambuc #include <sys/cdefs.h> 39*280d8c66SLionel Sambuc #include "crc_extern.h" 40*280d8c66SLionel Sambuc 41*280d8c66SLionel Sambuc __BEGIN_DECLS 42*280d8c66SLionel Sambuc void pcrc(char *, u_int32_t, off_t); 43*280d8c66SLionel Sambuc void psum1(char *, u_int32_t, off_t); 44*280d8c66SLionel Sambuc void psum2(char *, u_int32_t, off_t); 45*280d8c66SLionel Sambuc int csum1(int, u_int32_t *, off_t *); 46*280d8c66SLionel Sambuc int csum2(int, u_int32_t *, off_t *); 47*280d8c66SLionel Sambuc int md5(int, u_int32_t *, u_int32_t *); 48*280d8c66SLionel Sambuc 49*280d8c66SLionel Sambuc void MD2String(const char *); 50*280d8c66SLionel Sambuc void MD2TimeTrial(void); 51*280d8c66SLionel Sambuc void MD2TestSuite(void); 52*280d8c66SLionel Sambuc void MD2Filter(int); 53*280d8c66SLionel Sambuc 54*280d8c66SLionel Sambuc void MD4String(const char *); 55*280d8c66SLionel Sambuc void MD4TimeTrial(void); 56*280d8c66SLionel Sambuc void MD4TestSuite(void); 57*280d8c66SLionel Sambuc void MD4Filter(int); 58*280d8c66SLionel Sambuc 59*280d8c66SLionel Sambuc void MD5String(const char *); 60*280d8c66SLionel Sambuc void MD5TimeTrial(void); 61*280d8c66SLionel Sambuc void MD5TestSuite(void); 62*280d8c66SLionel Sambuc void MD5Filter(int); 63*280d8c66SLionel Sambuc 64*280d8c66SLionel Sambuc void SHA1String(const char *); 65*280d8c66SLionel Sambuc void SHA1TimeTrial(void); 66*280d8c66SLionel Sambuc void SHA1TestSuite(void); 67*280d8c66SLionel Sambuc void SHA1Filter(int); 68*280d8c66SLionel Sambuc 69*280d8c66SLionel Sambuc void RMD160String(const char *); 70*280d8c66SLionel Sambuc void RMD160TimeTrial(void); 71*280d8c66SLionel Sambuc void RMD160TestSuite(void); 72*280d8c66SLionel Sambuc void RMD160Filter(int); 73*280d8c66SLionel Sambuc 74*280d8c66SLionel Sambuc void SHA256_String(const char *); 75*280d8c66SLionel Sambuc void SHA256_TimeTrial(void); 76*280d8c66SLionel Sambuc void SHA256_TestSuite(void); 77*280d8c66SLionel Sambuc void SHA256_Filter(int); 78*280d8c66SLionel Sambuc 79*280d8c66SLionel Sambuc void SHA384_String(const char *); 80*280d8c66SLionel Sambuc void SHA384_TimeTrial(void); 81*280d8c66SLionel Sambuc void SHA384_TestSuite(void); 82*280d8c66SLionel Sambuc void SHA384_Filter(int); 83*280d8c66SLionel Sambuc 84*280d8c66SLionel Sambuc void SHA512_String(const char *); 85*280d8c66SLionel Sambuc void SHA512_TimeTrial(void); 86*280d8c66SLionel Sambuc void SHA512_TestSuite(void); 87*280d8c66SLionel Sambuc void SHA512_Filter(int); 88*280d8c66SLionel Sambuc __END_DECLS 89