Convert symmetrically encrypted content to base64

2012-08-23 Thread Bjoern Schiessle
Hi, I want to generate a RSA private and public key and than encrypt the private key symmetrically with a password to store it on a server. The data has to be stored and transferred base64 encoded. This is how I encrypt the private key: EVP_CIPHER_CTX ctx; unsigned char *key =

RE: confusion with defination of SSL_CIPHER struct

2012-08-23 Thread Charles Mills
Does this help? It is from s_client. It is commented as only working with (the deprecated) SSLv2 but I think I see this output when I run s_client with TLSv1: p=SSL_get_shared_ciphers(s,buf,sizeof buf); if (p != NULL) {

Re: confusion with defination of SSL_CIPHER struct

2012-08-23 Thread Dr. Stephen Henson
On Thu, Aug 23, 2012, Saurabh Pandya wrote: I found following definition of SSL_CIPHER in openssl code typedef struct ssl_cipher_st { int valid; const char *name; /* text name */ unsigned long id; /* id, 4 bytes, first is version

Re: Generation ECDHE parameters

2012-08-23 Thread Dr. Stephen Henson
On Wed, Aug 22, 2012, Varma Dantuluri wrote: Hi We are in the process of adding support for ECDSA-ECDHE cipher suites and hence ECDSA certificates to our server. Right now, the server does the following: 1) Assign the ECDSA certificate to the SSL_CTX. 2) Set the callback for ECDH

Re: Convert symmetrically encrypted content to base64

2012-08-23 Thread Bjoern Schiessle
Hi, I think I did it way too complicated. I think the problem was that I always tried to mimic some openssl php code I know, but I think the solution I have now is much easier and standard complained: void Encryption::generateUserKeys(QString password) { RSA *rsa; EVP_PKEY *pkey;

Re: confusion with defination of SSL_CIPHER struct

2012-08-23 Thread Charles Mills
Watch out for -endian issues. -- Sent from my mobile phone. Please excuse my brevity. Charles Dr. Stephen Henson st...@openssl.org wrote: On Thu, Aug 23, 2012, Saurabh Pandya wrote: I found following definition of SSL_CIPHER in openssl code typedef struct ssl_cipher_st { int valid; const

Re: confusion with defination of SSL_CIPHER struct

2012-08-23 Thread Saurabh Pandya
Thanks all... On 8/23/12, Charles Mills charl...@mcn.org wrote: Watch out for -endian issues. -- Sent from my mobile phone. Please excuse my brevity. Charles Dr. Stephen Henson st...@openssl.org wrote: On Thu, Aug 23, 2012, Saurabh Pandya wrote: I found following definition of

FIPS error on Apache httpd v2.4.3, OpenSSL 1.0.1c and fips-2.0.1

2012-08-23 Thread Ruiyuan Jiang
Hi, I am not sure this mailing list is the proper one to ask for the problem that I have. I enabled fips when I compiled OpenSSL 1.0.1c. # /usr/local/ssl/bin/openssl OpenSSL version OpenSSL 1.0.1c-fips 10 May 2012 OpenSSL I compiled Apache httpd v2.4.3 against this version of OpenSSL. If I

RE: FIPS error on Apache httpd v2.4.3, OpenSSL 1.0.1c and fips-2.0.1

2012-08-23 Thread Helms, Cassie
Ryan, A previous thread, fingerprint does not match on FIPS_mode_set when FIPS + openssl is dynamically linked into build, might be of some use to you. As a first step, you may want to use ldd on your executable to make sure libcrypto.so/a points to 1.0.1c and not some other version of

OpenSSL on beagleboard

2012-08-23 Thread Paulo Roberto
Hello, I am using the package libssl-dev on ubuntu in my beagleboard xm, and I have to run two C algorithms using the openSSL library.. Although I can't compile using the command: gcc test.c -lssl -o test. It seems the compiler isn't recognizing the -lssl command. Does someone know how to solve

Re: OpenSSL on beagleboard

2012-08-23 Thread Jeffrey Walton
On Thu, Aug 23, 2012 at 9:06 PM, Paulo Roberto bad_boy_...@hotmail.com wrote: Hello, I am using the package libssl-dev on ubuntu in my beagleboard xm, and I have to run two C algorithms using the openSSL library.. Although I can't compile using the command: gcc test.c -lssl -o test. It seems