summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/whrlpool/whrlpool.h
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2015-03-08 16:48:48 +0000
committercvs2svn <admin@example.com>2015-03-08 16:48:48 +0000
commitda1a9ad3a4a867ba6569c05e6fca66d7f296c553 (patch)
tree44872802e872bdfd60730fa9cf01d9d5751251c1 /src/lib/libcrypto/whrlpool/whrlpool.h
parent973703db67a8e73d70e63afa8f2cde19da09144d (diff)
downloadopenbsd-OPENBSD_5_7_BASE.tar.gz
openbsd-OPENBSD_5_7_BASE.tar.bz2
openbsd-OPENBSD_5_7_BASE.zip
This commit was manufactured by cvs2git to create tag 'OPENBSD_5_7_BASE'.OPENBSD_5_7_BASE
Diffstat (limited to 'src/lib/libcrypto/whrlpool/whrlpool.h')
-rw-r--r--src/lib/libcrypto/whrlpool/whrlpool.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/lib/libcrypto/whrlpool/whrlpool.h b/src/lib/libcrypto/whrlpool/whrlpool.h
deleted file mode 100644
index 875d34f7d3..0000000000
--- a/src/lib/libcrypto/whrlpool/whrlpool.h
+++ /dev/null
@@ -1,41 +0,0 @@
1/* $OpenBSD: whrlpool.h,v 1.5 2014/07/10 22:45:58 jsing Exp $ */
2
3#include <stddef.h>
4
5#ifndef HEADER_WHRLPOOL_H
6#define HEADER_WHRLPOOL_H
7
8#include <openssl/opensslconf.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define WHIRLPOOL_DIGEST_LENGTH (512/8)
15#define WHIRLPOOL_BBLOCK 512
16#define WHIRLPOOL_COUNTER (256/8)
17
18typedef struct {
19 union {
20 unsigned char c[WHIRLPOOL_DIGEST_LENGTH];
21 /* double q is here to ensure 64-bit alignment */
22 double q[WHIRLPOOL_DIGEST_LENGTH/sizeof(double)];
23 } H;
24 unsigned char data[WHIRLPOOL_BBLOCK/8];
25 unsigned int bitoff;
26 size_t bitlen[WHIRLPOOL_COUNTER/sizeof(size_t)];
27 } WHIRLPOOL_CTX;
28
29#ifndef OPENSSL_NO_WHIRLPOOL
30int WHIRLPOOL_Init (WHIRLPOOL_CTX *c);
31int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes);
32void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits);
33int WHIRLPOOL_Final (unsigned char *md,WHIRLPOOL_CTX *c);
34unsigned char *WHIRLPOOL(const void *inp,size_t bytes,unsigned char *md);
35#endif
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif