mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-29 16:04:32 +00:00
openssl 1.1 support
This commit is contained in:
parent
5e643aeac9
commit
deaf259120
@ -96,11 +96,10 @@ public:
|
||||
}
|
||||
|
||||
void SetSecretBytes(const unsigned char vch[32]) {
|
||||
BIGNUM bn;
|
||||
BN_init(&bn);
|
||||
assert(BN_bin2bn(vch, 32, &bn));
|
||||
assert(EC_KEY_regenerate_key(pkey, &bn));
|
||||
BN_clear_free(&bn);
|
||||
BIGNUM * bn = BN_new ();
|
||||
assert(BN_bin2bn(vch, 32, bn));
|
||||
assert(EC_KEY_regenerate_key(pkey, bn));
|
||||
BN_clear_free(bn);
|
||||
}
|
||||
|
||||
void GetPrivKey(CPrivKey &privkey, bool fCompressed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user