diff options
Diffstat (limited to 'src/lib/libcrypto/sha/sha_locl.h')
-rw-r--r-- | src/lib/libcrypto/sha/sha_locl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sha/sha_locl.h b/src/lib/libcrypto/sha/sha_locl.h index 2f8aef83f3..471dfb9f8f 100644 --- a/src/lib/libcrypto/sha/sha_locl.h +++ b/src/lib/libcrypto/sha/sha_locl.h | |||
@@ -115,7 +115,7 @@ | |||
115 | # endif | 115 | # endif |
116 | 116 | ||
117 | # ifdef SHA1_ASM | 117 | # ifdef SHA1_ASM |
118 | # if defined(__i386) || defined(_M_IX86) || defined(__INTEL__) | 118 | # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) |
119 | # define sha1_block_host_order sha1_block_asm_host_order | 119 | # define sha1_block_host_order sha1_block_asm_host_order |
120 | # define DONT_IMPLEMENT_BLOCK_HOST_ORDER | 120 | # define DONT_IMPLEMENT_BLOCK_HOST_ORDER |
121 | # define sha1_block_data_order sha1_block_asm_data_order | 121 | # define sha1_block_data_order sha1_block_asm_data_order |
@@ -138,7 +138,7 @@ | |||
138 | #define INIT_DATA_h3 0x10325476UL | 138 | #define INIT_DATA_h3 0x10325476UL |
139 | #define INIT_DATA_h4 0xc3d2e1f0UL | 139 | #define INIT_DATA_h4 0xc3d2e1f0UL |
140 | 140 | ||
141 | void HASH_INIT (SHA_CTX *c) | 141 | int HASH_INIT (SHA_CTX *c) |
142 | { | 142 | { |
143 | c->h0=INIT_DATA_h0; | 143 | c->h0=INIT_DATA_h0; |
144 | c->h1=INIT_DATA_h1; | 144 | c->h1=INIT_DATA_h1; |
@@ -148,6 +148,7 @@ void HASH_INIT (SHA_CTX *c) | |||
148 | c->Nl=0; | 148 | c->Nl=0; |
149 | c->Nh=0; | 149 | c->Nh=0; |
150 | c->num=0; | 150 | c->num=0; |
151 | return 1; | ||
151 | } | 152 | } |
152 | 153 | ||
153 | #define K_00_19 0x5a827999UL | 154 | #define K_00_19 0x5a827999UL |