diff options
author | djm <> | 2012-10-13 21:23:50 +0000 |
---|---|---|
committer | djm <> | 2012-10-13 21:23:50 +0000 |
commit | e9d65189905c6e99c1062d65e26bf83eebb0a26a (patch) | |
tree | 10ebe51c3542099b0ab8325d8f322372375dc3b4 /src/lib/libcrypto/whrlpool | |
parent | 59625e84c89bf82e1c6d20c55785b618eb56ea72 (diff) | |
parent | 228cae30b117c2493f69ad3c195341cd6ec8d430 (diff) | |
download | openbsd-e9d65189905c6e99c1062d65e26bf83eebb0a26a.tar.gz openbsd-e9d65189905c6e99c1062d65e26bf83eebb0a26a.tar.bz2 openbsd-e9d65189905c6e99c1062d65e26bf83eebb0a26a.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/whrlpool')
-rw-r--r-- | src/lib/libcrypto/whrlpool/whrlpool.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/whrlpool/wp_block.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/whrlpool/wp_dgst.c | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libcrypto/whrlpool/whrlpool.h b/src/lib/libcrypto/whrlpool/whrlpool.h index 03c91da115..9e01f5b076 100644 --- a/src/lib/libcrypto/whrlpool/whrlpool.h +++ b/src/lib/libcrypto/whrlpool/whrlpool.h | |||
@@ -24,6 +24,9 @@ typedef struct { | |||
24 | } WHIRLPOOL_CTX; | 24 | } WHIRLPOOL_CTX; |
25 | 25 | ||
26 | #ifndef OPENSSL_NO_WHIRLPOOL | 26 | #ifndef OPENSSL_NO_WHIRLPOOL |
27 | #ifdef OPENSSL_FIPS | ||
28 | int private_WHIRLPOOL_Init(WHIRLPOOL_CTX *c); | ||
29 | #endif | ||
27 | int WHIRLPOOL_Init (WHIRLPOOL_CTX *c); | 30 | int WHIRLPOOL_Init (WHIRLPOOL_CTX *c); |
28 | int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes); | 31 | 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); | 32 | void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits); |
diff --git a/src/lib/libcrypto/whrlpool/wp_block.c b/src/lib/libcrypto/whrlpool/wp_block.c index 221f6cc59f..824ed1827c 100644 --- a/src/lib/libcrypto/whrlpool/wp_block.c +++ b/src/lib/libcrypto/whrlpool/wp_block.c | |||
@@ -68,9 +68,9 @@ typedef unsigned long long u64; | |||
68 | CPUs this is actually faster! */ | 68 | CPUs this is actually faster! */ |
69 | # endif | 69 | # endif |
70 | # define GO_FOR_MMX(ctx,inp,num) do { \ | 70 | # define GO_FOR_MMX(ctx,inp,num) do { \ |
71 | extern unsigned long OPENSSL_ia32cap_P; \ | 71 | extern unsigned int OPENSSL_ia32cap_P[]; \ |
72 | void whirlpool_block_mmx(void *,const void *,size_t); \ | 72 | void whirlpool_block_mmx(void *,const void *,size_t); \ |
73 | if (!(OPENSSL_ia32cap_P & (1<<23))) break; \ | 73 | if (!(OPENSSL_ia32cap_P[0] & (1<<23))) break; \ |
74 | whirlpool_block_mmx(ctx->H.c,inp,num); return; \ | 74 | whirlpool_block_mmx(ctx->H.c,inp,num); return; \ |
75 | } while (0) | 75 | } while (0) |
76 | # endif | 76 | # endif |
diff --git a/src/lib/libcrypto/whrlpool/wp_dgst.c b/src/lib/libcrypto/whrlpool/wp_dgst.c index ee5c5c1bf3..7e28bef51d 100644 --- a/src/lib/libcrypto/whrlpool/wp_dgst.c +++ b/src/lib/libcrypto/whrlpool/wp_dgst.c | |||
@@ -52,9 +52,10 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #include "wp_locl.h" | 54 | #include "wp_locl.h" |
55 | #include <openssl/crypto.h> | ||
55 | #include <string.h> | 56 | #include <string.h> |
56 | 57 | ||
57 | int WHIRLPOOL_Init (WHIRLPOOL_CTX *c) | 58 | fips_md_init(WHIRLPOOL) |
58 | { | 59 | { |
59 | memset (c,0,sizeof(*c)); | 60 | memset (c,0,sizeof(*c)); |
60 | return(1); | 61 | return(1); |