Re: openssl smime problem: the output of smime -decrypt is not the same to the original one

2009-04-14 Thread xh
Kyle Hamilton wrote: S/MIME requires that all native line endings be converted to \r\n before signing. My understanding is that s/mime is only focused on email related, so I think it's ok using \r\n replace \r. thanks, -Derek

openssl smime problem: the output of smime -decrypt is not the same to the original one

2009-04-13 Thread xh
Hi everyone, I find the output of the openssl smime -decrypt is not the same with the original one. My OS is Fedora 10 and the openssl version is 0.9.8g. I use the following command to get the encrypt version of the file a.txt # openssl smime -encrypt -in a.txt -out b.txt mycert.pem and try

what's the difference with or without -evp when using openssl speed

2009-03-03 Thread xh
Hi everyone, what's the difference between the following two command? openssl speed md5 openssl speed -evp md5 I checked the speed.c file, the -evp will call: EVP_CIPHER_CTX_init EVP_EncryptInit_ex EVP_EncryptUpdate EVP_EncryptFinal_ex but the openssl speed md5 will call EVP_Digest I think

Re: how to use openssl rc4

2009-03-03 Thread xh
Kyle Hamilton wrote: I'm sorry, I'm travelling at the moment. I will assist when I return. Thanks a lot! I am looking forward to you! -Derek __ OpenSSL Project http://www.openssl.org User

how to use openssl rc4

2009-02-27 Thread xh
Hi all, I want to use openssl's subcommand rc4 to do encrypt and decrypt, but I failed using the following command. # openssl rc4 -K Key -in in.txt iv undefined What I think is I can use a key to encrypt plaintext in file in.txt and print out the cipher text. I will not direct use