diff options
author | subtly <subtly@users.noreply.github.com> | 2014-11-04 17:54:46 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2014-11-04 17:54:46 +0800 |
commit | 7562f8fff229abd34448ca14e78a3dff45008eff (patch) | |
tree | 59634db24228536d6776599b78d075782bfeb005 /crypto.cpp | |
parent | 2fe6c6c4722fd5546b713a5bb8029957bcfcaae9 (diff) | |
download | dexon-solidity-7562f8fff229abd34448ca14e78a3dff45008eff.tar.gz dexon-solidity-7562f8fff229abd34448ca14e78a3dff45008eff.tar.zst dexon-solidity-7562f8fff229abd34448ca14e78a3dff45008eff.zip |
codereview fixes
Diffstat (limited to 'crypto.cpp')
-rw-r--r-- | crypto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -138,7 +138,7 @@ BOOST_AUTO_TEST_CASE(cryptopp_cryptopp_ecdsav) Signature sig; r.Encode(sig.data(), 32); - s.Encode(sig.data()+32, 32); + s.Encode(sig.data() + 32, 32); sig[64] = recid; Public p = dev::recover(sig, he); @@ -188,7 +188,7 @@ BOOST_AUTO_TEST_CASE(cryptopp_ecdsa_sipaseckp256k1) pp::initializeDLScheme(key.pub(), verifier); Signature sigppraw; r.Encode(sigppraw.data(), 32); - s.Encode(sigppraw.data()+32, 32); + s.Encode(sigppraw.data() + 32, 32); BOOST_REQUIRE(verifier.VerifyMessage(m.data(), m.size(), sigppraw.data(), 64)); BOOST_REQUIRE(crypto::verify(key.pub(), sigppraw, bytesConstRef(&m))); BOOST_REQUIRE(dev::verify(key.pub(), sigppraw, hm)); |