sha2.h revision 219089
1228753Smm/*-
2228753Smm * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3228753Smm * All rights reserved.
4228753Smm *
5228753Smm * Redistribution and use in source and binary forms, with or without
6228753Smm * modification, are permitted provided that the following conditions
7228753Smm * are met:
8228753Smm * 1. Redistributions of source code must retain the above copyright
9228753Smm *    notice, this list of conditions and the following disclaimer.
10228753Smm * 2. Redistributions in binary form must reproduce the above copyright
11228753Smm *    notice, this list of conditions and the following disclaimer in the
12228753Smm *    documentation and/or other materials provided with the distribution.
13228753Smm *
14228753Smm * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
15228753Smm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16228753Smm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17228753Smm * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18228753Smm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19228753Smm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20228753Smm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21228753Smm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22228753Smm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23228753Smm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24228753Smm * SUCH DAMAGE.
25228753Smm *
26228763Smm * $FreeBSD: head/cddl/compat/opensolaris/include/sha2.h 219089 2011-02-27 19:41:40Z pjd $
27228753Smm */
28228753Smm
29228753Smm#ifndef _OPENSOLARIS_SHA2_H_
30228753Smm#define _OPENSOLARIS_SHA2_H_
31228753Smm
32228776Smm#include_next <sha256.h>
33228753Smm
34228753Smm#define	SHA256Init(c)		SHA256_Init(c)
35232153Smm#define	SHA256Update(c, d, s)	SHA256_Update((c), (d), (s))
36232153Smm#define	SHA256Final(b, c)	SHA256_Final((unsigned char *)(b), (c))
37232153Smm
38232153Smm#endif	/* !_OPENSOLARIS_SHA2_H_ */
39232153Smm