GPK8000.
- Original Message -
From: "Erwann ABALEA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 11:25 PM
Subject: Re: How do I construct an instance of RSA using n & e :-)
> It seems you're using a GemSafe card, or at least
Tuesday, March 13, 2001 12:08 PM
Subject: RE: How do I construct an instance of RSA using n & e
> I don't know about reversing the modulus. Are you using PKCS#11 functions
> to retrieve the key components? If so, you shouldn't need to reverse the
> bytes as the values already
> - Original Message -
> From: "Reddie, Steven" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 09, 2001 11:03 AM
> Subject: RE: How do I construct an instance of RSA using n & e
>
>
> > You got it. Call RSA_
You got it. Call RSA_new() to allocate and initialize the RSA struct, the
BN_bin2bn to generate the BIGNUM's. Something along the following lines
should do it:
RSA* rsa = RSA_new();
rsa->n = BN_bin2bn(modulus, modulus_size, NULL);
rsa->e = BN_bin2bn(exponent, exponent_siz
bruce cartland wrote:
>
> I have n (the public modulus) and e (the public exponent). No nicely
> encoded data. Given those two values is there an API set to construct the
> RSA (public key) structure? I'm guessing I'd have to create a BIGNUM first
> then ..? Nothing obvious in rsa.h. Would it be