1219089Spjd/*-
2219089Spjd * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3219089Spjd * All rights reserved.
4219089Spjd *
5219089Spjd * Redistribution and use in source and binary forms, with or without
6219089Spjd * modification, are permitted provided that the following conditions
7219089Spjd * are met:
8219089Spjd * 1. Redistributions of source code must retain the above copyright
9219089Spjd *    notice, this list of conditions and the following disclaimer.
10219089Spjd * 2. Redistributions in binary form must reproduce the above copyright
11219089Spjd *    notice, this list of conditions and the following disclaimer in the
12219089Spjd *    documentation and/or other materials provided with the distribution.
13219089Spjd *
14219089Spjd * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
15219089Spjd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16219089Spjd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17219089Spjd * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18219089Spjd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19219089Spjd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20219089Spjd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21219089Spjd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22219089Spjd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23219089Spjd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24219089Spjd * SUCH DAMAGE.
25219089Spjd *
26219089Spjd * $FreeBSD$
27219089Spjd */
28219089Spjd
29219089Spjd#ifndef _OPENSOLARIS_SHA2_H_
30219089Spjd#define _OPENSOLARIS_SHA2_H_
31219089Spjd
32219089Spjd#include_next <sha256.h>
33219089Spjd
34219089Spjd#define	SHA256Init(c)		SHA256_Init(c)
35219089Spjd#define	SHA256Update(c, d, s)	SHA256_Update((c), (d), (s))
36219089Spjd#define	SHA256Final(b, c)	SHA256_Final((unsigned char *)(b), (c))
37219089Spjd
38219089Spjd#endif	/* !_OPENSOLARIS_SHA2_H_ */
39