aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-11-02 12:59:38 +0000
committerlloyd <[email protected]>2013-11-02 12:59:38 +0000
commitc9796e33c31b64a9367b9df52a3aede092bc93b3 (patch)
treee6669913dea357e5af618ecb154fd7764e4fe1a6 /src/pubkey
parentdfa79c1b61a94a5284aedf1af84f33dd15872fa1 (diff)
Fix encoding error in ECC group encoding, fix by fxdupont on github
Diffstat (limited to 'src/pubkey')
-rw-r--r--src/pubkey/ec_group/ec_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey/ec_group/ec_group.cpp b/src/pubkey/ec_group/ec_group.cpp
index fe4fae885..1365ab633 100644
--- a/src/pubkey/ec_group/ec_group.cpp
+++ b/src/pubkey/ec_group/ec_group.cpp
@@ -121,7 +121,7 @@ EC_Group::DER_encode(EC_Group_Encoding form) const
.get_contents();
}
else if(form == EC_DOMPAR_ENC_OID)
- return DER_Encoder().encode(get_oid()).get_contents();
+ return DER_Encoder().encode(OID(get_oid())).get_contents();
else if(form == EC_DOMPAR_ENC_IMPLICITCA)
return DER_Encoder().encode_null().get_contents();
else