Sign and Enveloped PKCS7 container

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Sign and Enveloped PKCS7 container

Anton D. Kachalov
I have some trouble with Sign and Enveloped PKCS7. Decrypted file differ
to original.
Below links contain test which shows it up. Unpack and run 'make test'
http://lrn.ru/~mouse/sign_and_enveloped.tar.bz2

My result:
[mouse@mouse sign_and_enveloped]$ make test
cc  -Wall -O2 -fomit-frame-pointer
-DPACKAGE_BUGREPORT="\"[hidden email]\"" -c decryptverify.c
cc -o decryptverify decryptverify.o -lssl -lcrypto
strip --remove-section .comment decryptverify
cc  -Wall -O2 -fomit-frame-pointer
-DPACKAGE_BUGREPORT="\"[hidden email]\"" -c signencrypt.c
cc -o signencrypt signencrypt.o -lssl -lcrypto
strip --remove-section .comment signencrypt
Sign and Encrypt done
Decrypt and Verify done
--- decryptverify.c     2005-12-02 21:50:58 +0300
+++ file.c      2005-12-02 22:01:18 +0300
@@ -138,5 +138,4 @@
     BIO_free_all(out);
     EVP_PKEY_free(key);
     X509_free(recip);
-    return 0;
-}
+
\ No newline at end of file

Thanks.

--
mouse
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]