RES: Generating rsakey using openssl as lib

2012-10-18 Thread Leonardo Laface de Almeida
>Exactly! Welcome to the club. A good number of the products one trials or >purchases over the years install their own copy of the OpenSSL DLLs >*somewhere*. Use the Windows Start search function and key in ssleay32.dll >and/or libeay32.dll and see how many hits you get! You could start by >uninsta

RE: Generating rsakey using openssl as lib

2012-10-18 Thread Charles Mills
-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Leonardo Laface de Almeida Sent: Thursday, October 18, 2012 5:57 AM To: openssl-users@openssl.org Subject: RES: Generating rsakey using openssl as lib Hi, >That doesn't prove it's finding the *correct*

RES: Generating rsakey using openssl as lib

2012-10-18 Thread Leonardo Laface de Almeida
Hi, >That doesn't prove it's finding the *correct* openssl. Most (and >usual) kinds of SSL connections work on older versions. Do you get >TLSv1.1 or TLSv1.2 connections, or at least request them properly >even if your server doesn't agree? That would prove version 1.0.1. My lib is server for

RE: Generating rsakey using openssl as lib

2012-10-17 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Leonardo Laface de Almeida > Sent: Tuesday, 16 October, 2012 17:06 > >Does your library dynamically-link the openssl libs, > >or statically embed them (while being dynamic itself)? > > library dynamically-link the openssl libs. > My lib alread

RES: Generating rsakey using openssl as lib

2012-10-16 Thread Leonardo Laface de Almeida
Hi, Dave. The answers are bellow. >> I was following the main function in genpkey.c file and >> following the same >> sequence for generating key pair. I've got some executing >> erros that took me >> some hours to get it. I still have the problem and I think it >> might be some >> errors in

RE: Generating rsakey using openssl as lib

2012-10-16 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Leonardo Laface de Almeida > Sent: Monday, 15 October, 2012 15:14 > I was following the main function in genpkey.c file and > following the same > sequence for generating key pair. I've got some executing > erros that took me > some hours to g

RES: Generating rsakey using openssl as lib

2012-10-15 Thread Leonardo Laface de Almeida
Hi all, Just if anybody needs it, this is working: RSA *rsa = NULL; const EVP_CIPHER *enc=NULL; unsigned long f4=RSA_F4; char outfile[20]; char passout[10]; BIO *bio = NULL; int num; num = 1024; memcpy(&passout[0],"teste",5); passout[5] = '\0'; memcpy(&ou

RES: Generating rsakey using openssl as lib

2012-10-15 Thread Leonardo Laface de Almeida
Thanks for reply, Dave. I was trying to understand the functions EVP_* last week, and your suggestion is pretty usefull because now I know it's possible make it work. I was following the main function in genpkey.c file and following the same sequence for generating key pair. I've got some execut

RE: Generating rsakey using openssl as lib

2012-10-11 Thread Dave Thompson
>From: owner-openssl-us...@openssl.org On Behalf Of Leonardo Laface de Almeida >Sent: Thursday, 11 October, 2012 14:04 >I have an application which already establishes SSL Socket connection >using OpenSSL as lib. Now, my application needs to able the user create >a RSA key pair, sign documents a

Generating rsakey using openssl as lib

2012-10-11 Thread Leonardo Laface de Almeida
Hi all, I have an application which already establishes SSL Socket connection using OpenSSL as lib. Now, my application needs to able the user create a RSA key pair, sign documents and verify signatures. This it will be needed in some features of my application, managed by user for signing doc