diff options
Diffstat (limited to 'src/lib/libcrypto/evp/m_sha.c')
| -rw-r--r-- | src/lib/libcrypto/evp/m_sha.c | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/src/lib/libcrypto/evp/m_sha.c b/src/lib/libcrypto/evp/m_sha.c index d2d275f833..1b82e61c26 100644 --- a/src/lib/libcrypto/evp/m_sha.c +++ b/src/lib/libcrypto/evp/m_sha.c | |||
| @@ -69,17 +69,20 @@ | |||
| 69 | #endif | 69 | #endif | 
| 70 | #include "evp_locl.h" | 70 | #include "evp_locl.h" | 
| 71 | 71 | ||
| 72 | static int init(EVP_MD_CTX *ctx) | 72 | static int | 
| 73 | init(EVP_MD_CTX *ctx) | ||
| 73 | { | 74 | { | 
| 74 | return SHA_Init(ctx->md_data); | 75 | return SHA_Init(ctx->md_data); | 
| 75 | } | 76 | } | 
| 76 | 77 | ||
| 77 | static int update(EVP_MD_CTX *ctx, const void *data, size_t count) | 78 | static int | 
| 79 | update(EVP_MD_CTX *ctx, const void *data, size_t count) | ||
| 78 | { | 80 | { | 
| 79 | return SHA_Update(ctx->md_data, data, count); | 81 | return SHA_Update(ctx->md_data, data, count); | 
| 80 | } | 82 | } | 
| 81 | 83 | ||
| 82 | static int final(EVP_MD_CTX *ctx, unsigned char *md) | 84 | static int | 
| 85 | final(EVP_MD_CTX *ctx, unsigned char *md) | ||
| 83 | { | 86 | { | 
| 84 | return SHA_Final(md, ctx->md_data); | 87 | return SHA_Final(md, ctx->md_data); | 
| 85 | } | 88 | } | 
