diff options
| author | cvs2svn <admin@example.com> | 2011-08-03 21:43:06 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2011-08-03 21:43:06 +0000 |
| commit | 1604a259e64964daea3d9fde3efb0acfb6fda3d4 (patch) | |
| tree | 5b7a4e7b024dc65cf061c1cb0f8f7d4f598478e7 /src/lib/libcrypto/whrlpool/whrlpool.h | |
| parent | 2a002e99c77affad89bbeadf44df211e3aba1317 (diff) | |
| download | openbsd-OPENBSD_5_0_BASE.tar.gz openbsd-OPENBSD_5_0_BASE.tar.bz2 openbsd-OPENBSD_5_0_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_5_0_BASE'.OPENBSD_5_0_BASE
Diffstat (limited to 'src/lib/libcrypto/whrlpool/whrlpool.h')
| -rw-r--r-- | src/lib/libcrypto/whrlpool/whrlpool.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/lib/libcrypto/whrlpool/whrlpool.h b/src/lib/libcrypto/whrlpool/whrlpool.h deleted file mode 100644 index 03c91da115..0000000000 --- a/src/lib/libcrypto/whrlpool/whrlpool.h +++ /dev/null | |||
| @@ -1,38 +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 | ||
| 8 | extern "C" { | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #define WHIRLPOOL_DIGEST_LENGTH (512/8) | ||
| 12 | #define WHIRLPOOL_BBLOCK 512 | ||
| 13 | #define WHIRLPOOL_COUNTER (256/8) | ||
| 14 | |||
| 15 | typedef 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 | int WHIRLPOOL_Init (WHIRLPOOL_CTX *c); | ||
| 28 | int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes); | ||
| 29 | void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits); | ||
| 30 | int WHIRLPOOL_Final (unsigned char *md,WHIRLPOOL_CTX *c); | ||
| 31 | unsigned char *WHIRLPOOL(const void *inp,size_t bytes,unsigned char *md); | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #ifdef __cplusplus | ||
| 35 | } | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #endif | ||
