Re: api for RSA

2006-05-15 Thread Marek Marcola
On Mon, 2006-05-15 at 11:06 -0700, [EMAIL PROTECTED] wrote: > plain text document attachment (Re:) > Actually i did try base 64 decoding , only to get nothin in the > file..Sorry if i seem extremely ignorant(I am!)..i just started to > work on these, cant find tutorials and the only source i have i

Re: api for RSA

2006-05-15 Thread Sudharsan Rangarajan
Actually i did try base 64 decoding , only to get nothin in the file..Sorry if i seem extremely ignorant(I am!)..i just started to work on these, cant find tutorials and the only source i have is some man page which doesnt help me much. Heres what i did. I pasted this to a file AQO2SoMgtzHArqduMT

Re: api for RSA

2006-05-15 Thread Sudharsan Rangarajan
Yes..im tryin this out now...If theres a easier way out..i would take it...why cant these pple use a single format?Saves everyone trouble and time Thanks, Sudharsan On 5/15/06, Marek Marcola <[EMAIL PROTECTED]> wrote: Hello, > I dont really need to care about the private key. I need to know th

Re: api for RSA

2006-05-15 Thread Marek Marcola
Hello, > I dont really need to care about the private key. I need to know the > format of the public key of DNSSec, cause i am gonna use openSSL to > verify the SIG records signed using a KEY record. Second file generated with dnssec-keygen is dns file record for example: xyz. IN DNSKEY 2

Re: api for RSA

2006-05-15 Thread Victor Duchovni
On Mon, May 15, 2006 at 09:30:39AM -0700, Sudharsan Rangarajan wrote: > Hi Marek, > I dont really need to care about the private key. I need to know the > format of the public key of DNSSec, cause i am gonna use openSSL to > verify the SIG records signed using a KEY record. >From the rsa(1) manpa

Re: api for RSA

2006-05-15 Thread Sudharsan Rangarajan
Hi Marek, I dont really need to care about the private key. I need to know the format of the public key of DNSSec, cause i am gonna use openSSL to verify the SIG records signed using a KEY record. Thanks, Sudharsan On 5/15/06, Marek Marcola <[EMAIL PROTECTED]> wrote: Hello, > I have antoher iss

Re: api for RSA

2006-05-15 Thread Sudharsan Rangarajan
Hi Brad, Nevermind. I figured it out myself..Its just that im new here and openssls documentation seems to less! Thanks, Sudharsan On 5/15/06, Brad Hards <[EMAIL PROTECTED]> wrote: On Monday 15 May 2006 17:44 pm, you wrote: > Hi all, > I have a quick question. Suppose i am doing RSA crypto. I c

Re: api for RSA

2006-05-15 Thread Sudharsan Rangarajan
Hi Marek, Thanks for the sample code. Whats this file format of DNSSec called?The public key looked like PEM...is it? Thanks, Sudharsan On 5/15/06, Marek Marcola <[EMAIL PROTECTED]> wrote: Hello, > I have antoher issue. I used Bind and dnssec-keygen. The key formats > produced by dnssec-keygen

Re: api for RSA

2006-05-15 Thread Sudharsan Rangarajan
Hi Bradm This is what i mean. Suppose ive been given a file containing a RSA private key. I need to read it in somehow to fill this structure up , so that i can use it for decryption/signing. I cant find any function to do this. struct { BIGNUM *n; // public modulus

Re: api for RSA

2006-05-15 Thread Marek Marcola
Hello, > I have antoher issue. I used Bind and dnssec-keygen. The key formats > produced by dnssec-keygen seem incompatible with that of Openssls > command line interface(atleast the private key, i tried to add the > --START PUBLIC key--- thingie to the public key file produced by > dnssec-keygen).

Re: api for RSA

2006-05-15 Thread Brad Hards
On Monday 15 May 2006 17:44 pm, you wrote: > Hi all, > I have a quick question. Suppose i am doing RSA crypto. I cant seem to > figure out how i can choose a particular private key/public key. The > only api that seems to be provided is rsa_generate_key and the man > page says use the given api to