All,
PKCS#15 specifies something like this:
ObjectValue { Type } ::= CHOICE {
indirect ReferencedValue {Type},
direct [0] Type,
indirect-protected [1] ReferencedValue {EnvelopedData {Type}},
direct-protected [2] EnvelopedData {Type}
}
EnvelopedData {Type} ::= SEQUENCE {
version INTEGER{v0(0),v1(1),v2(2),v3(3),v4(4)}(v0|v1|v2,...),
originatorInfo [0] OriginatorInfo OPTIONAL,
recipientInfos RecipientInfos,
encryptedContentInfo EncryptedContentInfo{Type},
unprotectedAttrs [1] SET SIZE (1..MAX) OF Attribute OPTIONAL
}
Now I would encode the second choice above (direct-protected) like this
[2] {
SEQUENCE {
version
recips, etc.
}
}
Where I make the choice and it's a sequence of stuff. However, the test vectors on RSA's
site encode it like this:
[2] {
version
recips, etc.
}
Is there an ASN.1 rule that says you can eliminate the sequence (or it's implicit) in this
case?
Thanks
Jonathan
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1