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
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
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
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:
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
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
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
>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
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
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
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
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
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
13 matches
Mail list logo