-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcryptographic_information_framework.asn1
984 lines (832 loc) · 31.1 KB
/
cryptographic_information_framework.asn1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
CryptographicInformationFramework {iso (1) standard (0) 7816 15 1}
DEFINITIONS IMPLICIT TAGS ::= BEGIN
IMPORTS
informationFramework, authenticationFramework, certificateExtensions, attributeCertificateDefinitions
FROM UsefulDefinitions {joint-iso-itu-t (2) ds (5) module (1) usefulDefinitions (0) 7}
AttributeCertificate
FROM AttributeCertificateDefinitions attributeCertificateDefinitions
Name
FROM InformationFramework informationFramework
Certificate, CertificateSerialNumber, SubjectPublicKeyInfo, AlgorithmIdentifier, Validity
FROM AuthenticationFramework authenticationFramework
GeneralName, GeneralNames, KeyUsage
FROM CertificateExtensions certificateExtensions
BiometricInformationTemplate, BiometricInformationTemplateGroup
FROM CBEFF-SMARTCARD-BIDO {iso standard 19785 modules (0) types-for-smartcard (8)}
ALGORITHM-IDENTIFIER
FROM PKCS-5 {iso (1) member-body (2) us (840) rsadsi (113549) pkcs (1) pkcs-5 (5) modules (16) pkcs-5 (1)}
ECPoint, Parameters
FROM ANSI-X9-62 {iso (1) member-body (2) us (840) ansi-x962 (10045) module (5) 1}
DomainParameters
FROM ANSI-X9-42 {iso (1) member-body (2) us (840) ansi-x942 (10046) module (5) 1};
-- A.1 Upper and lower bounds
cia-ub-identifier INTEGER ::= 255
cia-ub-reference INTEGER ::= 255
cia-ub-index INTEGER ::= 65535
cia-ub-label INTEGER ::= cia-ub-identifier
cia-lb-minPasswordLength INTEGER ::= 4
cia-ub-minPasswordLength INTEGER ::= 8
cia-ub-storedPasswordLength INTEGER ::= 64
cia-ub-recordLength INTEGER ::= 16383
cia-ub-userConsent INTEGER ::= 32767
cia-ub-securityConditions INTEGER ::= 255
cia-ub-biometricTypes INTEGER ::= 127
cia-ub-storedVerifDataValueNumber INTEGER ::= 8
-- A.2 Basic types
-- A.2.1
Identifier ::= OCTET STRING (SIZE (0..cia-ub-identifier))
-- A.2.2
Reference ::= CHOICE {
uniqueByteRef INTEGER (0..cia-ub-reference),
multiByteRef [1] OCTET STRING (SIZE (4..20))
}
-- A.2.3
Label ::= UTF8String (SIZE (0..cia-ub-label))
-- A.2.4
CredentialIdentifier {KEY-IDENTIFIER: IdentifierSet} ::= SEQUENCE {
idType KEY-IDENTIFIER.&id ({IdentifierSet}),
idValue KEY-IDENTIFIER.&Value ({IdentifierSet} {@idType})
}
KeyIdentifiers KEY-IDENTIFIER ::= {
issuerAndSerialNumber |
issuerAndSerialNumberHash |
subjectKeyId |
subjectKeyHash |
issuerKeyHash |
issuerNameHash |
subjectNameHash |
pgp2KeyId |
openPGPKeyId |
certificateHolderReference,
... -- For future extensions
}
KEY-IDENTIFIER ::= CLASS {
&id INTEGER UNIQUE,
&Value
}
WITH SYNTAX {
SYNTAX &Value IDENTIFIED BY &id
}
IssuerAndSerialNumber ::= SEQUENCE {
issuer Name,
serialNumber CertificateSerialNumber
}
issuerAndSerialNumber KEY-IDENTIFIER ::= {SYNTAX IssuerAndSerialNumber IDENTIFIED BY 1}
issuerAndSerialNumberHash KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 3}
-- Assumes SHA-1 hash of DER encoding of IssuerAndSerialNumber
subjectKeyId KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 2}
-- From ISO/IEC 9594-8 certificate extension
subjectKeyHash KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 4}
issuerKeyHash KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 5}
issuerNameHash KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 6}
-- SHA-1 hash of DER-encoded issuer name
subjectNameHash KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 7}
-- SHA-1 hash of DER-encoded subject name
pgp2KeyId KEY-IDENTIFIER ::= {SYNTAX OCTET STRING (SIZE (8)) IDENTIFIED BY 8}
openPGPKeyId KEY-IDENTIFIER ::= {SYNTAX OCTET STRING (SIZE (8)) IDENTIFIED BY 9}
certificateHolderReference KEY-IDENTIFIER ::= {SYNTAX OCTET STRING IDENTIFIED BY 10}
-- A.2.5
ReferencedValue ::= CHOICE {
path Path,
url URL
} -- The syntax of the object is determined by the context
URL ::= CHOICE {
url CHOICE {
printable PrintableString,
ia5 IA5String
},
urlWithDigest [3] SEQUENCE {
url IA5String,
digest DigestInfoWithDefault
}
}
alg-id-sha1 AlgorithmIdentifier {{DigestAlgorithms}} ::= {algorithm id-sha1, parameters SHA1Parameters: NULL}
id-sha1 OBJECT IDENTIFIER ::= {iso (1) identified-organization (3) oiw (14) secsig (3) algorithms (2) 26}
SHA1Parameters ::= NULL
DigestInfoWithDefault ::= SEQUENCE {
digestAlg AlgorithmIdentifier {{DigestAlgorithms}} DEFAULT alg-id-sha1,
digest OCTET STRING (SIZE (8..128))
}
DigestAlgorithms ALGORITHM-IDENTIFIER ::= {
{NULL IDENTIFIED BY sha-1}, ... -- For future extensions
}
Path ::= SEQUENCE {
efidOrTagChoice CHOICE {
efidOrPath OCTET STRING,
tagRef [0] SEQUENCE {
tag OCTET STRING,
efidOrPath OCTET STRING OPTIONAL
},
appFileRef [1] SEQUENCE {
aid [APPLICATION 15] OCTET STRING,
efidOrpath OCTET STRING
},
appTagRef [2] SEQUENCE {
aid [APPLICATION 15] OCTET STRING,
tag OCTET STRING,
efidOrPath OCTET STRING OPTIONAL
}
},
index INTEGER (0..cia-ub-index) OPTIONAL,
length [0] INTEGER (0..cia-ub-index) OPTIONAL
} (WITH COMPONENTS {
...,
index PRESENT,
length PRESENT
} | WITH COMPONENTS {
...,
index ABSENT,
length ABSENT
})
-- A.2.6
ObjectValue {Type} ::= CHOICE {
indirect ReferencedValue,
direct [0] Type
}
-- A.2.7
PathOrObjects {ObjectType} ::= CHOICE {
path Path,
objects [0] SEQUENCE OF ObjectType,
... -- For future extensions
}
-- A.2.8
CommonObjectAttributes ::= SEQUENCE {
label Label OPTIONAL,
flags CommonObjectFlags OPTIONAL,
authId Identifier OPTIONAL,
userConsent INTEGER (1..cia-ub-userConsent) OPTIONAL,
accessControlRules SEQUENCE SIZE (1..MAX) OF AccessControlRule OPTIONAL,
... -- For future extensions
} (CONSTRAINED BY { -- authId should be present if flags.private is set.
-- It shall equal an authID in one authentication object in the AOD --
})
CommonObjectFlags ::= BIT STRING {
private (0),
modifiable (1),
internal (2)
} -- Bit (2) is present for historical reasons and shall not be used
AccessControlRule ::= SEQUENCE {
accessMode AccessMode,
securityCondition SecurityCondition,
communicationMode CommunicationMode OPTIONAL,
lifeCycleStatus LifeCycleStatus OPTIONAL,
verifLimitDates RangeOfDate OPTIONAL,
... -- For future extensions
}
AccessMode ::= BIT STRING {
read (0),
update (1),
execute (2),
delete (3),
attribute (4),
pso_cds (5),
pso_verif (6),
pso_dec (7),
pso_enc (8),
int_auth (9),
ext_auth (10)
}
SecurityCondition ::= CHOICE {
always NULL,
authId Identifier,
authReference AuthReference,
not [0] SecurityCondition,
and [1] SEQUENCE SIZE (2..cia-ub-securityConditions) OF SecurityCondition,
or [2] SEQUENCE SIZE (2..cia-ub-securityConditions) OF SecurityCondition,
... -- For future extensions
}
AuthReference ::= SEQUENCE {
authMethod AuthMethod,
seIdentifier INTEGER OPTIONAL
}
AuthMethod ::= BIT STRING {
secureMessaging (0),
extAuthentication (1),
userAuthentication (2),
always (3)
}
CommunicationMode ::= BIT STRING {
contact (0),
contactLess (1),
usb (2),
nfc (3),
contactC6 (4)
}
LifeCycleStatus ::= ENUMERATED {
creation (0),
init (1),
op-activated (2),
op-deactivated (3),
termination (4),
proprietary (5),
...
}
RangeOfDate ::= SEQUENCE {
startDate GeneralizedTime OPTIONAL,
endDate [0] GeneralizedTime OPTIONAL
}
-- A.2.9
CommonKeyAttributes ::= SEQUENCE {
iD Identifier,
usage KeyUsageFlags,
native BOOLEAN DEFAULT TRUE,
accessFlags KeyAccessFlags OPTIONAL,
keyReference KeyReference OPTIONAL,
startDate GeneralizedTime OPTIONAL,
endDate [0] GeneralizedTime OPTIONAL,
algReference [1] SEQUENCE OF Reference OPTIONAL,
... -- For future extensions
}
KeyUsageFlags ::= BIT STRING {
encipher (0),
decipher (1),
sign (2),
signRecover (3),
keyEncipher (4),
keyDecipher (5),
verify (6),
verifyRecover (7),
derive (8),
nonRepudiation (9)
}
KeyAccessFlags ::= BIT STRING {
sensitive (0),
extractable (1),
alwaysSensitive (2),
neverExtractable (3),
cardGenerated (4)
}
KeyReference ::= INTEGER
-- A.2.10
CommonPrivateKeyAttributes ::= SEQUENCE {
name Name OPTIONAL,
keyIdentifiers [0] SEQUENCE OF CredentialIdentifier {{KeyIdentifiers}} OPTIONAL,
generalName [1] GeneralNames OPTIONAL,
keyUsageConstraints [2] KeyUsageConstraints OPTIONAL,
... -- For future extensions
} (CONSTRAINED BY {-- if keyUsageConstraints present, CommonObjectAttributes.userConsent should be set--})
KeyUsageConstraints ::= SEQUENCE {
keyUsageConstraintsFlag BIT STRING {immediateUsage (0)},
refOID OBJECT IDENTIFIER OPTIONAL,
... -- For future extensions
}
-- A.2.11
CommonPublicKeyAttributes ::= SEQUENCE {
name Name OPTIONAL,
trustedUsage [0] Usage OPTIONAL,
generalName [1] GeneralNames OPTIONAL,
keyIdentifiers [2] SEQUENCE OF CredentialIdentifier {{KeyIdentifiers}} OPTIONAL,
... -- For future extensions
}
-- A.2.12
CommonSecretKeyAttributes ::= SEQUENCE {
keyLen INTEGER OPTIONAL, -- keylength (in bits)
... -- For future extensions
}
-- A.2.13
GenericKeyAttributes ::= SEQUENCE {
keyType CIO-ALGORITHM.&objectIdentifier ({AllowedAlgorithms}),
keyAttr CIO-ALGORITHM.&Parameters ({AllowedAlgorithms} {@keyType})
}
AllowedAlgorithms CIO-ALGORITHM ::= {...}
-- A.2.14
KeyInfo {ParameterType, OperationsType} ::= CHOICE {
paramsAndOps SEQUENCE {
parameters ParameterType,
operations OperationsType OPTIONAL
},
reference Reference -- Historical, not to be used
}
-- A.2.15
CommonCertificateAttributes ::= SEQUENCE {
iD Identifier,
authority BOOLEAN DEFAULT FALSE,
identifier CredentialIdentifier {{KeyIdentifiers}} OPTIONAL,
certHash [0] CertHash OPTIONAL,
trustedUsage [1] Usage OPTIONAL,
identifiers [2] SEQUENCE OF CredentialIdentifier {{KeyIdentifiers}} OPTIONAL,
validity [4] Validity OPTIONAL,
...
} -- Context tag [3] is reserved for historical reasons
Usage ::= SEQUENCE {
keyUsage KeyUsage OPTIONAL,
extKeyUsage SEQUENCE SIZE (1..MAX) OF OBJECT IDENTIFIER OPTIONAL,
...
} (WITH COMPONENTS {
...,
keyUsage PRESENT
} | WITH COMPONENTS {
...,
extKeyUsage PRESENT
})
CertHash ::= SEQUENCE {
hashAlg [0] EXPLICIT AlgorithmIdentifier OPTIONAL,
certId [1] EXPLICIT CertId OPTIONAL,
hashVal BIT STRING
} (CONSTRAINED BY {-- hashVal is calculated over the whole DER-encoded certificate --})
CertId ::= SEQUENCE {
issuer GeneralName,
serialNumber CertificateSerialNumber
}
-- A.2.16
GenericCertificateAttributes ::= SEQUENCE {
certType CIO-OPAQUE.&id ({AllowedCertificates}),
certAttr CIO-OPAQUE.&Type ({AllowedCertificates} {@certType})
}
AllowedCertificates CIO-OPAQUE ::= {...}
-- A.2.17
CommonDataContainerObjectAttributes ::= SEQUENCE {
applicationName Label OPTIONAL,
applicationOID OBJECT IDENTIFIER OPTIONAL,
iD Identifier OPTIONAL,
... -- For future extensions
} (WITH COMPONENTS {
...,
applicationName PRESENT
} | WITH COMPONENTS {
...,
applicationOID PRESENT
})
-- A.2.18
CommonAuthenticationObjectAttributes ::= SEQUENCE {
authId Identifier OPTIONAL,
authReference Reference OPTIONAL,
seIdentifier [0] Reference OPTIONAL,
... -- For future extensions
}
-- A.2.19
CIO {ClassAttributes, SubClassAttributes, TypeAttributes} ::= SEQUENCE {
commonObjectAttributes CommonObjectAttributes,
classAttributes ClassAttributes,
subClassAttributes [0] SubClassAttributes OPTIONAL,
typeAttributes [1] TypeAttributes
}
-- A.3 CIOs
CIOChoice ::= CHOICE {
privateKeys [0] PrivateKeys,
publicKeys [1] PublicKeys,
trustedPublicKeys [2] PublicKeys,
secretKeys [3] SecretKeys,
certificates [4] Certificates,
trustedCertificates [5] Certificates,
usefulCertificates [6] Certificates,
dataContainerObjects [7] DataContainerObjects,
authObjects [8] AuthObjects,
... -- For future extensions
}
PrivateKeys ::= PathOrObjects {PrivateKeyChoice}
PublicKeys ::= PathOrObjects {PublicKeyChoice}
SecretKeys ::= PathOrObjects {SecretKeyChoice}
Certificates ::= PathOrObjects {CertificateChoice}
DataContainerObjects ::= PathOrObjects {DataContainerObjectChoice}
AuthObjects ::= PathOrObjects {AuthenticationObjectChoice}
-- A.4 Private key information objects
-- A.4.1
PrivateKeyChoice ::= CHOICE {
privateRSAKey PrivateKeyObject {PrivateRSAKeyAttributes},
privateECKey [0] PrivateKeyObject {PrivateECKeyAttributes},
privateDHKey [1] PrivateKeyObject {PrivateDHKeyAttributes},
privateDSAKey [2] PrivateKeyObject {PrivateDSAKeyAttributes},
privateKEAKey [3] PrivateKeyObject {PrivateKEAKeyAttributes},
genericPrivateKey [4] PrivateKeyObject {GenericKeyAttributes},
... -- For future extensions
}
PrivateKeyObject {KeyAttributes} ::= CIO {CommonKeyAttributes, CommonPrivateKeyAttributes, KeyAttributes}
-- A.4.2
PrivateRSAKeyAttributes ::= SEQUENCE {
value Path,
modulusLength INTEGER, -- modulus length in bits, e.g. 1024
keyInfo KeyInfo {NULL, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
-- A.4.3
PrivateECKeyAttributes ::= SEQUENCE {
value Path,
keyInfo KeyInfo {Parameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
-- A.4.4
PrivateDHKeyAttributes ::= SEQUENCE {
value Path,
keyInfo KeyInfo {DomainParameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
-- A.4.5
PrivateDSAKeyAttributes ::= SEQUENCE {
value Path,
keyInfo KeyInfo {DomainParameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
-- A.4.6
PrivateKEAKeyAttributes ::= SEQUENCE {
value Path,
keyInfo KeyInfo {DomainParameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
-- A.5 Public key information objects
-- A.5.1
PublicKeyChoice ::= CHOICE {
publicRSAKey PublicKeyObject {PublicRSAKeyAttributes},
publicECKey [0] PublicKeyObject {PublicECKeyAttributes},
publicDHKey [1] PublicKeyObject {PublicDHKeyAttributes},
publicDSAKey [2] PublicKeyObject {PublicDSAKeyAttributes},
publicKEAKey [3] PublicKeyObject {PublicKEAKeyAttributes},
genericPublicKey [4] PublicKeyObject {GenericKeyAttributes},
... -- For future extensions
}
PublicKeyObject {KeyAttributes} ::= CIO {CommonKeyAttributes, CommonPublicKeyAttributes, KeyAttributes}
-- A.5.2
PublicRSAKeyAttributes ::= SEQUENCE {
value ObjectValue {RSAPublicKeyChoice},
modulusLength INTEGER, -- modulus length in bits, e.g. 1024
keyInfo KeyInfo {NULL, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
RSAPublicKeyChoice ::= CHOICE {
raw RSAPublicKey,
spki [1] SubjectPublicKeyInfo, -- See ISO/IEC 9594-8. Must contain a public RSA key.
...
}
RSAPublicKey ::= SEQUENCE {
modulus INTEGER,
publicExponent INTEGER
}
-- A.5.3
PublicECKeyAttributes ::= SEQUENCE {
value ObjectValue {ECPublicKeyChoice},
keyInfo KeyInfo {Parameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
ECPublicKeyChoice ::= CHOICE {
raw ECPoint, -- See ANSI X9.62,
spki SubjectPublicKeyInfo, -- See ISO/IEC 9594-8. Must contain a public elliptic curve key
...
}
-- A.5.4
PublicDHKeyAttributes ::= SEQUENCE {
value ObjectValue {DHPublicKeyChoice},
keyInfo KeyInfo {DomainParameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
DHPublicKeyChoice ::= CHOICE {
raw DHPublicNumber,
spki SubjectPublicKeyInfo, -- See ISO/IEC 9594-8. Must contain a public D-H key.
...
}
DHPublicNumber ::= INTEGER
-- A.5.5
PublicDSAKeyAttributes ::= SEQUENCE {
value ObjectValue {DSAPublicKeyChoice},
keyInfo KeyInfo {DomainParameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
DSAPublicKeyChoice ::= CHOICE {
raw DSAPublicKey,
spki SubjectPublicKeyInfo, -- See ISO/IEC 9594-8. Must contain a public DSA key.
...
}
DSAPublicKey ::= INTEGER
-- A.5.6
PublicKEAKeyAttributes ::= SEQUENCE {
value ObjectValue {KEAPublicKeyChoice},
keyInfo KeyInfo {DomainParameters, PublicKeyOperations} OPTIONAL,
... -- For future extensions
}
KEAPublicKeyChoice ::= CHOICE {
raw KEAPublicKey,
spki SubjectPublicKeyInfo, -- See ISO/IEC 9594-8. Must contain a public KEA key.
...
}
KEAPublicKey ::= INTEGER
-- A.6 Secret key information objects
-- A.6.1
SecretKeyChoice ::= CHOICE {
algIndependentKey SecretKeyObject {SecretKeyAttributes},
genericSecretKey [15] SecretKeyObject {GenericKeyAttributes},
... -- For future extensions
} -- Note: Context tags [0] – [14] historical and not to be used
SecretKeyObject {KeyAttributes} ::= CIO {CommonKeyAttributes, CommonSecretKeyAttributes, KeyAttributes}
-- A.6.2
SecretKeyAttributes ::= SEQUENCE {
value ObjectValue {OCTET STRING},
... -- For future extensions
}
-- A.7 Certificate information objects
-- A.7.1
CertificateChoice ::= CHOICE {
x509Certificate CertificateObject {X509CertificateAttributes},
x509AttributeCertificate [0] CertificateObject {X509AttributeCertificateAttributes},
spkiCertificate [1] CertificateObject {SPKICertificateAttributes},
pgpCertificate [2] CertificateObject {PGPCertificateAttributes},
wtlsCertificate [3] CertificateObject {WTLSCertificateAttributes},
x9-68Certificate [4] CertificateObject {X9-68CertificateAttributes},
cvCertificate [5] CertificateObject {CVCertificateAttributes},
genericCertificateObject [6] CertificateObject {GenericCertificateAttributes},
... -- For future extensions
}
CertificateObject {CertAttributes} ::= CIO {CommonCertificateAttributes, NULL, CertAttributes}
-- A.7.2
X509CertificateAttributes ::= SEQUENCE {
value ObjectValue {Certificate},
subject Name OPTIONAL,
issuer [0] Name OPTIONAL,
serialNumber CertificateSerialNumber OPTIONAL,
... -- For future extensions
}
-- A.7.3
X509AttributeCertificateAttributes ::= SEQUENCE {
value ObjectValue {AttributeCertificate},
issuer GeneralNames OPTIONAL,
serialNumber CertificateSerialNumber OPTIONAL,
attrTypes [0] SEQUENCE OF OBJECT IDENTIFIER OPTIONAL,
... -- For future extensions
}
-- A.7.4
SPKICertificateAttributes ::= SEQUENCE {
value ObjectValue {CIO-OPAQUE.&Type},
... -- For future extensions
}
-- A.7.5
PGPCertificateAttributes ::= SEQUENCE {
value ObjectValue {CIO-OPAQUE.&Type},
... -- For future extensions
}
-- A.7.6
WTLSCertificateAttributes ::= SEQUENCE {
value ObjectValue {CIO-OPAQUE.&Type},
... -- For future extensions
}
-- A.7.7
X9-68CertificateAttributes ::= SEQUENCE {
value ObjectValue {CIO-OPAQUE.&Type},
... -- For future extensions
}
-- A.7.8
CVCertificateAttributes ::= SEQUENCE {
value ObjectValue {CIO-OPAQUE.&Type},
certificationAuthorityReference OCTET STRING OPTIONAL,
... -- For future extensions
}
-- A.8 Data container information objects
-- A.8.1
DataContainerObjectChoice ::= CHOICE {
opaqueDO DataContainerObject {OpaqueDOAttributes},
iso7816DO [0] DataContainerObject {ISO7816DOAttributes},
oidDO [1] DataContainerObject {OidDOAttributes},
... -- For future extensions
}
DataContainerObject {DataObjectAttributes} ::= CIO {CommonDataContainerObjectAttributes, NULL, DataObjectAttributes}
-- A.8.2
OpaqueDOAttributes ::= ObjectValue {CIO-OPAQUE.&Type}
-- A.8.3
ISO7816DOAttributes ::= ObjectValue {CIO-OPAQUE.&Type} (CONSTRAINED BY {-- All such data container objects shall be defined in accordance with ISO/IEC 7816-4 --})
-- A.8.4
OidDOAttributes ::= SEQUENCE {
id CIO-OPAQUE.&id ({AllowedOidDOs}),
value CIO-OPAQUE.&Type ({AllowedOidDOs} {@id})
}
AllowedOidDOs CIO-OPAQUE ::= {...}
-- A.9 Authentication information objects
-- A.9.1
AuthenticationObjectChoice ::= CHOICE {
pwd AuthenticationObject {PasswordAttributes},
biometricTemplate [0] AuthenticationObject {BiometricAttributes},
authKey [1] AuthenticationObject {AuthKeyAttributes},
external [2] AuthenticationObject {ExternalAuthObjectAttributes},
internal [3] AuthenticationObject {InternalAuthObjectAttributes},
... -- For future extensions
}
AuthenticationObject {AuthObjectAttributes} ::= CIO {CommonAuthenticationObjectAttributes, NULL, AuthObjectAttributes}
-- A.9.2
PasswordAttributes ::= SEQUENCE {
pwdFlags PasswordFlags,
pwdType PasswordType,
minLength INTEGER (cia-lb-minPasswordLength..cia-ub-minPasswordLength),
storedLength INTEGER (0..cia-ub-storedPasswordLength),
maxLength INTEGER OPTIONAL,
pwdReference [0] Reference DEFAULT 0,
padChar OCTET STRING (SIZE (1)) OPTIONAL,
lastPasswordChange GeneralizedTime OPTIONAL,
path Path OPTIONAL,
verifDataHistoryLength [1] INTEGER (0..cia-ub-storedVerifDataValueNumber) OPTIONAL,
cioSecurityId [2] INTEGER OPTIONAL,
... -- For future extensions
}
PasswordFlags ::= BIT STRING {
case-sensitive (0),
local (1),
change-disabled (2),
unblock-disabled (3),
initialized (4),
needs-padding (5),
unblockingPassword (6),
soPassword (7),
disable-allowed (8),
integrity-protected (9),
confidentiality-protected (10),
exchangeRefData (11),
resetRetryCounter1 (12),
resetRetryCounter2 (13),
context-dependent (14),
multiStepProtocol (15)
} (CONSTRAINED BY {-- ‘unblockingPassword’ and ‘soPassword’ cannot both be set, and ‘contextdependent’supersedes both ‘integrity-protected’ and ‘confidentiality-protected’ when set--})
PasswordType ::= ENUMERATED {
bcd,
ascii-numeric,
utf8,
half-nibble-bcd,
iso9564-1,
...
}
-- A.9.3
BiometricAttributes ::= CHOICE {
biometricTemplateAttributes BiometricTemplateAttributes,
bit [APPLICATION 96] BiometricInformationTemplate,
bitGroup [APPLICATION 97] BiometricInformationTemplateGroup
}
BiometricInformationTemplate ::= CHOICE {
biometricInformationTemplate OCTET STRING,
--Shall contain an ISO/IEC 7816-11 Biometric Information Template value
SEQUENCE {
maxBITLength INTEGER OPTIONAL,
biometricInformationTemplate OCTET STRING
--Shall contain an ISO/IEC 7816-11 BiometricInformationTemplate value
}
}
BiometricInformationTemplateGroup ::= OCTET STRING
-- Shall contain an ISO/IEC 7816-11 Biometric Information Template group template value
BiometricTemplateAttributes ::= SEQUENCE {
bioFlags BiometricFlags,
templateId BiometricTemplateIdentifier,
bioType BiometricType,
bioReference Reference DEFAULT 0,
lastChange GeneralizedTime OPTIONAL,
path Path OPTIONAL,
... -- For future extensions
}
BiometricTemplateIdentifier ::= CHOICE {
oid OBJECT IDENTIFIER,
issuerId OCTET STRING,
... -- For future extensions
}
BiometricFlags ::= BIT STRING {
local (1),
change-disabled (2),
unblock-disabled (3),
initialized (4),
disable-allowed (8),
integrity-protected (9),
confidentiality-protected (10)
}
BiometricType ::= CHOICE {
fingerPrint FingerPrintInformation,
iris [0] IrisInformation,
chained [1] SEQUENCE SIZE (2..cia-ub-biometricTypes) OF BiometricType,
... -- For future extensions
}
FingerPrintInformation ::= SEQUENCE {
hand ENUMERATED {
left,
right
},
finger ENUMERATED {
thumb,
pointerFinger,
middleFinger,
ringFinger,
littleFinger
}
}
IrisInformation ::= SEQUENCE {
eye ENUMERATED {
left,
right
},
... -- For future extensions
}
-- A.9.4
ExternalAuthObjectAttributes ::= CHOICE {
authKeyAttributes AuthKeyAttributes,
certBasedAttributes [0] CertBasedAuthenticationAttributes,
... -- For future extensions
}
InternalAuthObjectAttributes ::= SEQUENCE {
cioSecurityId INTEGER OPTIONAL,
authKeyAttributes AuthKeyAttributes,
... -- For future extensions
} (CONSTRAINED BY {-- at least one out of protocol and description attributes shall be present --})
AuthKeyAttributes ::= SEQUENCE {
derivedKey BOOLEAN DEFAULT TRUE,
authKeyId Identifier,
... -- For future extensions
}
CertBasedAuthenticationAttributes ::= SEQUENCE {
cha OCTET STRING,
cioSecurityId INTEGER OPTIONAL,
... -- For future extensions
}
-- A.10 Cryptographic and card information
CIAInfo ::= SEQUENCE {
version INTEGER {
v1 (0),
v2 (1)
} (v1 | v2, ...),
serialNumber OCTET STRING OPTIONAL,
manufacturerID Label OPTIONAL,
label [0] Label OPTIONAL,
cardflags CardFlags,
seInfo SEQUENCE OF SecurityEnvironmentInfo OPTIONAL,
recordInfo [1] RecordInfo OPTIONAL,
supportedAlgorithms [2] SEQUENCE OF AlgorithmInfo OPTIONAL,
issuerId [3] Label OPTIONAL,
holderId [4] Label OPTIONAL,
lastUpdate [5] LastUpdate OPTIONAL,
preferredLanguage PrintableString OPTIONAL, -- In accordance with IETF RFC 5646
profileIndication [6] SEQUENCE OF ProfileIndication OPTIONAL,
... -- For future extensions
} (CONSTRAINED BY {-- Each AlgorithmInfo.reference value shall be unique --})
CardFlags ::= BIT STRING {
readonly (0),
authRequired (1),
prnGeneration (2)
} -- Bit (3) is reserved for historical reasons
SecurityEnvironmentInfo ::= SEQUENCE {
se INTEGER,
owner OBJECT IDENTIFIER OPTIONAL,
aid OCTET STRING (CONSTRAINED BY {-- Must be encoded in accordance with ISO/IEC 7816-4 --}) OPTIONAL,
... -- For future extensions
}
RecordInfo ::= SEQUENCE {
oDRecordLength [0] INTEGER (0..cia-ub-recordLength) OPTIONAL,
prKDRecordLength [1] INTEGER (0..cia-ub-recordLength) OPTIONAL,
puKDRecordLength [2] INTEGER (0..cia-ub-recordLength) OPTIONAL,
sKDRecordLength [3] INTEGER (0..cia-ub-recordLength) OPTIONAL,
cDRecordLength [4] INTEGER (0..cia-ub-recordLength) OPTIONAL,
dCODRecordLength [5] INTEGER (0..cia-ub-recordLength) OPTIONAL,
aODRecordLength [6] INTEGER (0..cia-ub-recordLength) OPTIONAL
}
AlgorithmInfo ::= SEQUENCE {
reference Reference,
algorithm CIO-ALGORITHM.&id ({AlgorithmSet}),
parameters CIO-ALGORITHM.&Parameters ({AlgorithmSet} {@algorithm}),
supportedOperations CIO-ALGORITHM.&Operations ({AlgorithmSet} {@algorithm}),
objId CIO-ALGORITHM.&objectIdentifier ({AlgorithmSet} {@algorithm}),
algRef Reference OPTIONAL
}
CIO-ALGORITHM ::= CLASS {
&id INTEGER UNIQUE,
&Parameters,
&Operations Operations,
&objectIdentifier OBJECT IDENTIFIER OPTIONAL
}
WITH SYNTAX {
PARAMETERS &Parameters OPERATIONS &Operations ID &id [OID &objectIdentifier]
}
CIO-OPAQUE ::= TYPE-IDENTIFIER
PublicKeyOperations ::= Operations
Operations ::= BIT STRING {
compute-checksum (0), -- H/W computation of checksum
compute-signature (1), -- H/W computation of signature
verify-checksum (2), -- H/W verification of checksum
verify-signature (3), -- H/W verification of signature
encipher (4), -- H/W encryption of data
decipher (5), -- H/W decryption of data
hash (6), -- H/W hashing
generate-key (7), -- H/W key generation
derive-key (8) -- H/W key derivation
}
cia-alg-null CIO-ALGORITHM ::= {PARAMETERS NULL OPERATIONS {{generate-key}} ID -1}
AlgorithmSet CIO-ALGORITHM ::= {
cia-alg-null,
... -- See PKCS #11 for possible values for the &id component (and parameters)
}
LastUpdate ::= CHOICE {
generalizedTime GeneralizedTime,
referencedTime ReferencedValue,
... -- For future extensions
} (CONSTRAINED BY {-- The value for referencedTime shall be of type GeneralizedTime --})
ProfileIndication ::= CHOICE {
profileOID OBJECT IDENTIFIER,
profileName UTF8String,
... -- For future extensions
}
-- A.11 CIO DDO
CIODDO ::= SEQUENCE {
providerId OBJECT IDENTIFIER OPTIONAL,
odfPath Path OPTIONAL,
ciaInfoPath [0] Path OPTIONAL,
aid [APPLICATION 15] OCTET STRING (CONSTRAINED BY {-- Must be an AID in accordance with ISO/IEC 7816-4--}) OPTIONAL,
securityFileOrObject SET OF SecurityFileOrObject OPTIONAL,
... -- For future extensions
} -- Context tag 1 is historical and shall not be used
SecurityFileOrObject ::= SEQUENCE {
label Label OPTIONAL,
communicationMode CommunicationMode OPTIONAL,
fileOrObjectPath Path,
protocol OBJECT IDENTIFIER OPTIONAL,
cioSecurityId INTEGER OPTIONAL,
index [0] INTEGER (0..cia-ub-index) OPTIONAL,
precondition [1] INTEGER (0..cia-ub-index) OPTIONAL,
... -- For future extensions
}
END