RE: sign and encryption issue

2014-11-13 Thread bernard Hauzeur
Not an issue In openSSL source code downloads, don't forget to look inside the demo folder. You have examples that illustrate how to encrypt, decrypt and deal with certificates. You can also familiarize yourself with the necessary steps using command line tools, and then look into the comm

Re: Query regarding SSLv23 methods

2014-11-13 Thread Viktor Dukhovni
On Fri, Nov 14, 2014 at 06:26:24AM +, Vaghasiya, Nimesh wrote: [ It is rude to ask user questions on the dev list (moved to Bcc). ] > We are in process of disabling SSLv3 and SSLv2 protocols from all of our > FreeBSD based applications. > > For SSLv23 methods we are setting SSL_OP_NO_SSLv2,

Why Bsymbolic link option does not work in 1.0.0 and later ?

2014-11-13 Thread MyeongSoo Choi
Hi, All I am a designer in Korea. During implementing our product with openssl, I have found very strange symptoms. First, our product(CPU:MIPS, OS:Linux) has one executable binary and it is linked to -lcrypto -lssl to support TLS. Unfortunately, this executable binary has its own MD5_Init,Update

sign and encryption issue

2014-11-13 Thread Amir Reda
dear all i'm trying to use method RSA_private_encrypt () to sign some data (time stamp and random no) and send both data and sign and client certificate to server side. my problem is in server side to verify the time stamp and check its validity i use method RSA_public_decrypt () this function ha

RE: CRYPTO_malloc_init()

2014-11-13 Thread Michael Wojcik
> From: owner-openssl-us...@openssl.org [mailto:owner-openssl- > us...@openssl.org] On Behalf Of Patrice Guérin > Sent: Wednesday, 12 November, 2014 13:28 > > My second question is, in this case, is there problems to have loaded > DLLs that do not match the headers I used for compilation ? Yes.

Re: APIs to generate ECC based public and private key

2014-11-13 Thread Jeffrey Walton
On Thu, Nov 13, 2014 at 11:15 AM, Indtiny S wrote: > Hi, > I need to write code which can generate ECC based public key and private key > using openssl .. > can somebody suggest what apis I should use to generate the keys using > C/C++ ... http://wiki.openssl.org/index.php/Elliptic_Curve_Cryptogr

APIs to generate ECC based public and private key

2014-11-13 Thread Indtiny S
Hi, I need to write code which can generate ECC based public key and private key using openssl .. can somebody suggest what apis I should use to generate the keys using C/C++ ... Thanks & Regards indra

Re: EVP_verify APIs

2014-11-13 Thread Dr. Stephen Henson
On Thu, Nov 13, 2014, Gayathri Manoj wrote: > Hi Stephen, > > I am extracting raw digest by using then below command. > > /* decrypt the content using the RSA pub key */ > elen = RSA_public_decrypt(sLen, sData, ebuf, rsaKey, RSA_PKCS1_PADDING); > > /* comuptes SHA1 hash*/ > SHA1_Init(&ctx); >

Re: Trying to create DER-encoded CMS Encrypted-Data

2014-11-13 Thread Sheldon Hearn
On Wed, Nov 12, 2014 at 6:29 PM, Dr. Stephen Henson wrote: > The OpenSSL version uses indefinite length encoding so you see the construted > encrypted content tag and an OCTET STRING content. If you didn't use streaming > for the OpenSSL version it would've looked similar. Ah, that was the missin