RE: RSA publlic/private key returnig to calling function

2011-08-05 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of krishnamurthy santhanam > Sent: Friday, 05 August, 2011 08:09 > I have to write back rsa public/private key to calling function, > i have tried below program using i2d_RSAPrivatekey(). > My application will not accept R

Re: [openssl-users] How to do a PKCS#10 in embedded systems

2011-08-05 Thread Dr. Stephen Henson
On Fri, Aug 05, 2011, Erwann ABALEA wrote: > Bonjour Giordano > > Let's start with your example file: example.der. > > Extract the contained public key: > openssl req -pubkey -inform D -in example.der -noout > example.key > > Now we'll extract the signature block. > > Start by ASN1-parse you

Re: [openssl-users] How to do a PKCS#10 in embedded systems

2011-08-05 Thread Erwann ABALEA
Bonjour Giordano Hodie Non. Aug. MMXI, Giordano Bruno scripsit: > I tried your command, but I got an error: > > C:\OpenSSL-Win32\bin>openssl rsautl -in example.der.sig -inkey > example.key -pubin -verify -hexdump –raw > Loading 'screen' into random state - done > unable to load Public Key You fi

Re: [openssl-users] How to do a PKCS#10 in embedded systems

2011-08-05 Thread Giordano Bruno
Bounjour Erwann, I tried your command, but I got an error: C:\OpenSSL-Win32\bin>openssl rsautl -in example.der.sig -inkey example.key -pubin -verify -hexdump –raw Loading 'screen' into random state - done unable to load Public Key I read the PKCS#1, PKCS#8, PKCS#7 and PKCS#10 and now I have an b

RSA publlic/private key returnig to calling function

2011-08-05 Thread krishnamurthy santhanam
Hi, I have to write back rsa public/private key to calling function, i have tried below program using i2d_RSAPrivatekey(). My application will not accept RSA * structure, it will accept only char or strings to be return as s key. #include #include #include typedef struct { unsigned cha

Issue on EVP_CIPHER_CTX

2011-08-05 Thread Andrea Saracino
Hello to everyone, I'm finding some issues using the symmetric encryption and decryption routines EVP_encrypt/decrypt. Here is the code of the function that I'm calling: int cipher :: symm_encrypt(){ EVP_CIPHER_CTX_init(symm_ctx); init_symm_cipher(symm_encryption_alg); int cipher_text_length