Re: Quick question on verify a certificate

2012-03-27 Thread Akash Deo
Hi Ricky, Please have a look at following tutorial link http://etutorials.org/Programming/secure+programming/Chapter+10.+Public+Key+Infrastructure/10.5+Performing+X.509+Certificate+Verification+with+OpenSSL/ Above link could be of your help. Regards, Akash On Thu, Mar 22, 2012 at 6:44 PM, ric

Re: How encrypt long string RSA

2012-03-27 Thread Wim Lewis
On 27 Mar 2012, at 3:01 AM, Frater wrote: > Where is any working example to encrypt file or long string using RSA Public > or private key. > in demos/maurice is example 1 but using certificate not privkey. The code in demos/maurice reads a certificate and extracts an EVP_PKEY from it, which is

Re: How encrypt long string RSA

2012-03-27 Thread Peter Waltenberg
Traditionally, you handle this by encrypting a fixed length symetric key using RSA (i.e. an AES key) and use that key to encrypt any serious amounts of data. Peter From: Frater To: openssl-dev@openssl.org Date: 27/03/2012 19:53 Subject:How encrypt long string RSA Sent by:

Use of "bool" as variable / argument in tasn_prn1.c

2012-03-27 Thread Paul Suhler
Hi, everyone. In the process of moving to a new compiler, we learned that OpenSSL 1.0.1 crypto\asn1\tasn_prn1.c has one use of "bool" as a function argument (in asn1_print_boolean_ctx()) and one as a local variable (in asn1_primitive_print()). Since bool is now seen as a defined type, the com

RE: ENGINE reference leak using EVP_Digest*

2012-03-27 Thread Erik Tkal
In addition, I find that EVP_DigestInit_ex ends up bumping the reference count *twice*... In eng_table.c: /* Try to initialise the ENGINE? */ if((ret->funct_ref > 0) || !(table_flags & ENGINE_TABLE_FLAG_NOINIT)) initres = engine_unlocked_init(ret); else

RE: ENGINE reference leak using EVP_Digest*

2012-03-27 Thread Erik Tkal
BTW, this is with OpenSSL 1.0.1; I did not try an older version. Sent: Tuesday, March 27, 2012 10:20 AM To: openssl-dev@openssl.org Subject: ENGINE reference leak using EVP_Digest* I have some code that uses the following sequence of calls (e.g.): EVP_MD_CTX ctx; EVP_MD_CTX_init(&ctx); E

ENGINE reference leak using EVP_Digest*

2012-03-27 Thread Erik Tkal
I have some code that uses the following sequence of calls (e.g.): EVP_MD_CTX ctx; EVP_MD_CTX_init(&ctx); EVP_DigestInit_ex(&ctx, EVP_sha1, NULL); EVP_DigestUpdate(&ctx, pData, nSize); EVP_DigestFinal_ex(&ctx, pOut, NULL); EVP_DigestInit_ex(&ctx, EVP_sha1, NULL); EVP_DigestUpdate(&ctx,

How encrypt long string RSA

2012-03-27 Thread Frater
Where is any working example to encrypt file or long string using RSA Public or private key. in demos/maurice is example 1 but using certificate not privkey. __ OpenSSL Project http://www.openssl.or

[openssl.org #2774] OpenSSL 1.0.1 doesn't compile when configured with "no-tls1"

2012-03-27 Thread nanard via RT
I reproduce the problem on my linux amd64 machine. $ cd openssl-1.0.1 $ ./config no-tls1 $ make depend $ make [...] gcc -I../crypto -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_