Re: Java bindings

2005-09-27 Thread Chris Gray
On Sunday 25 September 2005 16:19, Bear Giles wrote: I looked at this a while back, ultimately decided to go with a pure java implementation (BouncyCastle, iirc) since it was sufficient for my needs. Hi Bear, thanks for the reply. BouncyCastle is what we're doing now. I was looking for

0.9.8 Finds Extra Cert in PKCS12 File, But Can't Use it; Works in 0.9.7d

2005-09-27 Thread Martin Del Vecchio
I am using a PKCS12-format file generated by the Microsoft Windows CA. It has a private key, a certificate, and an extra CA certificate. I use d2i_PKCS12_fp() to read the file, and PKCS12_parse() to parse it. PKCS12_parse() sets the pointers for the private key, the cert, and the CA. I then call

Timeouts with OpenSSL

2005-09-27 Thread Hellstern, Thomas \(LfSt\)
Title: Timeouts with OpenSSL Hi, I implemented a HTTPS-Client about the following way: - Creating a SSL-Context with this-ctx=SSL_CTX_new(SSLv23_method()); and setting the parameters (e.g. certificates, private key, password,...) - Setting up the connection with this-bio=BIO_new_connect(

Question regarding BIO buffers and async IO

2005-09-27 Thread Marton Anka
Hello, Our OpenSSL-enabled server is built upon non-blocking IO with IO completion ports on Windows. Everything is very efficient and fast, but there is a nagging issue with double-buffering. Essentially, when OpenSSL calls BIO_write our application buffers the data to be sent, and initiates an

0.9.8: simple engine call causes loop

2005-09-27 Thread Kent Yoder
Hi, Calling ENGINE_by_id(anything) before making any other calls to OpenSSL seems to cause infinite recursion in trying to load the dynamic engine. I believe adding a call to ENGINE_load_dynamic() before attempting to load the dynamic engine inside ENGINE_by_id() will fix the problem. Thanks,

printing encrypted strings

2005-09-27 Thread Sheehan, Tim
Hi, I am trying to store encrypted data into an ascii file. The encrypted output appears to be in a binary format. Are there SSL functions I should use to convert to an ascii format before moving it to the file? thx, Tim __

RE: printing encrypted strings

2005-09-27 Thread Adam Jones
What type of encryption are you using? And what function are you using to print it out. I have used cout and it works fine with that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sheehan, Tim Sent: Tuesday, September 27, 2005 3:46 PM To:

Re: 0.9.8: simple engine call causes loop

2005-09-27 Thread Nils Larsch
Kent Yoder wrote: Hi, Calling ENGINE_by_id(anything) before making any other calls to OpenSSL seems to cause infinite recursion in trying to load the dynamic engine. I believe adding a call to ENGINE_load_dynamic() before attempting to load the dynamic engine inside ENGINE_by_id() will fix

RE: printing encrypted strings

2005-09-27 Thread Sheehan, Tim
I'm working in C. I'm actually using the AES 256 algorithm. It has been bolted in to the SSL like DES(and other enc algs). The encryption piece appears to be working well. I can cipherdecipher without any issues. It is when I store that encrypted string to a file. The file being written is

RE: printing encrypted strings

2005-09-27 Thread Adam Jones
Use fprintf with the %d format specifier. As you loop thru your buffer to print the encrypted buffer out to your file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sheehan, Tim Sent: Tuesday, September 27, 2005 4:23 PM To: 'openssl-users@openssl.org'

Re: printing encrypted strings

2005-09-27 Thread Ken Goldman
Are you sure that those unique characters are individually there? If you're writing in binary, it's likely that you have binary in the file, and what shows up is your editor's valiant attempt to display non-printable characters. Try editing the file in emacs in hexl-mode and let emacs do the

Using password based encryption.

2005-09-27 Thread Fan, Zhenqiang
Title: Using password based encryption. Hi, I am writing PKCS #5 v.2 PBE (password based encryption) program, and cannot make it work. The problem is that EVP_get_cipherbynid() always returns nil (see program below). I wonder if there is another way to get an appropriate EVP_CIPHER object

Re: printing encrypted strings

2005-09-27 Thread Bear Giles
There's a BIO that handles BASE-64 encoding and decoding. It makes the files much friendlier to naive editors and operating systems since it forces the contents to standard ASCII characters and you aren't dealing with \xxx encodings in your editors. Does DOS/Windows still need that silly

Re: Using password based encryption.

2005-09-27 Thread Dr. Stephen Henson
On Tue, Sep 27, 2005, Fan, Zhenqiang wrote: Hi, I am writing PKCS #5 v.2 PBE (password based encryption) program, and cannot make it work. The problem is that EVP_get_cipherbynid() always returns nil (see program below). I wonder if there is another way to get an appropriate EVP_CIPHER

Re: 0.9.8: simple engine call causes loop

2005-09-27 Thread Kent Yoder
Thanks, its fixed in the latest snapshot. Kent On 9/27/05, Nils Larsch [EMAIL PROTECTED] wrote: Kent Yoder wrote: Hi, Calling ENGINE_by_id(anything) before making any other calls to OpenSSL seems to cause infinite recursion in trying to load the dynamic engine. I believe adding a