summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorKarel Miko <karel.miko@gmail.com>2018-04-11 13:03:55 +0200
committerKarel Miko <karel.miko@gmail.com>2018-04-11 13:03:55 +0200
commit4324447058c6550955cebd9336ef1ad64be53dde (patch)
tree0d35b1402dbf7ba9722812d11dbe7f297dbe8c7e /inc
parent2a90bfe087b2c1c1b0396a48dd371fc11f33927c (diff)
polish ECC
Diffstat (limited to 'inc')
-rw-r--r--inc/CryptX_PK_ECC.xs.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/CryptX_PK_ECC.xs.inc b/inc/CryptX_PK_ECC.xs.inc
index 751b7d83..ce6cb2ec 100644
--- a/inc/CryptX_PK_ECC.xs.inc
+++ b/inc/CryptX_PK_ECC.xs.inc
@@ -202,13 +202,12 @@ key2hash(Crypt::PK::ECC self)
not_used = hv_store(rv_hash, "curve_oid", 9, oid, 0);
/* curve name -> "curve_name" */
- if ((h = get_hv("Crypt::PK::ECC::curve2ltc", 0)) != NULL) {
+ if ((h = get_hv("Crypt::PK::ECC::curve_oid2name", 0)) != NULL) {
pref = hv_fetch(h, oid_ptr, (U32)strlen(oid_ptr), 0);
if (pref) {
cname_ptr = SvPV(*pref, cname_len);
cname = newSVpv(cname_ptr, cname_len);
cname_ptr = SvPVX(cname);
- for (i=0; i<cname_len && cname_ptr[i]>0; i++) cname_ptr[i] = toLOWER(cname_ptr[i]);
not_used = hv_store(rv_hash, "curve_name", 10, cname, 0);
}
}