On Sat, Jun 7, 2014 at 7:30 PM, Tim Hudson <t...@cryptsoft.com> wrote:
> On 8/06/2014 8:25 AM, Jeffrey Walton wrote:
>
> I've got n,e,d and loaded them into a RSA*. When I call RSA_check_key,
> I get an 0x407b093 error:
>
>     $ openssl errstr 0x407b093
>     error:0407B093:rsa routines:RSA_check_key:value missing
>
> How do I instruct he library to solve for the missing parameters so
> the key can be verified?
>
>
> What are you actually trying to do there in terms of your actual context of
> usage?
Validate the key - nothing more at this point. If the key is not
valid, then it can't be used.

> RSA_check_key is about checking that an RSA private key component values are
> mathematically consistent with respect to each other - i.e. it is about
> checking all the components are correct.
Right. e and n are co-prime, e*d === 1 mod n, etc. The other values
are just speedup and not required.

> It isn't about doing anything
> other than that and without n,e,d and p and q there isn't much it is meant
> to do.
OK, does the library provide the CRT solver (I don't believe so, but I
thought I would ask).

> Why are you missing p and q in your particular context?
http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-26#appendix-A.2
only provides {n,e,d}. Its pretty common in some places to only get
{e,d} or {d,n}.

Jeff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to