summaryrefslogtreecommitdiffstats
path: root/sys/crypto/sha2
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-12-21 18:42:04 +0000
committeremaste <emaste@FreeBSD.org>2016-12-21 18:42:04 +0000
commit6a16c286f29d59cc449f7cea76b51262b136a62b (patch)
treef5453064203999d75924a17e7e18b8968d590b73 /sys/crypto/sha2
parent881a4f10f0d0c90401e2f1132ab9677913740583 (diff)
downloadFreeBSD-src-6a16c286f29d59cc449f7cea76b51262b136a62b.zip
FreeBSD-src-6a16c286f29d59cc449f7cea76b51262b136a62b.tar.gz
MFC r307521: libmd: introduce functions that operate on fd instead of filename
Diffstat (limited to 'sys/crypto/sha2')
-rw-r--r--sys/crypto/sha2/sha256.h8
-rw-r--r--sys/crypto/sha2/sha384.h8
-rw-r--r--sys/crypto/sha2/sha512.h8
-rw-r--r--sys/crypto/sha2/sha512t.h16
4 files changed, 40 insertions, 0 deletions
diff --git a/sys/crypto/sha2/sha256.h b/sys/crypto/sha2/sha256.h
index ca67cae..bd31a62 100644
--- a/sys/crypto/sha2/sha256.h
+++ b/sys/crypto/sha2/sha256.h
@@ -59,6 +59,12 @@ __BEGIN_DECLS
#ifndef SHA256_End
#define SHA256_End _libmd_SHA256_End
#endif
+#ifndef SHA256_Fd
+#define SHA256_Fd _libmd_SHA256_Fd
+#endif
+#ifndef SHA256_FdChunk
+#define SHA256_FdChunk _libmd_SHA256_FdChunk
+#endif
#ifndef SHA256_File
#define SHA256_File _libmd_SHA256_File
#endif
@@ -83,6 +89,8 @@ void SHA256_Final(unsigned char [__min_size(SHA256_DIGEST_LENGTH)],
#ifndef _KERNEL
char *SHA256_End(SHA256_CTX *, char *);
char *SHA256_Data(const void *, unsigned int, char *);
+char *SHA256_Fd(int, char *);
+char *SHA256_FdChunk(int, char *, off_t, off_t);
char *SHA256_File(const char *, char *);
char *SHA256_FileChunk(const char *, char *, off_t, off_t);
#endif
diff --git a/sys/crypto/sha2/sha384.h b/sys/crypto/sha2/sha384.h
index 2f21ee7..0134559 100644
--- a/sys/crypto/sha2/sha384.h
+++ b/sys/crypto/sha2/sha384.h
@@ -58,6 +58,12 @@ __BEGIN_DECLS
#ifndef SHA384_End
#define SHA384_End _libmd_SHA384_End
#endif
+#ifndef SHA384_Fd
+#define SHA384_Fd _libmd_SHA384_Fd
+#endif
+#ifndef SHA384_FdChunk
+#define SHA384_FdChunk _libmd_SHA384_FdChunk
+#endif
#ifndef SHA384_File
#define SHA384_File _libmd_SHA384_File
#endif
@@ -79,6 +85,8 @@ void SHA384_Final(unsigned char [__min_size(SHA384_DIGEST_LENGTH)],
#ifndef _KERNEL
char *SHA384_End(SHA384_CTX *, char *);
char *SHA384_Data(const void *, unsigned int, char *);
+char *SHA384_Fd(int, char *);
+char *SHA384_FdChunk(int, char *, off_t, off_t);
char *SHA384_File(const char *, char *);
char *SHA384_FileChunk(const char *, char *, off_t, off_t);
#endif
diff --git a/sys/crypto/sha2/sha512.h b/sys/crypto/sha2/sha512.h
index 174f11f..8b3e17c 100644
--- a/sys/crypto/sha2/sha512.h
+++ b/sys/crypto/sha2/sha512.h
@@ -58,6 +58,12 @@ __BEGIN_DECLS
#ifndef SHA512_End
#define SHA512_End _libmd_SHA512_End
#endif
+#ifndef SHA512_Fd
+#define SHA512_Fd _libmd_SHA512_Fd
+#endif
+#ifndef SHA512_FdChunk
+#define SHA512_FdChunk _libmd_SHA512_FdChunk
+#endif
#ifndef SHA512_File
#define SHA512_File _libmd_SHA512_File
#endif
@@ -82,6 +88,8 @@ void SHA512_Final(unsigned char [__min_size(SHA512_DIGEST_LENGTH)],
#ifndef _KERNEL
char *SHA512_End(SHA512_CTX *, char *);
char *SHA512_Data(const void *, unsigned int, char *);
+char *SHA512_Fd(int, char *);
+char *SHA512_FdChunk(int, char *, off_t, off_t);
char *SHA512_File(const char *, char *);
char *SHA512_FileChunk(const char *, char *, off_t, off_t);
#endif
diff --git a/sys/crypto/sha2/sha512t.h b/sys/crypto/sha2/sha512t.h
index d5da5f0..1ae490f 100644
--- a/sys/crypto/sha2/sha512t.h
+++ b/sys/crypto/sha2/sha512t.h
@@ -55,6 +55,12 @@ __BEGIN_DECLS
#ifndef SHA512_224_End
#define SHA512_224_End _libmd_SHA512_224_End
#endif
+#ifndef SHA512_224_Fd
+#define SHA512_224_Fd _libmd_SHA512_224_Fd
+#endif
+#ifndef SHA512_224_FdChunk
+#define SHA512_224_FdChunk _libmd_SHA512_224_FdChunk
+#endif
#ifndef SHA512_224_File
#define SHA512_224_File _libmd_SHA512_224_File
#endif
@@ -84,6 +90,12 @@ __BEGIN_DECLS
#ifndef SHA512_256_End
#define SHA512_256_End _libmd_SHA512_256_End
#endif
+#ifndef SHA512_256_Fd
+#define SHA512_256_Fd _libmd_SHA512_256_Fd
+#endif
+#ifndef SHA512_256_FdChunk
+#define SHA512_256_FdChunk _libmd_SHA512_256_FdChunk
+#endif
#ifndef SHA512_256_File
#define SHA512_256_File _libmd_SHA512_256_File
#endif
@@ -108,6 +120,8 @@ void SHA512_224_Final(unsigned char [__min_size(SHA512_224_DIGEST_LENGTH)],
#ifndef _KERNEL
char *SHA512_224_End(SHA512_CTX *, char *);
char *SHA512_224_Data(const void *, unsigned int, char *);
+char *SHA512_224_Fd(int, char *);
+char *SHA512_224_FdChunk(int, char *, off_t, off_t);
char *SHA512_224_File(const char *, char *);
char *SHA512_224_FileChunk(const char *, char *, off_t, off_t);
#endif
@@ -118,6 +132,8 @@ void SHA512_256_Final(unsigned char [__min_size(SHA512_256_DIGEST_LENGTH)],
#ifndef _KERNEL
char *SHA512_256_End(SHA512_CTX *, char *);
char *SHA512_256_Data(const void *, unsigned int, char *);
+char *SHA512_256_Fd(int, char *);
+char *SHA512_256_FdChunk(int, char *, off_t, off_t);
char *SHA512_256_File(const char *, char *);
char *SHA512_256_FileChunk(const char *, char *, off_t, off_t);
#endif
OpenPOWER on IntegriCloud