Minor additional OpenSSL scouring.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-09-30 10:44:42 +01:00
parent bab853748e
commit b165ead16a
2 changed files with 3 additions and 3 deletions

View File

@ -95,14 +95,14 @@ public:
//! Check whether the public key corresponding to this private key is (to be) compressed. //! Check whether the public key corresponding to this private key is (to be) compressed.
bool IsCompressed() const { return fCompressed; } bool IsCompressed() const { return fCompressed; }
//! Initialize from a CPrivKey (serialized OpenSSL private key data). //! Initialize from a CPrivKey (serialized OpenSSL-format private key data).
bool SetPrivKey(const CPrivKey& vchPrivKey, bool fCompressed); bool SetPrivKey(const CPrivKey& vchPrivKey, bool fCompressed);
//! Generate a new private key using a cryptographic PRNG. //! Generate a new private key using a cryptographic PRNG.
void MakeNewKey(bool fCompressed); void MakeNewKey(bool fCompressed);
/** /**
* Convert the private key to a CPrivKey (serialized OpenSSL private key data). * Convert the private key to a CPrivKey (serialized OpenSSL-format private key data).
* This is expensive. * This is expensive.
*/ */
CPrivKey GetPrivKey() const; CPrivKey GetPrivKey() const;

View File

@ -14,7 +14,7 @@ BOOST_AUTO_TEST_CASE(basic_sanity)
{ {
BOOST_CHECK_MESSAGE(glibc_sanity_test() == true, "libc sanity test"); BOOST_CHECK_MESSAGE(glibc_sanity_test() == true, "libc sanity test");
BOOST_CHECK_MESSAGE(glibcxx_sanity_test() == true, "stdlib sanity test"); BOOST_CHECK_MESSAGE(glibcxx_sanity_test() == true, "stdlib sanity test");
BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "openssl ECC test"); BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "ECC sanity test");
} }
BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END()