From e1deef34134138185a887cfe0fdf9fcce177d5b6 Mon Sep 17 00:00:00 2001 From: Alexandr Kitaev Date: Tue, 30 Apr 2024 20:06:36 +0300 Subject: [PATCH] Add STB (Belarus standarts) to const-oid --- const-oid/oiddbgen/src/main.rs | 8 + const-oid/oiddbgen/stb/bake.asn | 15 ++ const-oid/oiddbgen/stb/bash.asn | 34 +++ const-oid/oiddbgen/stb/belt.asn | 53 ++++ const-oid/oiddbgen/stb/bign.asn | 69 +++++ const-oid/oiddbgen/stb/bpki.asn | 129 +++++++++ const-oid/oiddbgen/stb/brng.asn | 20 ++ const-oid/oiddbgen/stb/btok.asn | 109 ++++++++ const-oid/src/db/gen.rs | 458 ++++++++++++++++++++++++++++++++ 9 files changed, 895 insertions(+) create mode 100644 const-oid/oiddbgen/stb/bake.asn create mode 100644 const-oid/oiddbgen/stb/bash.asn create mode 100644 const-oid/oiddbgen/stb/belt.asn create mode 100644 const-oid/oiddbgen/stb/bign.asn create mode 100644 const-oid/oiddbgen/stb/bpki.asn create mode 100644 const-oid/oiddbgen/stb/brng.asn create mode 100644 const-oid/oiddbgen/stb/btok.asn diff --git a/const-oid/oiddbgen/src/main.rs b/const-oid/oiddbgen/src/main.rs index 7e8fe102b..6e9680561 100644 --- a/const-oid/oiddbgen/src/main.rs +++ b/const-oid/oiddbgen/src/main.rs @@ -27,6 +27,14 @@ const MDS: &[(&str, &str)] = &[ ("rfc8894", include_str!("../rfc8894.md")), // Created from: https://trustedcomputinggroup.org ("tcgtpm", include_str!("../tcg-tpm.md")), + // Created from: https://github.com/bcrypto + ("belt", include_str!("../stb/belt.asn")), + ("bign", include_str!("../stb/bign.asn")), + ("bpki", include_str!("../stb/bpki.asn")), + ("btok", include_str!("../stb/btok.asn")), + ("brng", include_str!("../stb/brng.asn")), + ("bash", include_str!("../stb/bash.asn")), + ("bake", include_str!("../stb/bake.asn")) ]; // Bases defined in other places. diff --git a/const-oid/oiddbgen/stb/bake.asn b/const-oid/oiddbgen/stb/bake.asn new file mode 100644 index 000000000..5ae1967c2 --- /dev/null +++ b/const-oid/oiddbgen/stb/bake.asn @@ -0,0 +1,15 @@ +Bake-module-v1 {iso(1) member-body(2) by(112) 0 2 0 34 101 66 module(1) ver1(1)} +DEFINITIONS ::= +BEGIN + bake OBJECT IDENTIFIER ::= {iso(1) member-body(2) by(112) 0 2 0 34 101 66} + + bake-bmqv OBJECT IDENTIFIER ::= {bake 11} + bake-bsts OBJECT IDENTIFIER ::= {bake 12} + bake-bpace OBJECT IDENTIFIER ::= {bake 21} + bake-dh OBJECT IDENTIFIER ::= {bake 31} + bake-kdf OBJECT IDENTIFIER ::= {bake 101} + bake-swu OBJECT IDENTIFIER ::= {bake 201} + + bake-keys OBJECT IDENTIFIER ::= {bake keys(2)} + bake-pubkey OBJECT IDENTIFIER ::= {bake-keys 1} +END \ No newline at end of file diff --git a/const-oid/oiddbgen/stb/bash.asn b/const-oid/oiddbgen/stb/bash.asn new file mode 100644 index 000000000..744a202b3 --- /dev/null +++ b/const-oid/oiddbgen/stb/bash.asn @@ -0,0 +1,34 @@ +Bash-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 77 module(1) ver2(2)} +DEFINITIONS ::= +BEGIN + IMPORTS + bign + FROM Bign-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 45 + module(1) ver2(2)}; + + bash OBJECT IDENTIFIER ::= {iso(1) member-body(2) by(112) 0 2 0 34 101 77} + + bash256 OBJECT IDENTIFIER ::= {bash 11} + bash384 OBJECT IDENTIFIER ::= {bash 12} + bash512 OBJECT IDENTIFIER ::= {bash 13} + bash-prg-hash2561 OBJECT IDENTIFIER ::= {bash 21} + bash-prg-hash2562 OBJECT IDENTIFIER ::= {bash 22} + bash-prg-hash3841 OBJECT IDENTIFIER ::= {bash 23} + bash-prg-hash3842 OBJECT IDENTIFIER ::= {bash 24} + bash-prg-hash5121 OBJECT IDENTIFIER ::= {bash 25} + bash-prg-hash5122 OBJECT IDENTIFIER ::= {bash 26} + bash-prg-ae1281 OBJECT IDENTIFIER ::= {bash 31} + bash-prg-ae1282 OBJECT IDENTIFIER ::= {bash 32} + bash-prg-ae1921 OBJECT IDENTIFIER ::= {bash 33} + bash-prg-ae1922 OBJECT IDENTIFIER ::= {bash 34} + bash-prg-ae2561 OBJECT IDENTIFIER ::= {bash 35} + bash-prg-ae2562 OBJECT IDENTIFIER ::= {bash 36} + bash-f OBJECT IDENTIFIER ::= {bash 101} + + bign-with-bash256 OBJECT IDENTIFIER ::= {bign 13} + bign-with-bash384 OBJECT IDENTIFIER ::= {bign 14} + bign-with-bash512 OBJECT IDENTIFIER ::= {bign 15} + bign-ibs-with-bash256 OBJECT IDENTIFIER ::= {bign 73} + bign-ibs-with-bash384 OBJECT IDENTIFIER ::= {bign 74} + bign-ibs-with-bash512 OBJECT IDENTIFIER ::= {bign 75} +END \ No newline at end of file diff --git a/const-oid/oiddbgen/stb/belt.asn b/const-oid/oiddbgen/stb/belt.asn new file mode 100644 index 000000000..5ef3facd3 --- /dev/null +++ b/const-oid/oiddbgen/stb/belt.asn @@ -0,0 +1,53 @@ +Belt-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 31 module(1) ver2(2)} +DEFINITIONS ::= +BEGIN + belt OBJECT IDENTIFIER ::= {iso(1) member-body(2) by(112) 0 2 0 34 101 31} + + belt-block128 OBJECT IDENTIFIER ::= {belt 3} + belt-block192 OBJECT IDENTIFIER ::= {belt 4} + belt-block256 OBJECT IDENTIFIER ::= {belt 5} + belt-wblock128 OBJECT IDENTIFIER ::= {belt 6} + belt-wblock192 OBJECT IDENTIFIER ::= {belt 7} + belt-wblock256 OBJECT IDENTIFIER ::= {belt 8} + belt-compress OBJECT IDENTIFIER ::= {belt 9} + belt-ecb128 OBJECT IDENTIFIER ::= {belt 11} + belt-ecb192 OBJECT IDENTIFIER ::= {belt 12} + belt-ecb256 OBJECT IDENTIFIER ::= {belt 13} + belt-cbc128 OBJECT IDENTIFIER ::= {belt 21} + belt-cbc192 OBJECT IDENTIFIER ::= {belt 22} + belt-cbc256 OBJECT IDENTIFIER ::= {belt 23} + belt-cfb128 OBJECT IDENTIFIER ::= {belt 31} + belt-cfb192 OBJECT IDENTIFIER ::= {belt 32} + belt-cfb256 OBJECT IDENTIFIER ::= {belt 33} + belt-ctr128 OBJECT IDENTIFIER ::= {belt 41} + belt-ctr192 OBJECT IDENTIFIER ::= {belt 42} + belt-ctr256 OBJECT IDENTIFIER ::= {belt 43} + belt-mac128 OBJECT IDENTIFIER ::= {belt 51} + belt-mac192 OBJECT IDENTIFIER ::= {belt 52} + belt-mac256 OBJECT IDENTIFIER ::= {belt 53} + belt-dwp128 OBJECT IDENTIFIER ::= {belt 61} + belt-dwp192 OBJECT IDENTIFIER ::= {belt 62} + belt-dwp256 OBJECT IDENTIFIER ::= {belt 63} + belt-che128 OBJECT IDENTIFIER ::= {belt 64} + belt-che192 OBJECT IDENTIFIER ::= {belt 65} + belt-che256 OBJECT IDENTIFIER ::= {belt 66} + belt-kwp128 OBJECT IDENTIFIER ::= {belt 71} + belt-kwp192 OBJECT IDENTIFIER ::= {belt 72} + belt-kwp256 OBJECT IDENTIFIER ::= {belt 73} + belt-hash OBJECT IDENTIFIER ::= {belt 81} + belt-keyexpand OBJECT IDENTIFIER ::= {belt 91} + belt-keyrep OBJECT IDENTIFIER ::= {belt 101} + belt-bde128 OBJECT IDENTIFIER ::= {belt 111} + belt-bde192 OBJECT IDENTIFIER ::= {belt 112} + belt-bde256 OBJECT IDENTIFIER ::= {belt 113} + belt-sde128 OBJECT IDENTIFIER ::= {belt 121} + belt-sde192 OBJECT IDENTIFIER ::= {belt 122} + belt-sde256 OBJECT IDENTIFIER ::= {belt 123} + belt-fmt128 OBJECT IDENTIFIER ::= {belt 131} + belt-fmt192 OBJECT IDENTIFIER ::= {belt 132} + belt-fmt256 OBJECT IDENTIFIER ::= {belt 133} + + IV ::= OCTET STRING (SIZE(16)) + KeyHeader ::= OCTET STRING (SIZE(16)) + KeyLevel ::= OCTET STRING (SIZE(12)) +END \ No newline at end of file diff --git a/const-oid/oiddbgen/stb/bign.asn b/const-oid/oiddbgen/stb/bign.asn new file mode 100644 index 000000000..312704152 --- /dev/null +++ b/const-oid/oiddbgen/stb/bign.asn @@ -0,0 +1,69 @@ +Bign-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 45 module(1) ver2(2)} +DEFINITIONS ::= +BEGIN + bign OBJECT IDENTIFIER ::= {iso(1) member-body(2) by(112) 0 2 0 34 101 45} + + bign-with-hspec OBJECT IDENTIFIER ::= {bign 11} + bign-with-hbelt OBJECT IDENTIFIER ::= {bign 12} + bign-genec OBJECT IDENTIFIER ::= {bign 21} + bign-valec OBJECT IDENTIFIER ::= {bign 22} + bign-genkeypair OBJECT IDENTIFIER ::= {bign 31} + bign-valpubkey OBJECT IDENTIFIER ::= {bign 32} + bign-keytransport OBJECT IDENTIFIER ::= {bign 41} + bign-genk OBJECT IDENTIFIER ::= {bign 61} + bign-ibs-with-hspec OBJECT IDENTIFIER ::= {bign 71} + bign-ibs-with-hbelt OBJECT IDENTIFIER ::= {bign 72} + + bign-keys OBJECT IDENTIFIER ::= {bign keys(2)} + bign-pubkey OBJECT IDENTIFIER ::= {bign-keys 1} + + bign-curves OBJECT IDENTIFIER ::= {bign curves(3)} + bign-curve256v1 OBJECT IDENTIFIER ::= {bign-curves 1} + bign-curve384v1 OBJECT IDENTIFIER ::= {bign-curves 2} + bign-curve512v1 OBJECT IDENTIFIER ::= {bign-curves 3} + + bign-fields OBJECT IDENTIFIER ::= {bign fields(4)} + bign-primefield OBJECT IDENTIFIER ::= {bign-fields prime(1)} + + AlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER, + parameters ANY DEFINED BY algorithm OPTIONAL + } + + DomainParameters ::= CHOICE { + specified ECParameters, + named OBJECT IDENTIFIER, + implicit NULL + } + + ECParameters ::= SEQUENCE { + version INTEGER {ecpVer1(1)} (ecpVer1), + fieldID FieldID, + curve Curve, + base OCTET STRING (SIZE(32|48|64)), + order INTEGER, + cofactor INTEGER (1) OPTIONAL + } + + FieldID ::= SEQUENCE { + fieldType OBJECT IDENTIFIER (bign-primefield), + parameters INTEGER + } + + Curve ::= SEQUENCE { + a OCTET STRING (SIZE(32|48|64)), + b OCTET STRING (SIZE(32|48|64)), + seed BIT STRING (SIZE(64)) + } + + PublicKey ::= BIT STRING (SIZE(512|768|1024)) + + SubjectPublicKeyInfo ::= SEQUENCE { + algorithm AlgorithmIdentifier, + subjectPublicKey PublicKey + } + + Signature ::= BIT STRING (SIZE(384|576|768)) + SignatureValue ::= OCTET STRING (SIZE(48|72|96)) + IdSignatureValue ::= OCTET STRING (SIZE(112|168|224)) +END \ No newline at end of file diff --git a/const-oid/oiddbgen/stb/bpki.asn b/const-oid/oiddbgen/stb/bpki.asn new file mode 100644 index 000000000..64ddc93a0 --- /dev/null +++ b/const-oid/oiddbgen/stb/bpki.asn @@ -0,0 +1,129 @@ +Bpki-module-v1 {iso(1) member-body(2) by(112) 0 2 0 34 101 78 module(1) ver1(1)} +DEFINITIONS ::= +BEGIN + IMPORTS + CRLReason, Name + FROM PKIX1Explicit88 {iso(1) identified-organization(3) + dod(6) internet(1) security(5) mechanisms(5) pkix(7) + id-mod(0) id-pkix1-explicit-88(1)} + PKIStatusInfo + FROM PKIXTSP {iso(1) identified-organization(3) dod(6) internet(1) + security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-tsp(13)} + belt-keywrap256 + FROM Belt-module-v1 {iso(1) member-body(2) by(112) 0 2 0 34 101 31 1 1} + bign-pubkey, bign-curve256v1, bign-curve384v1, bign-curve512v1 + FROM Bign-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 45 1 2} + hmac-hbelt + FROM Brng-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 47 1 2} + bels-share, bels-m0128v1, bels-m0192v1, bels-m0256v1 + FROM Bels-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 60 1 2} + id-PBKDF2, id-PBES2 + FROM PKCS5v2-1 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) + pkcs-5(5) modules(16) pkcs5v2-1(2)}; + + bpki OBJECT IDENTIFIER ::= {iso(1) member-body(2) by(112) 0 2 0 34 101 78} + + bpki-role OBJECT IDENTIFIER ::= {bpki 2} + bpki-role-ca0 OBJECT IDENTIFIER ::= {bpki-role 0} + bpki-role-ca1 OBJECT IDENTIFIER ::= {bpki-role 1} + bpki-role-ca2 OBJECT IDENTIFIER ::= {bpki-role 2} + bpki-role-aa OBJECT IDENTIFIER ::= {bpki-role 10} + bpki-role-ra OBJECT IDENTIFIER ::= {bpki-role 20} + bpki-role-ocsp OBJECT IDENTIFIER ::= {bpki-role 30} + bpki-role-tsa OBJECT IDENTIFIER ::= {bpki-role 31} + bpki-role-dvcs OBJECT IDENTIFIER ::= {bpki-role 32} + bpki-role-ids OBJECT IDENTIFIER ::= {bpki-role 33} + bpki-role-tls OBJECT IDENTIFIER ::= {bpki-role 50} + -- natural persons + bpki-role-np OBJECT IDENTIFIER ::= {bpki-role 60} + -- foreign natural persons + bpki-role-fnp OBJECT IDENTIFIER ::= {bpki-role 61} + -- legal representatives + bpki-role-lr OBJECT IDENTIFIER ::= {bpki-role 62} + -- autonomous cryptographic devices + bpki-role-acd OBJECT IDENTIFIER ::= {bpki-role 70} + + -- extended key usage + bpki-eku OBJECT IDENTIFIER ::= {bpki 3} + -- server of Terminal Mode + bpki-eku-serverTM OBJECT IDENTIFIER ::= {bpki-eku 1} + -- client of Terminal Mode + bpki-eku-clientTM OBJECT IDENTIFIER ::= {bpki-eku 2} + + -- attributes + bpki-at OBJECT IDENTIFIER ::= {bpki 4} + -- certificate validity period + bpki-at-certificateValidity OBJECT IDENTIFIER ::= {bpki-at 1} + + -- content types + bpki-ct OBJECT IDENTIFIER ::= {bpki 5} + bpki-ct-enroll1-req OBJECT IDENTIFIER ::= {bpki-ct 1} + bpki-ct-enroll2-req OBJECT IDENTIFIER ::= {bpki-ct 2} + bpki-ct-reenroll-req OBJECT IDENTIFIER ::= {bpki-ct 3} + bpki-ct-spawn-req OBJECT IDENTIFIER ::= {bpki-ct 4} + bpki-ct-setpwd-req OBJECT IDENTIFIER ::= {bpki-ct 5} + bpki-ct-revoke-req OBJECT IDENTIFIER ::= {bpki-ct 6} + bpki-ct-resp OBJECT IDENTIFIER ::= {bpki-ct 7} + + BPKIRevokeReq ::= SEQUENCE { + issuer Name, + serialNumber INTEGER, + revokePwd UTF8String, + reasonCode CRLReason, + invalidityDate GeneralizedTime OPTIONAL, + comment UTF8String OPTIONAL } + + BPKIResp ::= SEQUENCE { + statusInfo PKIStatusInfo, + requestId OCTET STRING(SIZE(32)), + nonce OCTET STRING(SIZE(8)) OPTIONAL } + + BPKIRetrieveReq ::= SEQUENCE { + requestId OCTET STRING(SIZE(32)), + nonce OCTET STRING(SIZE(8)) } + + PrivateKeyInfo ::= SEQUENCE { + version INTEGER(0), + keyAlgorithm CHOICE { + bignPrivkeyAlgorithm BignAlgorithmIdentifier, + belsSharekeyAlgorithm BelsAlgorithmIdentifier }, + key OCTET STRING } + + BignAlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER(bign-pubkey), + params OBJECT IDENTIFIER(bign-curve256v1 | bign-curve384v1 | + bign-curve512v1) } + + BelsAlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER(bels-share), + params OBJECT IDENTIFIER(bels-m0128v1 | bels-m0192v1 | bels-m0256v1) } + + EncryptedPrivateKeyInfo ::= SEQUENCE { + encryptionAlgorithm EncryptionAlgorithmIdentifier, + encryptedData OCTET STRING } + + EncryptionAlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER(id-PBES2), + params PBES2-params } + + PBES2-params ::= SEQUENCE { + keyDerivationFunc PBKDF2AlgorithmIdentifier, + encryptionScheme BeltKeywrapAlgorithmIdentifier } + + PBKDF2AlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER(id-PBKDF2), + params PBKDF2-params } + + BeltKeywrapAlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER(belt-keywrap256), + params NULL } + + PBKDF2-params ::= SEQUENCE { + salt OCTET STRING(SIZE(8)), + iterationCount INTEGER (10000..MAX), + prf PrfAlgorithmIdentifier } + + PrfAlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER(hmac-hbelt), + params NULL } +END \ No newline at end of file diff --git a/const-oid/oiddbgen/stb/brng.asn b/const-oid/oiddbgen/stb/brng.asn new file mode 100644 index 000000000..b432ebf35 --- /dev/null +++ b/const-oid/oiddbgen/stb/brng.asn @@ -0,0 +1,20 @@ +Brng-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 47 module(1) ver2(2)} +DEFINITIONS ::= +BEGIN + brng OBJECT IDENTIFIER ::= {1 2 112 0 2 0 34 101 47} + + hmac-hspec OBJECT IDENTIFIER ::= {brng 11} + hmac-hbelt OBJECT IDENTIFIER ::= {brng 12} + brng-ctr-hspec OBJECT IDENTIFIER ::= {brng 21} + brng-ctr-hbelt OBJECT IDENTIFIER ::= {brng 22} + brng-ctr-stb11761 OBJECT IDENTIFIER ::= {brng 23} + brng-hmac-hspec OBJECT IDENTIFIER ::= {brng 31} + brng-hmac-hbelt OBJECT IDENTIFIER ::= {brng 32} + + hotp-hspec OBJECT IDENTIFIER ::= {brng 111} + hotp-hbelt OBJECT IDENTIFIER ::= {brng 112} + totp-hspec OBJECT IDENTIFIER ::= {brng 121} + totp-hbelt OBJECT IDENTIFIER ::= {brng 122} + ocra-hspec OBJECT IDENTIFIER ::= {brng 131} + ocra-hbelt OBJECT IDENTIFIER ::= {brng 132} +END diff --git a/const-oid/oiddbgen/stb/btok.asn b/const-oid/oiddbgen/stb/btok.asn new file mode 100644 index 000000000..b58d1d790 --- /dev/null +++ b/const-oid/oiddbgen/stb/btok.asn @@ -0,0 +1,109 @@ +Btok-module-v1 {iso(1) member-body(2) by(112) 0 2 0 34 101 79 module(1) ver1(1)} +DEFINITIONS IMPLICIT TAGS ::= +BEGIN + IMPORTS + PublicKey + FROM Bign-module-v2 {iso(1) member-body(2) by(112) 0 2 0 34 101 45 + module(1) ver2(2)}; + + btok OBJECT IDENTIFIER ::= {iso(1) member-body(2) by(112) 0 2 0 34 101 79} + + btok-bauth OBJECT IDENTIFIER ::= {btok 11} + btok-bauth1 OBJECT IDENTIFIER ::= {btok 12} + + btok-attrs OBJECT IDENTIFIER ::= {btok 5} + id-DocumentValidity OBJECT IDENTIFIER ::= {btok-attrs 1} + id-AgeVerification OBJECT IDENTIFIER ::= {btok-attrs 2} + id-PlaceVerification OBJECT IDENTIFIER ::= {btok-attrs 3} + + btok-access OBJECT IDENTIFIER ::= {btok 6} + id-eIdAccess OBJECT IDENTIFIER ::= {btok-access 1} + id-eSignAccess OBJECT IDENTIFIER ::= {btok-access 2} + + btok-apps OBJECT IDENTIFIER ::= {btok 7} + id-eID OBJECT IDENTIFIER ::= {btok-apps 1} + id-eSign OBJECT IDENTIFIER ::= {btok-apps 2} + + btok-cvext OBJECT IDENTIFIER ::= {btok 8} + id-SignAuthExt OBJECT IDENTIFIER ::= {btok-cvext 1} + + SerialNumber ::= [APPLICATION 1] PrintableString(SIZE(14..18)) + IssuingState ::= [APPLICATION 2] Country + DateOfExpiry ::= [APPLICATION 3] Date + GivenName ::= [APPLICATION 4] UTF8String + FamilyName ::= [APPLICATION 5] UTF8String + MiddleName ::= [APPLICATION 6] UTF8String + PersonalNumber ::= [APPLICATION 7] PrintableString(SIZE(7..64)) + DateOfBirth ::= [APPLICATION 8] Date + PlaceOfBirth ::= [APPLICATION 9] GeneralPlace + Nationality ::= [APPLICATION 10] Country + Sex ::= [APPLICATION 11] ICAOSex + OptionalDataR ::= [APPLICATION 12] SET OF OptionalData + WrittenSignature ::= [APPLICATION 14] OCTET STRING + DateOfIssuance ::= [APPLICATION 15] Date + IssuanceBoard ::= [APPLICATION 16] UTF8String + PlaceOfResidence ::= [APPLICATION 17] GeneralPlace + DistrictID ::= [APPLICATION 18] PrintableString(SIZE(0..64)) + PhoneNumber ::= [APPLICATION 21] PrintableString + EmailAddress ::= [APPLICATION 22] IA5String + + ICAOString ::= PrintableString(FROM("A".."Z" | " ")) + Country ::= ICAOString(SIZE(3)) + ICAOSex ::= PrintableString(FROM("M"|"F"|" ")) + Date ::= NumericString(SIZE(8)) + + Place ::= SEQUENCE { + street [10] UTF8String OPTIONAL, + city [11] UTF8String, + state [12] UTF8String OPTIONAL, + country [13] Country, + zipcode [14] PrintableString OPTIONAL + } + + GeneralPlace ::= CHOICE { + structuredPlace Place, + freetextPlace [1] UTF8String, + noPlaceInfo [2] UTF8String + } + + OptionalData ::= SEQUENCE { + type OBJECT IDENTIFIER, + data ANY DEFINED BY type OPTIONAL + } + + AuthAuxData ::= [APPLICATION 7] SEQUENCE OF DiscretionaryDataTemplate + + DiscretionaryDataTemplate ::= [APPLICATION 19] SEQUENCE { + objIdentifier OBJECT IDENTIFIER, + dataObjects ANY DEFINED BY objIdentifier + } + + CertHAT ::= [APPLICATION 76] SEQUENCE { + objId OBJECT IDENTIFIER, + discretionaryData OCTET STRING + } + + CVCertificate ::= [APPLICATION 33] SEQUENCE { + certificateBody [APPLICATION 78] SEQUENCE { + certProfileIdentifier [APPLICATION 41] INTEGER {v1(0)}, + certAuthorityReference [APPLICATION 2] CharString, + publicKey [APPLICATION 73] PubKey, + certHolderReference [APPLICATION 32] CharString, + certHolderAuthorizationTemplate [APPLICATION 76] CertHAT OPTIONAL, + certEffectiveDate [APPLICATION 37] CVDate, + certExpirationDate [APPLICATION 36] CVDate, + certExtensions [APPLICATION 5] CVExt OPTIONAL + }, + signature [APPLICATION 55] OCTET STRING + } + + CharString ::= PrintableString(SIZE(8..12)) + + PubKey ::= SEQUENCE { + objIdentifier OBJECT IDENTIFIER, + pubKeyandParameters PublicKey + } + + CVDate ::= OCTET STRING(SIZE(6)) -- YYMMDD + CVExt ::= SEQUENCE OF DiscretionaryDataTemplate +END \ No newline at end of file diff --git a/const-oid/src/db/gen.rs b/const-oid/src/db/gen.rs index 89c530794..81a360ae4 100644 --- a/const-oid/src/db/gen.rs +++ b/const-oid/src/db/gen.rs @@ -1,4 +1,312 @@ #![doc = "!! DO NOT EDIT !!: This file is auto-generated by oiddbgen."] +pub mod bake { + pub const BAKE: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66"); + pub const BAKE_KDF: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.101"); + pub const BAKE_BMQV: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.11"); + pub const BAKE_BSTS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.12"); + pub const BAKE_KEYS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.2"); + pub const BAKE_PUBKEY: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.2.1"); + pub const BAKE_SWU: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.201"); + pub const BAKE_BPACE: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.21"); + pub const BAKE_DH: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.66.31"); +} +pub mod bash { + pub const BASH: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77"); + pub const BASH_F: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.101"); + pub const BASH_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.11"); + pub const BASH_384: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.12"); + pub const BASH_512: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.13"); + pub const BASH_PRG_HASH_2561: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.21"); + pub const BASH_PRG_HASH_2562: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.22"); + pub const BASH_PRG_HASH_3841: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.23"); + pub const BASH_PRG_HASH_3842: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.24"); + pub const BASH_PRG_HASH_5121: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.25"); + pub const BASH_PRG_HASH_5122: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.26"); + pub const BASH_PRG_AE_1281: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.31"); + pub const BASH_PRG_AE_1282: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.32"); + pub const BASH_PRG_AE_1921: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.33"); + pub const BASH_PRG_AE_1922: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.34"); + pub const BASH_PRG_AE_2561: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.35"); + pub const BASH_PRG_AE_2562: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.77.36"); +} +pub mod belt { + pub const BELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31"); + pub const BELT_KEYREP: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.101"); + pub const BELT_ECB_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.11"); + pub const BELT_BDE_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.111"); + pub const BELT_BDE_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.112"); + pub const BELT_BDE_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.113"); + pub const BELT_ECB_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.12"); + pub const BELT_SDE_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.121"); + pub const BELT_SDE_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.122"); + pub const BELT_SDE_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.123"); + pub const BELT_ECB_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.13"); + pub const BELT_FMT_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.131"); + pub const BELT_FMT_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.132"); + pub const BELT_FMT_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.133"); + pub const BELT_CBC_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.21"); + pub const BELT_CBC_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.22"); + pub const BELT_CBC_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.23"); + pub const BELT_BLOCK_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.3"); + pub const BELT_CFB_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.31"); + pub const BELT_CFB_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.32"); + pub const BELT_CFB_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.33"); + pub const BELT_BLOCK_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.4"); + pub const BELT_CTR_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.41"); + pub const BELT_CTR_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.42"); + pub const BELT_CTR_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.43"); + pub const BELT_BLOCK_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.5"); + pub const BELT_MAC_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.51"); + pub const BELT_MAC_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.52"); + pub const BELT_MAC_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.53"); + pub const BELT_WBLOCK_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.6"); + pub const BELT_DWP_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.61"); + pub const BELT_DWP_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.62"); + pub const BELT_DWP_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.63"); + pub const BELT_CHE_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.64"); + pub const BELT_CHE_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.65"); + pub const BELT_CHE_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.66"); + pub const BELT_WBLOCK_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.7"); + pub const BELT_KWP_128: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.71"); + pub const BELT_KWP_192: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.72"); + pub const BELT_KWP_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.73"); + pub const BELT_WBLOCK_256: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.8"); + pub const BELT_HASH: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.81"); + pub const BELT_COMPRESS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.9"); + pub const BELT_KEYEXPAND: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.31.91"); +} +pub mod bign { + pub const BIGN: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45"); + pub const BIGN_WITH_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.11"); + pub const BIGN_WITH_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.12"); + pub const BIGN_KEYS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.2"); + pub const BIGN_PUBKEY: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.2.1"); + pub const BIGN_GENEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.21"); + pub const BIGN_VALEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.22"); + pub const BIGN_CURVES: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.3"); + pub const BIGN_CURVE_256_V_1: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.3.1"); + pub const BIGN_CURVE_384_V_1: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.3.2"); + pub const BIGN_CURVE_512_V_1: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.3.3"); + pub const BIGN_GENKEYPAIR: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.31"); + pub const BIGN_VALPUBKEY: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.32"); + pub const BIGN_FIELDS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.4"); + pub const BIGN_PRIMEFIELD: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.4.1"); + pub const BIGN_KEYTRANSPORT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.41"); + pub const BIGN_GENK: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.61"); + pub const BIGN_IBS_WITH_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.71"); + pub const BIGN_IBS_WITH_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.45.72"); +} +pub mod bpki { + pub const BPKI: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78"); + pub const BPKI_ROLE: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2"); + pub const BPKI_ROLE_CA_0: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.0"); + pub const BPKI_ROLE_CA_1: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.1"); + pub const BPKI_ROLE_AA: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.10"); + pub const BPKI_ROLE_CA_2: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.2"); + pub const BPKI_ROLE_RA: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.20"); + pub const BPKI_ROLE_OCSP: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.30"); + pub const BPKI_ROLE_TSA: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.31"); + pub const BPKI_ROLE_DVCS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.32"); + pub const BPKI_ROLE_IDS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.33"); + pub const BPKI_ROLE_TLS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.50"); + pub const BPKI_ROLE_NP: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.60"); + pub const BPKI_ROLE_FNP: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.61"); + pub const BPKI_ROLE_LR: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.62"); + pub const BPKI_ROLE_ACD: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.2.70"); + pub const BPKI_EKU: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.3"); + pub const BPKI_EKU_SERVER_TM: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.3.1"); + pub const BPKI_EKU_CLIENT_TM: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.3.2"); + pub const BPKI_AT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.4"); + pub const BPKI_AT_CERTIFICATE_VALIDITY: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.4.1"); + pub const BPKI_CT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5"); + pub const BPKI_CT_ENROLL_1_REQ: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.1"); + pub const BPKI_CT_ENROLL_2_REQ: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.2"); + pub const BPKI_CT_REENROLL_REQ: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.3"); + pub const BPKI_CT_SPAWN_REQ: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.4"); + pub const BPKI_CT_SETPWD_REQ: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.5"); + pub const BPKI_CT_REVOKE_REQ: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.6"); + pub const BPKI_CT_RESP: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.78.5.7"); +} +pub mod brng { + pub const BRNG: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47"); + pub const HMAC_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.11"); + pub const HOTP_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.111"); + pub const HOTP_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.112"); + pub const HMAC_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.12"); + pub const TOTP_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.121"); + pub const TOTP_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.122"); + pub const OCRA_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.131"); + pub const OCRA_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.132"); + pub const BRNG_CTR_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.21"); + pub const BRNG_CTR_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.22"); + pub const BRNG_CTR_STB_11761: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.23"); + pub const BRNG_HMAC_HSPEC: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.31"); + pub const BRNG_HMAC_HBELT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.47.32"); +} +pub mod btok { + pub const BTOK: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79"); + pub const BTOK_BAUTH: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.11"); + pub const BTOK_BAUTH_1: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.12"); + pub const BTOK_ATTRS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.5"); + pub const ID_DOCUMENT_VALIDITY: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.5.1"); + pub const ID_AGE_VERIFICATION: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.5.2"); + pub const ID_PLACE_VERIFICATION: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.5.3"); + pub const BTOK_ACCESS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.6"); + pub const ID_E_ID_ACCESS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.6.1"); + pub const ID_E_SIGN_ACCESS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.6.2"); + pub const BTOK_APPS: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.7"); + pub const ID_EID: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.7.1"); + pub const ID_E_SIGN: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.7.2"); + pub const BTOK_CVEXT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.8"); + pub const ID_SIGN_AUTH_EXT: crate::ObjectIdentifier = + crate::ObjectIdentifier::new_unwrap("1.2.112.0.2.0.34.101.79.8.1"); +} pub mod fips202 { pub const NIST_ALGORITHMS: crate::ObjectIdentifier = crate::ObjectIdentifier::new_unwrap("2.16.840.1.101.3.4"); @@ -2500,6 +2808,156 @@ pub mod tcgtpm { crate::ObjectIdentifier::new_unwrap("2.23.133.8.3"); } pub const DB: super::Database<'static> = super::Database(&[ + (&bake::BAKE, "bake"), + (&bake::BAKE_KDF, "bake-kdf"), + (&bake::BAKE_BMQV, "bake-bmqv"), + (&bake::BAKE_BSTS, "bake-bsts"), + (&bake::BAKE_KEYS, "bake-keys"), + (&bake::BAKE_PUBKEY, "bake-pubkey"), + (&bake::BAKE_SWU, "bake-swu"), + (&bake::BAKE_BPACE, "bake-bpace"), + (&bake::BAKE_DH, "bake-dh"), + (&bash::BASH, "bash"), + (&bash::BASH_F, "bash-f"), + (&bash::BASH_256, "bash256"), + (&bash::BASH_384, "bash384"), + (&bash::BASH_512, "bash512"), + (&bash::BASH_PRG_HASH_2561, "bash-prg-hash2561"), + (&bash::BASH_PRG_HASH_2562, "bash-prg-hash2562"), + (&bash::BASH_PRG_HASH_3841, "bash-prg-hash3841"), + (&bash::BASH_PRG_HASH_3842, "bash-prg-hash3842"), + (&bash::BASH_PRG_HASH_5121, "bash-prg-hash5121"), + (&bash::BASH_PRG_HASH_5122, "bash-prg-hash5122"), + (&bash::BASH_PRG_AE_1281, "bash-prg-ae1281"), + (&bash::BASH_PRG_AE_1282, "bash-prg-ae1282"), + (&bash::BASH_PRG_AE_1921, "bash-prg-ae1921"), + (&bash::BASH_PRG_AE_1922, "bash-prg-ae1922"), + (&bash::BASH_PRG_AE_2561, "bash-prg-ae2561"), + (&bash::BASH_PRG_AE_2562, "bash-prg-ae2562"), + (&belt::BELT, "belt"), + (&belt::BELT_KEYREP, "belt-keyrep"), + (&belt::BELT_ECB_128, "belt-ecb128"), + (&belt::BELT_BDE_128, "belt-bde128"), + (&belt::BELT_BDE_192, "belt-bde192"), + (&belt::BELT_BDE_256, "belt-bde256"), + (&belt::BELT_ECB_192, "belt-ecb192"), + (&belt::BELT_SDE_128, "belt-sde128"), + (&belt::BELT_SDE_192, "belt-sde192"), + (&belt::BELT_SDE_256, "belt-sde256"), + (&belt::BELT_ECB_256, "belt-ecb256"), + (&belt::BELT_FMT_128, "belt-fmt128"), + (&belt::BELT_FMT_192, "belt-fmt192"), + (&belt::BELT_FMT_256, "belt-fmt256"), + (&belt::BELT_CBC_128, "belt-cbc128"), + (&belt::BELT_CBC_192, "belt-cbc192"), + (&belt::BELT_CBC_256, "belt-cbc256"), + (&belt::BELT_BLOCK_128, "belt-block128"), + (&belt::BELT_CFB_128, "belt-cfb128"), + (&belt::BELT_CFB_192, "belt-cfb192"), + (&belt::BELT_CFB_256, "belt-cfb256"), + (&belt::BELT_BLOCK_192, "belt-block192"), + (&belt::BELT_CTR_128, "belt-ctr128"), + (&belt::BELT_CTR_192, "belt-ctr192"), + (&belt::BELT_CTR_256, "belt-ctr256"), + (&belt::BELT_BLOCK_256, "belt-block256"), + (&belt::BELT_MAC_128, "belt-mac128"), + (&belt::BELT_MAC_192, "belt-mac192"), + (&belt::BELT_MAC_256, "belt-mac256"), + (&belt::BELT_WBLOCK_128, "belt-wblock128"), + (&belt::BELT_DWP_128, "belt-dwp128"), + (&belt::BELT_DWP_192, "belt-dwp192"), + (&belt::BELT_DWP_256, "belt-dwp256"), + (&belt::BELT_CHE_128, "belt-che128"), + (&belt::BELT_CHE_192, "belt-che192"), + (&belt::BELT_CHE_256, "belt-che256"), + (&belt::BELT_WBLOCK_192, "belt-wblock192"), + (&belt::BELT_KWP_128, "belt-kwp128"), + (&belt::BELT_KWP_192, "belt-kwp192"), + (&belt::BELT_KWP_256, "belt-kwp256"), + (&belt::BELT_WBLOCK_256, "belt-wblock256"), + (&belt::BELT_HASH, "belt-hash"), + (&belt::BELT_COMPRESS, "belt-compress"), + (&belt::BELT_KEYEXPAND, "belt-keyexpand"), + (&bign::BIGN, "bign"), + (&bign::BIGN_WITH_HSPEC, "bign-with-hspec"), + (&bign::BIGN_WITH_HBELT, "bign-with-hbelt"), + (&bign::BIGN_KEYS, "bign-keys"), + (&bign::BIGN_PUBKEY, "bign-pubkey"), + (&bign::BIGN_GENEC, "bign-genec"), + (&bign::BIGN_VALEC, "bign-valec"), + (&bign::BIGN_CURVES, "bign-curves"), + (&bign::BIGN_CURVE_256_V_1, "bign-curve256v1"), + (&bign::BIGN_CURVE_384_V_1, "bign-curve384v1"), + (&bign::BIGN_CURVE_512_V_1, "bign-curve512v1"), + (&bign::BIGN_GENKEYPAIR, "bign-genkeypair"), + (&bign::BIGN_VALPUBKEY, "bign-valpubkey"), + (&bign::BIGN_FIELDS, "bign-fields"), + (&bign::BIGN_PRIMEFIELD, "bign-primefield"), + (&bign::BIGN_KEYTRANSPORT, "bign-keytransport"), + (&bign::BIGN_GENK, "bign-genk"), + (&bign::BIGN_IBS_WITH_HSPEC, "bign-ibs-with-hspec"), + (&bign::BIGN_IBS_WITH_HBELT, "bign-ibs-with-hbelt"), + (&bpki::BPKI, "bpki"), + (&bpki::BPKI_ROLE, "bpki-role"), + (&bpki::BPKI_ROLE_CA_0, "bpki-role-ca0"), + (&bpki::BPKI_ROLE_CA_1, "bpki-role-ca1"), + (&bpki::BPKI_ROLE_AA, "bpki-role-aa"), + (&bpki::BPKI_ROLE_CA_2, "bpki-role-ca2"), + (&bpki::BPKI_ROLE_RA, "bpki-role-ra"), + (&bpki::BPKI_ROLE_OCSP, "bpki-role-ocsp"), + (&bpki::BPKI_ROLE_TSA, "bpki-role-tsa"), + (&bpki::BPKI_ROLE_DVCS, "bpki-role-dvcs"), + (&bpki::BPKI_ROLE_IDS, "bpki-role-ids"), + (&bpki::BPKI_ROLE_TLS, "bpki-role-tls"), + (&bpki::BPKI_ROLE_NP, "bpki-role-np"), + (&bpki::BPKI_ROLE_FNP, "bpki-role-fnp"), + (&bpki::BPKI_ROLE_LR, "bpki-role-lr"), + (&bpki::BPKI_ROLE_ACD, "bpki-role-acd"), + (&bpki::BPKI_EKU, "bpki-eku"), + (&bpki::BPKI_EKU_SERVER_TM, "bpki-eku-serverTM"), + (&bpki::BPKI_EKU_CLIENT_TM, "bpki-eku-clientTM"), + (&bpki::BPKI_AT, "bpki-at"), + ( + &bpki::BPKI_AT_CERTIFICATE_VALIDITY, + "bpki-at-certificateValidity", + ), + (&bpki::BPKI_CT, "bpki-ct"), + (&bpki::BPKI_CT_ENROLL_1_REQ, "bpki-ct-enroll1-req"), + (&bpki::BPKI_CT_ENROLL_2_REQ, "bpki-ct-enroll2-req"), + (&bpki::BPKI_CT_REENROLL_REQ, "bpki-ct-reenroll-req"), + (&bpki::BPKI_CT_SPAWN_REQ, "bpki-ct-spawn-req"), + (&bpki::BPKI_CT_SETPWD_REQ, "bpki-ct-setpwd-req"), + (&bpki::BPKI_CT_REVOKE_REQ, "bpki-ct-revoke-req"), + (&bpki::BPKI_CT_RESP, "bpki-ct-resp"), + (&brng::BRNG, "brng"), + (&brng::HMAC_HSPEC, "hmac-hspec"), + (&brng::HOTP_HSPEC, "hotp-hspec"), + (&brng::HOTP_HBELT, "hotp-hbelt"), + (&brng::HMAC_HBELT, "hmac-hbelt"), + (&brng::TOTP_HSPEC, "totp-hspec"), + (&brng::TOTP_HBELT, "totp-hbelt"), + (&brng::OCRA_HSPEC, "ocra-hspec"), + (&brng::OCRA_HBELT, "ocra-hbelt"), + (&brng::BRNG_CTR_HSPEC, "brng-ctr-hspec"), + (&brng::BRNG_CTR_HBELT, "brng-ctr-hbelt"), + (&brng::BRNG_CTR_STB_11761, "brng-ctr-stb11761"), + (&brng::BRNG_HMAC_HSPEC, "brng-hmac-hspec"), + (&brng::BRNG_HMAC_HBELT, "brng-hmac-hbelt"), + (&btok::BTOK, "btok"), + (&btok::BTOK_BAUTH, "btok-bauth"), + (&btok::BTOK_BAUTH_1, "btok-bauth1"), + (&btok::BTOK_ATTRS, "btok-attrs"), + (&btok::ID_DOCUMENT_VALIDITY, "id-DocumentValidity"), + (&btok::ID_AGE_VERIFICATION, "id-AgeVerification"), + (&btok::ID_PLACE_VERIFICATION, "id-PlaceVerification"), + (&btok::BTOK_ACCESS, "btok-access"), + (&btok::ID_E_ID_ACCESS, "id-eIdAccess"), + (&btok::ID_E_SIGN_ACCESS, "id-eSignAccess"), + (&btok::BTOK_APPS, "btok-apps"), + (&btok::ID_EID, "id-eID"), + (&btok::ID_E_SIGN, "id-eSign"), + (&btok::BTOK_CVEXT, "btok-cvext"), + (&btok::ID_SIGN_AUTH_EXT, "id-SignAuthExt"), (&fips202::NIST_ALGORITHMS, "nistAlgorithms"), (&fips202::HASH_ALGS, "hashAlgs"), (&fips202::ID_SHA_3_512, "id-sha3-512"),