Skip to content

Commit

Permalink
Update common/crypto/sig_private_key.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Vavala <[email protected]>
Signed-off-by: Mic Bowman <[email protected]>
  • Loading branch information
cmickeyb and bvavala committed Jan 8, 2024
1 parent 8466d3a commit b45c7b8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion common/crypto/sig_private_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ ByteArray pcrypto::sig::PrivateKey::SignMessage(const ByteArray& message) const
const BIGNUM* sc = ECDSA_SIG_get0_s(sig.get());
Error::ThrowIfNull(sc, "Crypto Error (SignMessage): bad s value");

// s = BN_dup(sc);
pdo::crypto::BIGNUM_ptr s(BN_dup(sc), BN_free);
Error::ThrowIf<Error::MemoryError>(
s == nullptr, "Crypto Error (SignMessage): Could not dup BIGNUM for s");
Expand Down

0 comments on commit b45c7b8

Please sign in to comment.