[openssl-users] Creating a Json Web Key

Matt Caswell matt at openssl.org
Thu Feb 8 19:45:31 UTC 2018



On 08/02/18 19:42, Angus Robertson - Magenta Systems Ltd wrote:
>>> I've not yet found any helpers for getting n and e any other way. 
>> RSA_get0_key()?
> 
> Perfect, should have been able to find that myself...
> 
> If there an equivalent for EC_GROUP to get x and y? 

Do you mean for an EC_POINT? If so then:

EC_POINT_get_affine_coordinates_GFp() or
EC_POINT_get_affine_coordinates_GF2m() depending on whether you are
using a prime or binary field based curve.

Matt



More information about the openssl-users mailing list