Skip to content

Commit

Permalink
Add ec_key wrapper to fc's openssl.h
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Apr 18, 2018
1 parent e17fc27 commit 60d92bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions libraries/fc/include/fc/crypto/openssl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace fc
SSL_TYPE(ecdsa_sig, ECDSA_SIG, ECDSA_SIG_free)
SSL_TYPE(bn_ctx, BN_CTX, BN_CTX_free)
SSL_TYPE(evp_cipher_ctx, EVP_CIPHER_CTX, EVP_CIPHER_CTX_free )
SSL_TYPE(ec_key, EC_KEY, EC_KEY_free)

/** allocates a bignum by default.. */
struct ssl_bignum : public ssl_wrapper<BIGNUM>
Expand Down
2 changes: 0 additions & 2 deletions programs/eosio-applesedemo/r1_signature_compactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ static int ECDSA_SIG_recover_key_GFp(EC_KEY *eckey, ECDSA_SIG *ecsig, const unsi
return ret;
}

SSL_TYPE(ec_key, EC_KEY, EC_KEY_free)

fc::crypto::r1::compact_signature compact_r1(fc::crypto::r1::public_key_data& pubkey, fc::ecdsa_sig& sig, fc::sha256& digest) {
fc::crypto::r1::compact_signature csig;
ec_key key = EC_KEY_new_by_curve_name( NID_X9_62_prime256v1 );
Expand Down

0 comments on commit 60d92bb

Please sign in to comment.