summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/whrlpool/whrlpool.h
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2013-02-14 15:11:45 +0000
committercvs2svn <admin@example.com>2013-02-14 15:11:45 +0000
commit6f78006c046d1db00c07d2f9ba014243246a84cc (patch)
treec1e76e693e8d7ff23b9f398e8e4b2470ff4fa565 /src/lib/libcrypto/whrlpool/whrlpool.h
parent4383d44ca79eba8836d9f92c612c44ba8aeb87bd (diff)
downloadopenbsd-OPENBSD_5_3_BASE.tar.gz
openbsd-OPENBSD_5_3_BASE.tar.bz2
openbsd-OPENBSD_5_3_BASE.zip
This commit was manufactured by cvs2git to create tag 'OPENBSD_5_3_BASE'.OPENBSD_5_3_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 9e01f5b076..0000000000
--- a/src/lib/libcrypto/whrlpool/whrlpool.h
+++ /dev/null
@@ -1,41 +0,0 @@
1#ifndef HEADER_WHRLPOOL_H
2#define HEADER_WHRLPOOL_H
3
4#include <openssl/e_os2.h>
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#define WHIRLPOOL_DIGEST_LENGTH (512/8)
12#define WHIRLPOOL_BBLOCK 512
13#define WHIRLPOOL_COUNTER (256/8)
14
15typedef struct {
16 union {
17 unsigned char c[WHIRLPOOL_DIGEST_LENGTH];
18 /* double q is here to ensure 64-bit alignment */
19 double q[WHIRLPOOL_DIGEST_LENGTH/sizeof(double)];
20 } H;
21 unsigned char data[WHIRLPOOL_BBLOCK/8];
22 unsigned int bitoff;
23 size_t bitlen[WHIRLPOOL_COUNTER/sizeof(size_t)];
24 } WHIRLPOOL_CTX;
25
26#ifndef OPENSSL_NO_WHIRLPOOL
27#ifdef OPENSSL_FIPS
28int private_WHIRLPOOL_Init(WHIRLPOOL_CTX *c);
29#endif
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