diff options
author | Jack Lloyd <[email protected]> | 2018-03-08 18:44:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-08 18:44:32 -0500 |
commit | 87085b1c844555c1516dd8a930847aa3972b134e (patch) | |
tree | 2768c8dbcbecfa0cd16a80ed7f4feb2b8bc64218 /src/lib/pubkey/eckcdsa/eckcdsa.cpp | |
parent | af4aad7db642607fbf4e07b2f8d7c97865397e94 (diff) |
Use blinded_base_point_multiply_x in the various signature schemes
Diffstat (limited to 'src/lib/pubkey/eckcdsa/eckcdsa.cpp')
-rw-r--r-- | src/lib/pubkey/eckcdsa/eckcdsa.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/pubkey/eckcdsa/eckcdsa.cpp b/src/lib/pubkey/eckcdsa/eckcdsa.cpp index be721a6b6..f9d9b2f60 100644 --- a/src/lib/pubkey/eckcdsa/eckcdsa.cpp +++ b/src/lib/pubkey/eckcdsa/eckcdsa.cpp @@ -77,8 +77,7 @@ ECKCDSA_Signature_Operation::raw_sign(const uint8_t msg[], size_t, RandomNumberGenerator& rng) { const BigInt k = BigInt::random_integer(rng, 1, m_group.get_order()); - const PointGFp k_times_P = m_group.blinded_base_point_multiply(k, rng, m_ws); - const BigInt k_times_P_x = k_times_P.get_affine_x(); + const BigInt k_times_P_x = m_group.blinded_base_point_multiply_x(k, rng, m_ws); secure_vector<uint8_t> to_be_hashed(k_times_P_x.bytes()); k_times_P_x.binary_encode(to_be_hashed.data()); |