Fixed constness of ecc::private_key call
This commit is contained in:
parent
d5771acd3d
commit
79cd431503
2 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ namespace fc {
|
|||
* Given a public key, calculatse a 512 bit shared secret between that
|
||||
* key and this private key.
|
||||
*/
|
||||
fc::sha512 get_shared_secret( const public_key& pub );
|
||||
fc::sha512 get_shared_secret( const public_key& pub )const;
|
||||
|
||||
signature sign( const fc::sha256& digest );
|
||||
compact_signature sign_compact( const fc::sha256& digest )const;
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ struct ssl_bignum
|
|||
#endif
|
||||
}
|
||||
|
||||
fc::sha512 private_key::get_shared_secret( const public_key& other )
|
||||
fc::sha512 private_key::get_shared_secret( const public_key& other )const
|
||||
{
|
||||
fc::sha512 buf;
|
||||
ECDH_compute_key( (unsigned char*)&buf, sizeof(buf), EC_KEY_get0_public_key(other.my->_key), my->_key, ecies_key_derivation );
|
||||
|
|
|
|||
Loading…
Reference in a new issue