aboutsummaryrefslogtreecommitdiffstats
path: root/crypto.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2014-11-04 17:54:46 +0800
committersubtly <subtly@users.noreply.github.com>2014-11-04 17:54:46 +0800
commit7562f8fff229abd34448ca14e78a3dff45008eff (patch)
tree59634db24228536d6776599b78d075782bfeb005 /crypto.cpp
parent2fe6c6c4722fd5546b713a5bb8029957bcfcaae9 (diff)
downloaddexon-solidity-7562f8fff229abd34448ca14e78a3dff45008eff.tar.gz
dexon-solidity-7562f8fff229abd34448ca14e78a3dff45008eff.tar.zst
dexon-solidity-7562f8fff229abd34448ca14e78a3dff45008eff.zip
codereview fixes
Diffstat (limited to 'crypto.cpp')
-rw-r--r--crypto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto.cpp b/crypto.cpp
index ab384a03..82950f09 100644
--- a/crypto.cpp
+++ b/crypto.cpp
@@ -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));