Subject: EncryptedData in PKCS#7 & PKCS#8

From: "Forward_li" <[email-masked]>
Date: Sun, 11 Nov 2001 19:12:09 +0800

Hi all:
 When I am programing for implement the PFX data format, I found that the data struct "EncryptedData" have two different difinitions in PKCS#7 & PKCS#8. 
 In  PKCS#8 the difinition is :
 EncryptedData ::= OCTET STRINGS;
 
 But in PKCS#7 it is:
 EncryptedData ::= SEQUENCE {
   version Version,
   encryptedContentInfo EncryptedContentInfo }
 
 EncryptedContentInfo ::= SEQUENCE {
   contentType ContentType,
   contentEncryptionAlgorithm>     ContentEncryptionAlgorithmIdentifier,
   encryptedContent
     [0] IMPLICIT EncryptedContent OPTIONAL }
 
 I know that in PKCS#8 the EncryptedData is to contain the encrypted private key ,but I can not decide which "EncryptedData" will be used in PFX while I want to use password to encrypted some "SafeContent".
 
 Forward_li 
 
�������������������������������������������:������g�ʋ�~���&���ܢf�v����a�������_�j(��&