openssl
openssl copied to clipboard
Provides get/set for affine coordinates on OpenSSL::PKey::EC::Point
This implements #433
Provides OpenSSL::PKey::EC::Point#affine_coords
and OpenSSL::PKey::EC::Point#affine_coords=
for uncompressed coords taking either an Integer
or a OpenSSL::BN
for set and always returns an array of OpenSSL::BN
for get.
It also implements OpenSSL::PKey::EC::Point#set_compressed_coords
taking an Integer
or a OpenSSL::BN
for the value of X and an Integer
that is directly passed to EC_POINT_set_compressed_coordinates
. I feel like it should be checked for [0..1]
but was simpler to pass the value directly.
“Polyfill” patch is in progress to ensure that we can call get affine for either coordinate space
Get Outlook for iOShttps://aka.ms/o0ukef
From: Kazuki Yamaguchi @.> Sent: Wednesday, April 14, 2021 11:04:34 PM To: ruby/openssl @.> Cc: Rick Mark @.>; Author @.> Subject: Re: [ruby/openssl] Provides get/set for affine coordinates on OpenSSL::PKey::EC::Point (#435)
@rhenium commented on this pull request.
@@ -174,6 +174,11 @@ def find_openssl_library have_func("EVP_PBE_scrypt") have_func("SSL_CTX_set_post_handshake_auth")
+# added in 1.1.1 +have_func("EC_POINT_get_affine_coordinates") +have_func("EC_POINT_set_affine_coordinates") +have_func("EC_POINT_set_compressed_coordinates")
I meant using the GFp and GF2m functions. They should both exist in OpenSSL <= 1.1.0 and LibreSSL.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fruby%2Fopenssl%2Fpull%2F435%23discussion_r613778945&data=04%7C01%7C%7C21d0cb1270304c8e032b08d8ffd457d8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540634760113084%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bRGYD94EAxoL6VjYe0fs31AZ7tionI%2BOJ0nrL2tDgH8%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAA6TW7SPTOCSKT6OWLSBHLTIZ6XFANCNFSM42KZ7OXQ&data=04%7C01%7C%7C21d0cb1270304c8e032b08d8ffd457d8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637540634760123078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FjXPqx%2FkB8PHEyNqJKWfKYxSkd%2BPclgZpDMewpwVqzY%3D&reserved=0.