mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
src/crypto/openssl/hash.cpp: in sha256() should have out->data as input the second time.
This commit is contained in:
parent
f0d3f355cc
commit
18ccb1f8d2
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ sha256_t* sha256(const unsigned char *data, std::size_t len, sha256_t* out) {
|
|||
|
||||
sha256_t* sha256d(const unsigned char *data, std::size_t len, sha256_t* out) {
|
||||
SHA256(data, len, out->data);
|
||||
return (sha256_t *) SHA256(data, 32, out->data);
|
||||
return (sha256_t *) SHA256(out->data, 32, out->data);
|
||||
}
|
||||
|
||||
ripemd160_t* ripemd160(const unsigned char *data, std::size_t len, ripemd160_t* out) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue