summaryrefslogtreecommitdiffstats
path: root/sys/crypto/sha1.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/crypto/sha1.h')
-rw-r--r--sys/crypto/sha1.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h
index dc7966c..2e87f05 100644
--- a/sys/crypto/sha1.h
+++ b/sys/crypto/sha1.h
@@ -1,3 +1,6 @@
+/* $FreeBSD$ */
+/* $KAME: sha1.h,v 1.5 2000/03/27 04:36:23 sumikawa Exp $ */
+
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
@@ -25,8 +28,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
/*
* FIPS pub 180-1: Secure Hash Algorithm (SHA-1)
@@ -35,7 +36,7 @@
*/
#ifndef _NETINET6_SHA1_H_
-#define _NETINET6_SHA1_H_
+#define _NETINET6_SHA1_H_
struct sha1_ctxt {
union {
@@ -56,14 +57,14 @@ struct sha1_ctxt {
#ifdef _KERNEL
extern void sha1_init __P((struct sha1_ctxt *));
extern void sha1_pad __P((struct sha1_ctxt *));
-extern void sha1_loop __P((struct sha1_ctxt *, const u_char *, size_t));
+extern void sha1_loop __P((struct sha1_ctxt *, const caddr_t, size_t));
extern void sha1_result __P((struct sha1_ctxt *, caddr_t));
/* compatibilty with other SHA1 source codes */
typedef struct sha1_ctxt SHA1_CTX;
-#define SHA1Init(x) sha1_init((x))
-#define SHA1Update(x, y, z) sha1_loop((x), (y), (z))
-#define SHA1Final(x, y) sha1_result((y), (x))
+#define SHA1Init(x) sha1_init((x))
+#define SHA1Update(x, y, z) sha1_loop((x), (y), (z))
+#define SHA1Final(x, y) sha1_result((y), (x))
#endif
#define SHA1_RESULTLEN (160/8)
OpenPOWER on IntegriCloud