summaryrefslogtreecommitdiff
path: root/libressl/include32/openssl/whrlpool.h
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-01-19 01:23:34 -0700
committerEduardo Chappa <chappa@washington.edu>2020-01-19 01:23:34 -0700
commit082202c409cab376f0f0623635dc19e8468baafc (patch)
treeec14202aed02a871280421eb554c46465a2e45a8 /libressl/include32/openssl/whrlpool.h
parent16b49fa63ad28aab44cde5096a706e6cc7520b1f (diff)
downloadalpine-082202c409cab376f0f0623635dc19e8468baafc.tar.xz
* Creating w32 port for compilation of Alpine. This is intended for old
machines that cannot be updated. Long story short: Always use the command "build wnt" to build Alpine. If that does not work, try "build w32", which is for machines that are too old and do not have any way to use modern encryption protocols such as TLSv1.2. The version of Alpine built in modern machines will be called alpine.exe, and the binary built with the port w32 will be called alpine32 in the repository. All other binaries can be downloaded from the main web site, and they will not have the suffix "32" there.
Diffstat (limited to 'libressl/include32/openssl/whrlpool.h')
-rw-r--r--libressl/include32/openssl/whrlpool.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/libressl/include32/openssl/whrlpool.h b/libressl/include32/openssl/whrlpool.h
new file mode 100644
index 00000000..875d34f7
--- /dev/null
+++ b/libressl/include32/openssl/whrlpool.h
@@ -0,0 +1,41 @@
+/* $OpenBSD: whrlpool.h,v 1.5 2014/07/10 22:45:58 jsing Exp $ */
+
+#include <stddef.h>
+
+#ifndef HEADER_WHRLPOOL_H
+#define HEADER_WHRLPOOL_H
+
+#include <openssl/opensslconf.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define WHIRLPOOL_DIGEST_LENGTH (512/8)
+#define WHIRLPOOL_BBLOCK 512
+#define WHIRLPOOL_COUNTER (256/8)
+
+typedef struct {
+ union {
+ unsigned char c[WHIRLPOOL_DIGEST_LENGTH];
+ /* double q is here to ensure 64-bit alignment */
+ double q[WHIRLPOOL_DIGEST_LENGTH/sizeof(double)];
+ } H;
+ unsigned char data[WHIRLPOOL_BBLOCK/8];
+ unsigned int bitoff;
+ size_t bitlen[WHIRLPOOL_COUNTER/sizeof(size_t)];
+ } WHIRLPOOL_CTX;
+
+#ifndef OPENSSL_NO_WHIRLPOOL
+int WHIRLPOOL_Init (WHIRLPOOL_CTX *c);
+int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes);
+void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits);
+int WHIRLPOOL_Final (unsigned char *md,WHIRLPOOL_CTX *c);
+unsigned char *WHIRLPOOL(const void *inp,size_t bytes,unsigned char *md);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif