From 79cd431503189531c84c3e39ce43583ee8c2657d Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 11 Jul 2013 01:26:54 -0400 Subject: [PATCH] Fixed constness of ecc::private_key call --- include/fc/crypto/elliptic.hpp | 2 +- src/crypto/elliptic.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fc/crypto/elliptic.hpp b/include/fc/crypto/elliptic.hpp index b75ef5d..a9bc007 100644 --- a/include/fc/crypto/elliptic.hpp +++ b/include/fc/crypto/elliptic.hpp @@ -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; diff --git a/src/crypto/elliptic.cpp b/src/crypto/elliptic.cpp index 4351b05..23f5b37 100644 --- a/src/crypto/elliptic.cpp +++ b/src/crypto/elliptic.cpp @@ -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 );