diff options
author | lloyd <[email protected]> | 2008-10-12 05:47:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-12 05:47:23 +0000 |
commit | 9060e341de5c3b8c98c0250dac2211d15e1cd252 (patch) | |
tree | 07b9b3b9635ffa6f6de2327908bc1e760d5fd598 /src/math/gfpmath/curve_gfp.cpp | |
parent | b90900b6dc19d709b71e87b9afc02b5877896d5c (diff) |
Modify CurveGFp::get_{a,b} to return a const reference instead of a copy
Diffstat (limited to 'src/math/gfpmath/curve_gfp.cpp')
-rw-r--r-- | src/math/gfpmath/curve_gfp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/gfpmath/curve_gfp.cpp b/src/math/gfpmath/curve_gfp.cpp index 8b1ccbf94..4b32e7095 100644 --- a/src/math/gfpmath/curve_gfp.cpp +++ b/src/math/gfpmath/curve_gfp.cpp @@ -91,17 +91,17 @@ const CurveGFp& CurveGFp::operator=(const CurveGFp& other) } // getters -GFpElement const CurveGFp::get_a() const +const GFpElement& CurveGFp::get_a() const { return mA; } -GFpElement const CurveGFp::get_b() const +const GFpElement& CurveGFp::get_b() const { return mB; } -BigInt const CurveGFp::get_p() const +const BigInt CurveGFp::get_p() const { assert(mp_mod.get() != 0); return mp_mod->get_p(); |