RE: OpenSSL 1.0.1 and TLSv1.2

2012-03-27 Thread KUTILEK Martin
Steve, Thanks for the answer. What I meant by TLSv1.1+ was a way to show only TLSv1.1 and TLSv1.2 ciphers in order to get a result as the one below. -bash-3.2$ ./openssl ciphers -v 'ALL' | grep TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD

error LNK2019: unresolved external symbol _AES_cbc_encrypt referenced in function

2012-03-27 Thread anu
When I am using AES_ecb_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key, const int enc); then there is no linking error in my code but when i use AES_cbc_encrypt(const unsigned char *in, unsigned char *out, const unsigned long length, const AES_KEY *key, unsigned char

SSL error: SSL error code 336151528 (a seemingly rare error/bug?)

2012-03-27 Thread Blake Mizerany
While working on postgres driver in Go, I began getting these errors in my postgres logs: SSL error: SSL error code 336151528 I spoke with a postgres team member and they aren't sure exactly where this is coming from. A little more research on my side found someone else getting a very similar

Re: SSL error: SSL error code 336151528 (a seemingly rare error/bug?)

2012-03-27 Thread Marek . Marcola
Hello, $ echo obase=16;336151528 | bc 140943E8 $ openssl errstr 140943E8 error:140943E8:SSL routines:SSL3_READ_BYTES:reason(1000) Best regards, -- Marek Marcola marek.marc...@malkom.pl owner-openssl-us...@openssl.org wrote on 03/27/2012 01:09:56 AM: Blake Mizerany blake.mizer...@gmail.com

BIO set cipher

2012-03-27 Thread Stephen J. Fulcinelli
I programming using BIO and I have a question about the BIO_set_cipher parameter. Now,i did my research and I read that BIO_set_cipher() sets the cipher of BIO b to cipher using key key and IV iv. enc should be set to 1 for encryption and zero for decryption. So correct me if im wrong, but

How to do encryption using AES in Openssl

2012-03-27 Thread pkumarn
I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( it's a pain), could not figure out much. I went through the code and found the API's using which i wrote a small program as below (please omit the line numbers). I don't see any

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Ken Goldman
On 3/27/2012 1:33 PM, pkumarn wrote: I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( it's a pain), could not figure out much. I went through the code and found the API's using which i wrote a small program as below (please

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Dr. Stephen Henson
On Tue, Mar 27, 2012, pkumarn wrote: I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( it's a pain), could not figure out much. I went through the code and found the API's using which i wrote a small program as below

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Jakob Bohm
On 3/27/2012 9:37 PM, Dr. Stephen Henson wrote: On Tue, Mar 27, 2012, pkumarn wrote: I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( it's a pain), could not figure out much. I went through the code and found the API's using

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Ken Goldman
On 3/27/2012 3:51 PM, Jakob Bohm wrote: On 3/27/2012 9:37 PM, Dr. Stephen Henson wrote: You should really be using EVP instead of the low level routines. They are well documented with examples. Where, precisely? I didn't find it either when I was looking a few years ago, so I settled on the

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Jeffrey Walton
On Tue, Mar 27, 2012 at 4:26 PM, Ken Goldman kgold...@us.ibm.com wrote: On 3/27/2012 3:51 PM, Jakob Bohm wrote: On 3/27/2012 9:37 PM, Dr. Stephen Henson wrote: You should really be using EVP instead of the low level routines. They are well documented with examples. Where, precisely? I

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Jakob Bohm
On 3/27/2012 10:42 PM, Jeffrey Walton wrote: On Tue, Mar 27, 2012 at 4:26 PM, Ken Goldmankgold...@us.ibm.com wrote: On 3/27/2012 3:51 PM, Jakob Bohm wrote: On 3/27/2012 9:37 PM, Dr. Stephen Henson wrote: You should really be using EVP instead of the low level routines. They are well

Re: How to do encryption using AES in Openssl

2012-03-27 Thread Jeffrey Walton
On Tue, Mar 27, 2012 at 5:19 PM, Jakob Bohm jb-open...@wisemo.com wrote: On 3/27/2012 10:42 PM, Jeffrey Walton wrote: On Tue, Mar 27, 2012 at 4:26 PM, Ken Goldmankgold...@us.ibm.com  wrote: On 3/27/2012 3:51 PM, Jakob Bohm wrote: On 3/27/2012 9:37 PM, Dr. Stephen Henson wrote: You should

OpenSSL Wiki (was: How to do encryption using AES in Openssl)

2012-03-27 Thread Jeffrey Walton
On Tue, Mar 27, 2012 at 4:26 PM, Ken Goldman kgold...@us.ibm.com wrote: On 3/27/2012 3:51 PM, Jakob Bohm wrote: On 3/27/2012 9:37 PM, Dr. Stephen Henson wrote: You should really be using EVP instead of the low level routines. They are well documented with examples. Where, precisely? I

Re: error LNK2019: unresolved external symbol _AES_cbc_encrypt referenced in function

2012-03-27 Thread Jeffrey Walton
On Mon, Mar 26, 2012 at 11:28 AM, anu anujc...@gmail.com wrote: When I am using AES_ecb_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key, const int enc); then there is no linking error in my code but when i use AES_cbc_encrypt(const unsigned char *in, unsigned char

Re: How to use AES_wrap_key() in openssl

2012-03-27 Thread Jeffrey Walton
On Mon, Mar 26, 2012 at 1:49 AM, Prashanth kumar N prashanth.kuma...@gmail.com wrote: [SNIP] : In my case, i would be storing the wrapped key and not the original key. So when user tries to decrypt the wrapped key, he would get the original key but how do i make sure that is the

Re: Successfully building openssl-1.0.1 with Microsoft Visual Studio.

2012-03-27 Thread Jeffrey Walton
On Sun, Mar 25, 2012 at 7:31 PM, jeremy hunt jere...@optimation.com.au wrote: Thomas J. Hruska wrote: On 3/23/2012 12:53 AM, jeremy hunt wrote: This posting is to help people to build OpenSSL 1.0.1 with Microsoft Visual Studio. It may also indicate a required change to the build

Re: Successfully building openssl-1.0.1 with Microsoft Visual Studio.

2012-03-27 Thread Lou Picciano
From: Jeffrey Walton noloa...@gmail.com To: openssl-users@openssl.org Sent: Tuesday, March 27, 2012 9:49:58 PM Subject: Re: Successfully building openssl-1.0.1 with Microsoft Visual Studio. On Sun, Mar 25, 2012 at 7:31 PM, jeremy hunt jere...@optimation.com.au wrote: Thomas J. Hruska wrote: