AIX 5.x file encryption problem

2007-03-09 Thread Harald Latzko
Hello list! I have problems encrypting files with the following command: openssl smime -encrypt -in /tmp/infile -out /tmp/testencrypted -nodetach -binary -des3 -outform DER /tmp/mypub.cer This command is running in several versions of openSSL successfully on several platforms (Linux, MacOS X, Wi

Re: EVP API for symetric encryption - problem

2005-03-22 Thread Richard Levitte - VMS Whacker
In message <[EMAIL PROTECTED]> on Mon, 21 Mar 2005 21:06:05 -0300, Rafael Cividanes <[EMAIL PROTECTED]> said: rafacividanes> I'm doing a little program to encrypt and decrypt rafacividanes> a string using the EVP API. I couldn't understand if I rafacividanes> have to use EVP_DecryptFinal_ex

Re: EVP API for symetric encryption - problem

2005-03-22 Thread Dr. Stephen Henson
On Tue, Mar 22, 2005, Rafael Cividanes wrote: >But the problem is that the plaintext below has 37 characters! "The > problem will be solved until" = 32. > I see, I was mislead by the comment at the end. > char intext[] = "The problem will be solved until12345"; = 37 !! > > It's very st

Re: EVP API for symetric encryption - problem

2005-03-22 Thread Rafael Cividanes
But the problem is that the plaintext below has 37 characters! "The problem will be solved until" = 32. char intext[] = "The problem will be solved until12345"; = 37 !! It's very strange for me! Thanks, Rafael Dr. Stephen Henson wrote: On Mon, Mar 21, 2005, Rafael Cividanes wrote:

Re: EVP API for symetric encryption - problem

2005-03-21 Thread Dr. Stephen Henson
On Mon, Mar 21, 2005, Rafael Cividanes wrote: > I'm doing a little program to encrypt and decrypt a string using > the EVP API. I couldn't understand if I have to use EVP_DecryptFinal_ex( > ) or just EVP_DecryptUpdate( ) in the decryption operation. The second > function return the entire

EVP API for symetric encryption - problem

2005-03-21 Thread Rafael Cividanes
I'm doing a little program to encrypt and decrypt a string using the EVP API. I couldn't understand if I have to use EVP_DecryptFinal_ex( ) or just EVP_DecryptUpdate( ) in the decryption operation. The second function return the entire recovered plaintext, then I can't understand why EVP_D

RE: Encryption problem with RSA algorithm

2004-12-10 Thread titi toto
OK.   Thanks for your answers. >To my understanding,>RSA should be able to cipher data larger than keysize,>but the error message seems to say the opposite.Your understanding is incorrect. RSA cannot encrypt data larger than thekey. This is why large RSA keys are typically used to encrypt fixed-si

RE: Encryption problem with RSA algorithm

2004-12-10 Thread David Schwartz
>To my understanding, >RSA should be able to cipher data larger than keysize, >but the error message seems to say the opposite. Your understanding is incorrect. RSA cannot encrypt data larger than the key. This is why large RSA keys are typically used to encrypt fixed-sized keys for other

Re: Encryption problem with RSA algorithm

2004-12-10 Thread Bernhard Froehlich
titi toto wrote: Hi, Sorry if my question is stupid... :-) I'm trying to use openssl cryptographic functions to cipher data with RSA algorithm, with a keysize of 1024 bits. When my data size is larger thant 1024 bits, the function RSA_public_encrypt sends back an RSA_R_DATA_TOO_LARGE_FOR_KE

Encryption problem with RSA algorithm

2004-12-10 Thread titi toto
Hi,   Sorry if my question is stupid... :-)   I'm trying to use openssl cryptographic functions to cipher data with RSA algorithm, with a keysize of 1024 bits.   When my data size is larger thant 1024 bits, the function RSA_public_encrypt sends back an RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE error messa

Encryption Problem

2001-02-08 Thread Sergio Sagliocco
I 'm trying to encrypt a file with rsautl so: openssl rsautl -in text -inkey cacert.pem -certin -encrypt -out enc but it displays the following error: 1840:error:0406D06E:rsa routines:RSA_padding_add_PKCS1_type_2:data too large for key size:rsa_pk1.c:151: I've tried to change padding but it

Re: DES CBC Encryption Problem

2000-07-27 Thread rsalz
any chance you're on windows and not using "binary" mode for the files? for example, using the openssl commandline, use the -in and -out flags, not the out redirection. __ OpenSSL Project http://ww

DES CBC Encryption Problem

2000-07-27 Thread Stephen Lee
hello, i've been trying to encrypt a certain string using openssl DES CBC encryption, but whenever I decrypt it, i get the same string EXCEPT that it has an extra new line character. i've tried everything to get rid of this new line character... i believe the error is in the encryption, not