Re: question about exponent, key length and all other RSA parameters not configurable

2010-05-25 Thread Steffen DETTMER
* Chuck Pareto wrote on Mon, May 24, 2010 at 16:12 -0700: Hi, When I run openssl rsa to display my public key info. I see this below. How do I convert this output to a byte array? What is this output? Is it ascii or base64? it's ASCII and in the Mail potentially base64... :)

Re: BIO_f_zlib() / gzip Format

2010-05-25 Thread Darryl Miles
I thought they were the same thing ? Checkout http://www.zlib.net/ notice the Authors credited and the authors of Gzip http://www.gzip.org/ and deflate methods. Alternatively you can use the BIO implementation for doing compression as a template to write your own compression by bolting in

Re: BIO_f_zlib() / gzip Format

2010-05-25 Thread Doug Kehn
Hi Darryl, --- On Tue, 5/25/10, Darryl Miles darryl-mailingli...@netbauds.net wrote: From: Darryl Miles darryl-mailingli...@netbauds.net Subject: Re: BIO_f_zlib() / gzip Format To: openssl-users@openssl.org Cc: Doug Kehn rdk...@yahoo.com Date: Tuesday, May 25, 2010, 7:06 AM I thought

Re: AES-256 CBC encrypt/decrypt usage problem

2010-05-25 Thread ~ Kunal Sharma ~
Friends, I was able to resolve the problem with my web application not able to read the entire contents of encrypted file. Now my encryption and decryption is working ok. Thanks for all the help. Kunal On Sat, May 22, 2010 at 12:34 AM, ~ Kunal Sharma ~ koolku...@gmail.comwrote: Ok friends.

Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread ~ Kunal Sharma ~
Friends, I'm trying to verify that my encryption and decryption routines work ok. One way I do it is to encrypt the data and save it to a file. The I feed the encrypted file to my decryption routine and write the decrypted data to another file. I compare the original data and the contents of the

R: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread francesco.petruzzi
Use –K –iv parameters to pass HEX formatted key,iv Francesco Petruzzi francesco.petru...@innovery.it The information contained in this electronic message and any attachments (the Message) is intended for one or more specific individuals or entities, and may be confidential,

Re: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread Anand Patel
You need to use same iv and key for decryption. I believe the command is openssl enc -d -aes-256-cbc -K key used to encrypt -iv iv used to encrypt -in rgconf_encrypted -out rgconf_decrypted. -Anand On Tue, May 25, 2010 at 8:30 AM, ~ Kunal Sharma ~ koolku...@gmail.comwrote: Friends, I'm

Re: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread ~ Kunal Sharma ~
Thanks Francesco, Anand for the tip. I guess I need to supply the iv in hex format. Is it as simple as replacing each ascii character of iv string with the equivalent hex value or something else ? I use the passphrase As different as chalk and cheese and iv As dark as pitch. What would my iv be

Changing OID in PKCS7 SignedData

2010-05-25 Thread Bob Smith
Hello, I'm working on an application that generates PKCS#7 SignedData structures, but with a slightly different format to S/MIME. We're using a version 3 SignedData structure, and minor changes such as no signingTime in the Authenticated Attributes. As such, I'm working at the level using

RE: BIO_do_connect() strange return

2010-05-25 Thread Bin Lu
Hi Steve, I am picking up this long interrupted thread again. Just a quick question: since we are not able to upgrade to 0.9.8m for now, I am thinking of patching our current version with the non-blocking I/O support in the new versions. Do I have to port the delta from 0.9.8m or 0.9.8h is

RE: BIO_do_connect() strange return

2010-05-25 Thread Bin Lu
Hi Steve, Another question that was not answered last time is that, is the reason why BIO_do_connect() always returns success in the 2nd time call even if the connection is indeed not reachable also because of my old openssl version? Shouldn't the right behavior be returning failure until

RE: AES-256 CBC encrypt/decrypt usage problem

2010-05-25 Thread David Schwartz
Kunal Sharma wrote: What I see happening is this: ENCRYPT - size of /etc/rgconf on disk is 157043 bytes ENCRYPT - size of /etc/rgconf_encrypted on disk is 157044 bytes. BROWSER saves the file to disk - size is 136 bytes (How ???) You called 'strlen' on something that was not a string, so it

How can I disable authentication?

2010-05-25 Thread Dallas Clement
Hello, Just wondering what the best way to turn off authentication is. I'm wanting to do so for testing purposes. Would someone please advise? Thanks, Dallas __ OpenSSL Project

RE: question about exponent, key length and all other RSA parameters not configurable

2010-05-25 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Chuck Pareto Sent: Monday, 24 May, 2010 19:13 When I run openssl rsa to display my public key info. I see this below. How do I convert this output to a byte array? What is this output? Is it ascii or base64?

RE: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of ~ Kunal Sharma ~ Sent: Tuesday, 25 May, 2010 10:02 I guess I need to supply the iv in hex format. Is it as simple as replacing each ascii character of iv string with the equivalent hex value or something else ?