From 2d1dd244a6714687c97736a809e9dd31f506306c Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 25 Feb 2010 02:01:06 +0000 Subject: Convert PointGFp::get_affine_{x,y} to return just the BigInt value --- src/pubkey/ecdsa/ecdsa_op.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pubkey/ecdsa') diff --git a/src/pubkey/ecdsa/ecdsa_op.cpp b/src/pubkey/ecdsa/ecdsa_op.cpp index d37809962..0fb9fc564 100644 --- a/src/pubkey/ecdsa/ecdsa_op.cpp +++ b/src/pubkey/ecdsa/ecdsa_op.cpp @@ -1,7 +1,7 @@ /* * ECDSA Operation * (C) 2007 FlexSecure GmbH -* 2008-2009 Jack Lloyd +* 2008-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -44,7 +44,7 @@ bool Default_ECDSA_Op::verify(const byte msg[], u32bit msg_len, if(R.is_zero()) return false; - BigInt x = R.get_affine_x().get_value(); + BigInt x = R.get_affine_x(); return (x % n == r); } @@ -64,7 +64,7 @@ SecureVector Default_ECDSA_Op::sign(const byte msg[], u32bit msg_len, PointGFp k_times_P = dom_pars.get_base_point() * k; k_times_P.check_invariants(); - BigInt r = k_times_P.get_affine_x().get_value() % n; + BigInt r = k_times_P.get_affine_x() % n; if(r == 0) throw Internal_Error("Default_ECDSA_Op::sign: r was zero"); -- cgit v1.2.3