diff options
Diffstat (limited to 'crypto/sha/sha256.c')
-rw-r--r-- | crypto/sha/sha256.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c index 0ddacbad..58f7c42c 100644 --- a/crypto/sha/sha256.c +++ b/crypto/sha/sha256.c @@ -104,8 +104,8 @@ uint8_t *SHA224(const uint8_t *data, size_t len, uint8_t *out) { out = buf; } SHA224_Init(&ctx); - SHA256_Update(&ctx, data, len); - SHA256_Final(out, &ctx); + SHA224_Update(&ctx, data, len); + SHA224_Final(out, &ctx); OPENSSL_cleanse(&ctx, sizeof(ctx)); return out; } |