diff options
author | allanjude <allanjude@FreeBSD.org> | 2015-12-30 22:43:07 +0000 |
---|---|---|
committer | allanjude <allanjude@FreeBSD.org> | 2015-12-30 22:43:07 +0000 |
commit | 2502999acda612f4678ed5461267695dd4647fb8 (patch) | |
tree | 12247b119e71bb44ed83dadc7581550fdd65e5c2 /sys/crypto | |
parent | f0089fdb6f3501da95454665558d11f5ee6c699c (diff) | |
download | FreeBSD-src-2502999acda612f4678ed5461267695dd4647fb8.zip FreeBSD-src-2502999acda612f4678ed5461267695dd4647fb8.tar.gz |
Break up opencrypto/xform.c so it can be reused piecemeal
Keep xform.c as a meta-file including the broken out bits
existing code that includes xform.c continues to work as normal
Individual algorithms can now be reused elsewhere, including outside
of the kernel
Reviewed by: bapt (previous version), gnn, delphij
Approved by: secteam
MFC after: 1 week
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D4674
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/sha1.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h index 3686d7d..d32aa8a 100644 --- a/sys/crypto/sha1.h +++ b/sys/crypto/sha1.h @@ -53,6 +53,7 @@ struct sha1_ctxt { } m; u_int8_t count; }; +typedef struct sha1_ctxt SHA1_CTX; #ifdef _KERNEL extern void sha1_init(struct sha1_ctxt *); @@ -61,7 +62,6 @@ extern void sha1_loop(struct sha1_ctxt *, const u_int8_t *, size_t); extern void sha1_result(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)) |