aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-01-13 13:11:11 -0500
committerJack Lloyd <[email protected]>2019-01-13 13:11:11 -0500
commit9e4ee7dbeb6e83c470bfa99196e1492fdeaa4d83 (patch)
treec1dd9e7167ea59aff1e5bea6d0c4c303b6b9c820 /src/lib/pubkey
parentf4246cd7cc1a9f4c4f5ff0cd891c85f5a0784603 (diff)
Remove trailing whitespace
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/ecies/ecies.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pubkey/ecies/ecies.cpp b/src/lib/pubkey/ecies/ecies.cpp
index 864e0b72a..54055de7a 100644
--- a/src/lib/pubkey/ecies/ecies.cpp
+++ b/src/lib/pubkey/ecies/ecies.cpp
@@ -240,7 +240,7 @@ ECIES_Encryptor::ECIES_Encryptor(const PK_Key_Agreement_Key& private_key,
{
if(ecies_params.compression_type() != PointGFp::UNCOMPRESSED)
{
- // ISO 18033: step d
+ // ISO 18033: step d
// convert only if necessary; m_eph_public_key_bin has been initialized with the uncompressed format
m_eph_public_key_bin = m_params.domain().OS2ECP(m_eph_public_key_bin).encode(ecies_params.compression_type());
}
@@ -372,7 +372,7 @@ secure_vector<uint8_t> ECIES_Decryptor::do_decrypt(uint8_t& valid_mask, const ui
throw Decoding_Error("ECIES decryption: received public key is not on the curve");
}
- // ISO 18033: step e (and step f because get_affine_x (called by ECDH_KA_Operation::raw_agree)
+ // ISO 18033: step e (and step f because get_affine_x (called by ECDH_KA_Operation::raw_agree)
// throws Illegal_Transformation if the point is zero)
const SymmetricKey secret_key = m_ka.derive_secret(other_public_key_bin, other_public_key);
@@ -395,7 +395,7 @@ secure_vector<uint8_t> ECIES_Decryptor::do_decrypt(uint8_t& valid_mask, const ui
{
m_cipher->start(m_iv.bits_of());
}
-
+
try
{
// the decryption can fail: