From 9d4d0def8f80f520a900a26ec081b48bf12e2e83 Mon Sep 17 00:00:00 2001 From: Jeremie Miller Date: Wed, 21 Aug 2013 14:34:47 -0600 Subject: [PATCH] change to uncompressed by default, manually for now --- src/eckey.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eckey.cc b/src/eckey.cc index 78ed39d..0234fd4 100644 --- a/src/eckey.cc +++ b/src/eckey.cc @@ -136,13 +136,13 @@ Handle ECKey::GetPublicKey(Local property, const AccessorInfo &in ECKey *eckey = ObjectWrap::Unwrap(info.Holder()); const EC_GROUP *group = EC_KEY_get0_group(eckey->mKey); const EC_POINT *point = EC_KEY_get0_public_key(eckey->mKey); - unsigned int nReq = EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED, NULL, 0, NULL); + unsigned int nReq = EC_POINT_point2oct(group, point, POINT_CONVERSION_UNCOMPRESSED, NULL, 0, NULL); if (!nReq) { return V8Exception("EC_POINT_point2oct error"); } unsigned char *buf, *buf2; buf = buf2 = (unsigned char *)malloc(nReq); - if (EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED, buf, nReq, NULL) != nReq) { + if (EC_POINT_point2oct(group, point, POINT_CONVERSION_UNCOMPRESSED, buf, nReq, NULL) != nReq) { return V8Exception("EC_POINT_point2oct didn't return correct size"); } HandleScope scope;