Re: How do I construct an instance of RSA using n & e :-)

2001-03-16 Thread bruce cartland
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

Re: How do I construct an instance of RSA using n & e

2001-03-14 Thread bruce cartland
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

RE: How do I construct an instance of RSA using n & e

2001-03-12 Thread Reddie, Steven
> - 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_

RE: How do I construct an instance of RSA using n & e

2001-03-08 Thread Reddie, Steven
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

Re: How do I construct an instance of RSA using n & e

2001-03-08 Thread Dr S N Henson
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