diff options
Diffstat (limited to 'src/lib/libcrypto/evp/m_wp.c')
-rw-r--r-- | src/lib/libcrypto/evp/m_wp.c | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/lib/libcrypto/evp/m_wp.c b/src/lib/libcrypto/evp/m_wp.c index c51bc2d5d1..3991a71c17 100644 --- a/src/lib/libcrypto/evp/m_wp.c +++ b/src/lib/libcrypto/evp/m_wp.c | |||
@@ -12,16 +12,21 @@ | |||
12 | #include "evp_locl.h" | 12 | #include "evp_locl.h" |
13 | 13 | ||
14 | static int init(EVP_MD_CTX *ctx) | 14 | static int init(EVP_MD_CTX *ctx) |
15 | { return WHIRLPOOL_Init(ctx->md_data); } | 15 | { |
16 | return WHIRLPOOL_Init(ctx->md_data); | ||
17 | } | ||
16 | 18 | ||
17 | static int update(EVP_MD_CTX *ctx,const void *data,size_t count) | 19 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) |
18 | { return WHIRLPOOL_Update(ctx->md_data,data,count); } | 20 | { |
21 | return WHIRLPOOL_Update(ctx->md_data, data, count); | ||
22 | } | ||
19 | 23 | ||
20 | static int final(EVP_MD_CTX *ctx,unsigned char *md) | 24 | static int final(EVP_MD_CTX *ctx, unsigned char *md) |
21 | { return WHIRLPOOL_Final(md,ctx->md_data); } | 25 | { |
26 | return WHIRLPOOL_Final(md, ctx->md_data); | ||
27 | } | ||
22 | 28 | ||
23 | static const EVP_MD whirlpool_md= | 29 | static const EVP_MD whirlpool_md = { |
24 | { | ||
25 | NID_whirlpool, | 30 | NID_whirlpool, |
26 | 0, | 31 | 0, |
27 | WHIRLPOOL_DIGEST_LENGTH, | 32 | WHIRLPOOL_DIGEST_LENGTH, |
@@ -33,11 +38,12 @@ static const EVP_MD whirlpool_md= | |||
33 | NULL, | 38 | NULL, |
34 | EVP_PKEY_NULL_method, | 39 | EVP_PKEY_NULL_method, |
35 | WHIRLPOOL_BBLOCK/8, | 40 | WHIRLPOOL_BBLOCK/8, |
36 | sizeof(EVP_MD *)+sizeof(WHIRLPOOL_CTX), | 41 | sizeof(EVP_MD *) + sizeof(WHIRLPOOL_CTX), |
37 | }; | 42 | }; |
38 | 43 | ||
39 | const EVP_MD *EVP_whirlpool(void) | 44 | const EVP_MD * |
40 | { | 45 | EVP_whirlpool(void) |
41 | return(&whirlpool_md); | 46 | { |
42 | } | 47 | return (&whirlpool_md); |
48 | } | ||
43 | #endif | 49 | #endif |