summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/whrlpool/whrlpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/whrlpool/whrlpool.h')
-rw-r--r--src/lib/libcrypto/whrlpool/whrlpool.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/lib/libcrypto/whrlpool/whrlpool.h b/src/lib/libcrypto/whrlpool/whrlpool.h
deleted file mode 100644
index d8e7eef141..0000000000
--- a/src/lib/libcrypto/whrlpool/whrlpool.h
+++ /dev/null
@@ -1,48 +0,0 @@
1/* $OpenBSD: whrlpool.h,v 1.8 2024/06/01 17:56:44 tb Exp $ */
2
3#include <stddef.h>
4
5#ifndef HEADER_WHRLPOOL_H
6#define HEADER_WHRLPOOL_H
7
8#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__OpenBSD__)
9#define __bounded__(x, y, z)
10#endif
11
12#include <openssl/opensslconf.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#define WHIRLPOOL_DIGEST_LENGTH (512/8)
19#define WHIRLPOOL_BBLOCK 512
20#define WHIRLPOOL_COUNTER (256/8)
21
22typedef struct {
23 union {
24 unsigned char c[WHIRLPOOL_DIGEST_LENGTH];
25 /* double q is here to ensure 64-bit alignment */
26 double q[WHIRLPOOL_DIGEST_LENGTH/sizeof(double)];
27 } H;
28 unsigned char data[WHIRLPOOL_BBLOCK/8];
29 unsigned int bitoff;
30 size_t bitlen[WHIRLPOOL_COUNTER/sizeof(size_t)];
31 } WHIRLPOOL_CTX;
32
33#ifndef OPENSSL_NO_WHIRLPOOL
34int WHIRLPOOL_Init (WHIRLPOOL_CTX *c);
35int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes)
36 __attribute__ ((__bounded__(__buffer__, 2, 3)));
37void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits);
38int WHIRLPOOL_Final (unsigned char *md,WHIRLPOOL_CTX *c);
39unsigned char *WHIRLPOOL(const void *inp,size_t bytes,unsigned char *md)
40 __attribute__ ((__bounded__(__buffer__, 1, 2)))
41 __attribute__ ((__nonnull__(3)));
42#endif
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif