Hello everybody

The pkcs7 standard knows the The encrypted-data content type
It consists of encrypted content of any type. Unlike the enveloped-data content type, the encrypted-data content type has neither recipients nor
encrypted content-encryption keys. Keys are assumed to be managed by other means.


How can I decrypt a file that has this content?

The Example comes from the draft-ietf-smime-examples-12.txt and has the following structure:

I have tried openssl smime -decrypt

It complains about missing certificates. For this type of pkcs7 file, no certificate can be used!

7.1 Simple EncryptedData

An EncryptedData from Alice to Bob of ExContent with no attributes.

   0 30   87: SEQUENCE {
   2 06    9:   OBJECT IDENTIFIER
            :     encryptedData (1 2 840 113549 1 7 6)
            :     (PKCS #7)
  13 A0   74:   [0] {
  15 30   72:     SEQUENCE {
  17 02    1:       INTEGER 0
  20 30   67:       SEQUENCE {
  22 06    9:         OBJECT IDENTIFIER data (1 2 840 113549 1 7 1)
            :           (PKCS #7)
  33 30   20:         SEQUENCE {
  35 06    8:           OBJECT IDENTIFIER
            :             des-EDE3-CBC (1 2 840 113549 3 7)
            :             (RSADSI encryptionAlgorithm
            :                 (1 2 840 113549 3))
  45 04    8:           OCTET STRING
            :             B3 6B 6B FB 62 31 08 4E
            :           }
  55 80   32:         [0]
            :           FA FC ED DB 3F 18 17 1D 38 89 11 EA
            :           34 D6 20 DB F4 C3 D9 58 15 EF 93 3B
            :           9A F5 D7 04 F6 B5 70 E2
            :         }
            :       }
            :     }
            :   }

The TripleDES key is:
    73 7c 79 1f 25 ea d0 e0 46 29 25 43 52 f7 dc 62
    91 e5 cb 26 91 7a da 32


|* Example 7.1.bin |>7.1.bin |MFcGCSqGSIb3DQEHBqBKMEgCAQAwQwYJKoZIhvcNAQcBMBQGCCqGSIb3DQMHBAiza2v7Yj |EIToAg+vzt2z8YFx04iRHqNNYg2/TD2VgV75M7mvXXBPa1cOI= |<7.1.bin



--

+-------------------------------------
| Felix Daners Engineering
| F.Daners
| Platz 3
| CH-8200 Schaffhausen
| Tel: +41 52 624 92 32
| Fax: +41 52 624 92 31
| mailto:[EMAIL PROTECTED]
| http://f.daners.swissworld.com
+-------------------------------------



[This E-mail scanned for viruses by Declude Antivirus]
[http://www.swissworld.com]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to