diff options
Diffstat (limited to 'crypto/asymmetric_keys/pkcs7.asn1')
-rw-r--r-- | crypto/asymmetric_keys/pkcs7.asn1 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/pkcs7.asn1 b/crypto/asymmetric_keys/pkcs7.asn1 index 05504431e1c1..6bf8ff4f7414 100644 --- a/crypto/asymmetric_keys/pkcs7.asn1 +++ b/crypto/asymmetric_keys/pkcs7.asn1 | |||
@@ -69,7 +69,7 @@ SignerInfos ::= CHOICE { | |||
69 | 69 | ||
70 | SignerInfo ::= SEQUENCE { | 70 | SignerInfo ::= SEQUENCE { |
71 | version INTEGER ({ pkcs7_note_signerinfo_version }), | 71 | version INTEGER ({ pkcs7_note_signerinfo_version }), |
72 | issuerAndSerialNumber IssuerAndSerialNumber, | 72 | sid SignerIdentifier, -- CMS variant, not PKCS#7 |
73 | digestAlgorithm DigestAlgorithmIdentifier ({ pkcs7_sig_note_digest_algo }), | 73 | digestAlgorithm DigestAlgorithmIdentifier ({ pkcs7_sig_note_digest_algo }), |
74 | authenticatedAttributes CHOICE { | 74 | authenticatedAttributes CHOICE { |
75 | aaSet [0] IMPLICIT SetOfAuthenticatedAttribute | 75 | aaSet [0] IMPLICIT SetOfAuthenticatedAttribute |
@@ -88,6 +88,12 @@ SignerInfo ::= SEQUENCE { | |||
88 | } OPTIONAL | 88 | } OPTIONAL |
89 | } ({ pkcs7_note_signed_info }) | 89 | } ({ pkcs7_note_signed_info }) |
90 | 90 | ||
91 | SignerIdentifier ::= CHOICE { | ||
92 | -- RFC5652 sec 5.3 | ||
93 | issuerAndSerialNumber IssuerAndSerialNumber, | ||
94 | subjectKeyIdentifier [0] IMPLICIT SubjectKeyIdentifier | ||
95 | } | ||
96 | |||
91 | IssuerAndSerialNumber ::= SEQUENCE { | 97 | IssuerAndSerialNumber ::= SEQUENCE { |
92 | issuer Name ({ pkcs7_sig_note_issuer }), | 98 | issuer Name ({ pkcs7_sig_note_issuer }), |
93 | serialNumber CertificateSerialNumber ({ pkcs7_sig_note_serial }) | 99 | serialNumber CertificateSerialNumber ({ pkcs7_sig_note_serial }) |
@@ -95,6 +101,8 @@ IssuerAndSerialNumber ::= SEQUENCE { | |||
95 | 101 | ||
96 | CertificateSerialNumber ::= INTEGER | 102 | CertificateSerialNumber ::= INTEGER |
97 | 103 | ||
104 | SubjectKeyIdentifier ::= OCTET STRING ({ pkcs7_sig_note_skid }) | ||
105 | |||
98 | SetOfAuthenticatedAttribute ::= SET OF AuthenticatedAttribute | 106 | SetOfAuthenticatedAttribute ::= SET OF AuthenticatedAttribute |
99 | 107 | ||
100 | AuthenticatedAttribute ::= SEQUENCE { | 108 | AuthenticatedAttribute ::= SEQUENCE { |