sha2.h revision 219089
1184588Sdfr/*-
2184588Sdfr * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3184588Sdfr * All rights reserved.
4184588Sdfr *
5184588Sdfr * Redistribution and use in source and binary forms, with or without
6184588Sdfr * modification, are permitted provided that the following conditions
7184588Sdfr * are met:
8184588Sdfr * 1. Redistributions of source code must retain the above copyright
9184588Sdfr *    notice, this list of conditions and the following disclaimer.
10184588Sdfr * 2. Redistributions in binary form must reproduce the above copyright
11184588Sdfr *    notice, this list of conditions and the following disclaimer in the
12184588Sdfr *    documentation and/or other materials provided with the distribution.
13184588Sdfr *
14184588Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
15184588Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16184588Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17184588Sdfr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18184588Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19184588Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20184588Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21184588Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22184588Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23184588Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24184588Sdfr * SUCH DAMAGE.
25184588Sdfr *
26184588Sdfr * $FreeBSD: head/cddl/compat/opensolaris/include/sha2.h 219089 2011-02-27 19:41:40Z pjd $
27184588Sdfr */
28184588Sdfr
29184588Sdfr#ifndef _OPENSOLARIS_SHA2_H_
30184588Sdfr#define _OPENSOLARIS_SHA2_H_
31184588Sdfr
32184588Sdfr#include_next <sha256.h>
33184588Sdfr
34184588Sdfr#define	SHA256Init(c)		SHA256_Init(c)
35184588Sdfr#define	SHA256Update(c, d, s)	SHA256_Update((c), (d), (s))
36184588Sdfr#define	SHA256Final(b, c)	SHA256_Final((unsigned char *)(b), (c))
37184588Sdfr
38184588Sdfr#endif	/* !_OPENSOLARIS_SHA2_H_ */
39184588Sdfr