Re: openssl smime problem: the output of smime -decrypt is not the same to the original one
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 Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
openssl smime problem: the output of smime -decrypt is not the same to the original one
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 to use the following command to the paintext from the b.txt to c.txt # openssl smime -decrypt -in b.txt -out c.txt -recip mycert.pem -inkey priv.key The following is the hex dump and from the dump we can see that 0a become 0d0a. I think that should be a problem in the linux systems. # xxd a.txt 000: 6269 6e0a 626f 6f74 0a64 6576 0a65 7463 bin.boot.dev.etc 010: 0a65 7670 5f70 6b63 7331 315f 7465 7374 .evp_pkcs11_test 020: 2e63 0a68 6f6d 650a 6c69 620a 6c6f 7374 .c.home.lib.lost 030: 2b66 6f75 6e64 0a6d 6564 6961 0a6d 6973 +found.media.mis 040: 630a 6d6e 740a 6e65 740a 6f70 740a 7065 c.mnt.net.opt.pe 050: 7273 6f6e 616c 0a70 726f 630a 726f 6f74 rsonal.proc.root 060: 0a73 6269 6e0a 7365 6c69 6e75 780a 7372 .sbin.selinux.sr 070: 760a 7379 730a 746d 700a 7479 7065 7363 v.sys.tmp.typesc 080: 7269 7074 0a75 7372 0a76 6172 0a77 730a ript.usr.var.ws. [r...@amadis mykey]# xxd c.txt 000: 6269 6e0d 0a62 6f6f 740d 0a64 6576 0d0a bin..boot..dev.. 010: 6574 630d 0a65 7670 5f70 6b63 7331 315f etc..evp_pkcs11_ 020: 7465 7374 2e63 0d0a 686f 6d65 0d0a 6c69 test.c..home..li 030: 620d 0a6c 6f73 742b 666f 756e 640d 0a6d b..lost+found..m 040: 6564 6961 0d0a 6d69 7363 0d0a 6d6e 740d edia..misc..mnt. 050: 0a6e 6574 0d0a 6f70 740d 0a70 6572 736f .net..opt..perso 060: 6e61 6c0d 0a70 726f 630d 0a72 6f6f 740d nal..proc..root. 070: 0a73 6269 6e0d 0a73 656c 696e 7578 0d0a .sbin..selinux.. 080: 7372 760d 0a73 7973 0d0a 746d 700d 0a74 srv..sys..tmp..t 090: 7970 6573 6372 6970 740d 0a75 7372 0d0a ypescript..usr.. 0a0: 7661 720d 0a77 730d 0a var..ws.. thanks, -Derek __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
what's the difference with or without -evp when using openssl speed
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 the two methods both use the EVP api, there seems no difference. If anything wrong, please correct me. Thanks in advance! Regards, -Derek __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: how to use openssl rc4
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 Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
how to use openssl rc4
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 iv(initial vector), so I don't know why it prompt me the iv undefined. Could you tell me how to use openssl rc4 command to do that task? Any help will be appreciated! thanks, -Derek __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org