Jonathan Schulze-Hewett wrote:
All,

PKCS#15 specifies something like this:

[skip]

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?

The PKCS#15 specification starts with

PKCS-15 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
         pkcs-15(15) modules(1) pkcs-15(1)}
DEFINITIONS IMPLICIT TAGS ::=


which mean that tags are IMPLICIT, because it says "IMPLICIT TAGS"
after "DEFINITIONS".


This is the rule you are looking for. It explicitly says that
you must eliminate the SEQUENCE tag.

--
Lev Walkin
[EMAIL PROTECTED]
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to