You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public_key_oct = buffer.read_string
begin
key = OpenSSL::PKey::EC.new(OpenSSL::PKey::EC::CurveNameAlias[curve_name_in_key])
group = key.group
point = OpenSSL::PKey::EC::Point.new(group, OpenSSL::BN.new(public_key_oct, 2))
key.public_key = point
return key
rescue OpenSSL::PKey::ECError
raise NotImplementedError, "unsupported key type `#{type}'"
end
Activity
sergiodj commentedon Mar 11, 2022
Coincidentally or not, I've been working on this exact part of the code and come up with the following solution:
I'm not entirely sure whether this is the right solution, but it seems to be and it does fix the failing tests.
Add support for OpenSSL 3.0
julik commentedon Dec 3, 2022
@sergiodj thank you so much for this!
DimaD commentedon Dec 30, 2022
@sergiodj thank you for the code! You saved my evening of bashing my head against the weird #public_key APIs