aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-05-31 12:17:27 +0000
committerlloyd <[email protected]>2011-05-31 12:17:27 +0000
commit5f902124596c8fad246481cd6682ace766f04c08 (patch)
tree99866a451d784ac4d3034e9b3d7d46ff40038022 /src
parent7cc2a0e77b725cadcff148a26d1a10ebf22d3596 (diff)
PointGFp::get_affine_{x,y} doesn't return a reference
Diffstat (limited to 'src')
-rw-r--r--src/pubkey/gost_3410/gost_3410.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey/gost_3410/gost_3410.cpp b/src/pubkey/gost_3410/gost_3410.cpp
index 97e0f4a5e..100986ccd 100644
--- a/src/pubkey/gost_3410/gost_3410.cpp
+++ b/src/pubkey/gost_3410/gost_3410.cpp
@@ -17,8 +17,8 @@ namespace Botan {
MemoryVector<byte> GOST_3410_PublicKey::x509_subject_public_key() const
{
// Trust CryptoPro to come up with something obnoxious
- const BigInt& x = public_point().get_affine_x();
- const BigInt& y = public_point().get_affine_y();
+ const BigInt x = public_point().get_affine_x();
+ const BigInt y = public_point().get_affine_y();
size_t part_size = std::max(x.bytes(), y.bytes());