xref: /freebsd/lib/libnetbsd/sha1.h (revision 2a63c3be158216222d89a073dcbd6a72ee4aab5a)
16bea8766SBrooks Davis 
26bea8766SBrooks Davis /*-
3*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
45e53a4f9SPedro F. Giffuni  *
56bea8766SBrooks Davis  * Copyright (c) 2012 SRI International
66bea8766SBrooks Davis  * All rights reserved.
76bea8766SBrooks Davis  *
86bea8766SBrooks Davis  * This software was developed by SRI International and the University of
96bea8766SBrooks Davis  * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
106bea8766SBrooks Davis  * ("CTSRD"), as part of the DARPA CRASH research programme.
116bea8766SBrooks Davis  *
126bea8766SBrooks Davis  * Redistribution and use in source and binary forms, with or without
136bea8766SBrooks Davis  * modification, are permitted provided that the following conditions
146bea8766SBrooks Davis  * are met:
156bea8766SBrooks Davis  * 1. Redistributions of source code must retain the above copyright
166bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer.
176bea8766SBrooks Davis  * 2. Redistributions in binary form must reproduce the above copyright
186bea8766SBrooks Davis  *    notice, this list of conditions and the following disclaimer in the
196bea8766SBrooks Davis  *    documentation and/or other materials provided with the distribution.
206bea8766SBrooks Davis  *
216bea8766SBrooks Davis  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
226bea8766SBrooks Davis  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
236bea8766SBrooks Davis  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
246bea8766SBrooks Davis  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
256bea8766SBrooks Davis  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
266bea8766SBrooks Davis  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
276bea8766SBrooks Davis  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
286bea8766SBrooks Davis  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
296bea8766SBrooks Davis  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
306bea8766SBrooks Davis  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
316bea8766SBrooks Davis  * SUCH DAMAGE.
326bea8766SBrooks Davis  */
336bea8766SBrooks Davis 
346bea8766SBrooks Davis #ifndef _SHA1_H_
356bea8766SBrooks Davis #define _SHA1_H_
366bea8766SBrooks Davis 
376bea8766SBrooks Davis #include <sha.h>
386bea8766SBrooks Davis 
3959754238SEnji Cooper #define	SHA1_CTX	SHA_CTX
4059754238SEnji Cooper 
416bea8766SBrooks Davis #define	SHA1End		SHA1_End
426bea8766SBrooks Davis #define	SHA1File	SHA1_File
4359754238SEnji Cooper #define	SHA1Final	SHA1_Final
446bea8766SBrooks Davis #define	SHA1Init	SHA1_Init
456bea8766SBrooks Davis #define	SHA1Update	SHA1_Update
466bea8766SBrooks Davis 
476bea8766SBrooks Davis #endif /* _SHA1_H_ */
48