|
| 1 | +using System; |
| 2 | + |
| 3 | +namespace Org.BouncyCastle.Asn1.Bsi |
| 4 | +{ |
| 5 | + /// <remarks>See https://www.bsi.bund.de/cae/servlet/contentblob/471398/publicationFile/30615/BSI-TR-03111_pdf.pdf</remarks> |
| 6 | + public abstract class BsiObjectIdentifiers |
| 7 | + { |
| 8 | + public static readonly DerObjectIdentifier bsi_de = new DerObjectIdentifier("0.4.0.127.0.7"); |
| 9 | + |
| 10 | + /* 0.4.0.127.0.7.1.1 */ |
| 11 | + public static readonly DerObjectIdentifier id_ecc = bsi_de.Branch("1.1"); |
| 12 | + |
| 13 | + /* 0.4.0.127.0.7.1.1.4.1 */ |
| 14 | + public static readonly DerObjectIdentifier ecdsa_plain_signatures = id_ecc.Branch("4.1"); |
| 15 | + |
| 16 | + /* 0.4.0.127.0.7.1.1.4.1.1 */ |
| 17 | + public static readonly DerObjectIdentifier ecdsa_plain_SHA1 = ecdsa_plain_signatures.Branch("1"); |
| 18 | + |
| 19 | + /* 0.4.0.127.0.7.1.1.4.1.2 */ |
| 20 | + public static readonly DerObjectIdentifier ecdsa_plain_SHA224 = ecdsa_plain_signatures.Branch("2"); |
| 21 | + |
| 22 | + /* 0.4.0.127.0.7.1.1.4.1.3 */ |
| 23 | + public static readonly DerObjectIdentifier ecdsa_plain_SHA256 = ecdsa_plain_signatures.Branch("3"); |
| 24 | + |
| 25 | + /* 0.4.0.127.0.7.1.1.4.1.4 */ |
| 26 | + public static readonly DerObjectIdentifier ecdsa_plain_SHA384 = ecdsa_plain_signatures.Branch("4"); |
| 27 | + |
| 28 | + /* 0.4.0.127.0.7.1.1.4.1.5 */ |
| 29 | + public static readonly DerObjectIdentifier ecdsa_plain_SHA512 = ecdsa_plain_signatures.Branch("5"); |
| 30 | + |
| 31 | + /* 0.4.0.127.0.7.1.1.4.1.6 */ |
| 32 | + public static readonly DerObjectIdentifier ecdsa_plain_RIPEMD160 = ecdsa_plain_signatures.Branch("6"); |
| 33 | + |
| 34 | + /** 0.4.0.127.0.7.1 */ |
| 35 | + public static readonly DerObjectIdentifier algorithm = bsi_de.Branch("1"); |
| 36 | + |
| 37 | + public static readonly DerObjectIdentifier ecka_eg = id_ecc.Branch("5.1"); |
| 38 | + |
| 39 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 OID: 0.4.0.127.0.7.1.1.5.1.1 */ |
| 40 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf = ecka_eg.Branch("1"); |
| 41 | + |
| 42 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 |
| 43 | + * with hash function SHA-1 |
| 44 | + * OID: 0.4.0.127.0.7.1.1.5.1.1.1 */ |
| 45 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA1 = ecka_eg_X963kdf.Branch("1"); |
| 46 | + |
| 47 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 |
| 48 | + * with hash function SHA224 |
| 49 | + * OID: 0.4.0.127.0.7.1.1.5.1.1.2 */ |
| 50 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA224 = ecka_eg_X963kdf.Branch("2"); |
| 51 | + |
| 52 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 |
| 53 | + * with hash function SHA256 |
| 54 | + * OID: 0.4.0.127.0.7.1.1.5.1.1.3 */ |
| 55 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA256 = ecka_eg_X963kdf.Branch("3"); |
| 56 | + |
| 57 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 |
| 58 | + * with hash function SHA384 |
| 59 | + * OID: 0.4.0.127.0.7.1.1.5.1.1.4 */ |
| 60 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA384 = ecka_eg_X963kdf.Branch("4"); |
| 61 | + |
| 62 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 |
| 63 | + * with hash function SHA512 |
| 64 | + * OID: 0.4.0.127.0.7.1.1.5.1.1.5 */ |
| 65 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA512 = ecka_eg_X963kdf.Branch("5"); |
| 66 | + |
| 67 | + /** ElGamal Elliptic Curve Key Agreement and Key Derivation according to X963 |
| 68 | + * with hash function RIPEMD160 |
| 69 | + * OID: 0.4.0.127.0.7.1.1.5.1.1.6 */ |
| 70 | + public static readonly DerObjectIdentifier ecka_eg_X963kdf_RIPEMD160 = ecka_eg_X963kdf.Branch("6"); |
| 71 | + |
| 72 | + /** |
| 73 | + * Key Derivation Function for Session Keys |
| 74 | + */ |
| 75 | + public static readonly DerObjectIdentifier ecka_eg_SessionKDF = ecka_eg.Branch("2"); |
| 76 | + |
| 77 | + public static readonly DerObjectIdentifier ecka_eg_SessionKDF_3DES = ecka_eg_SessionKDF.Branch("1"); |
| 78 | + public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES128 = ecka_eg_SessionKDF.Branch("2"); |
| 79 | + public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES192 = ecka_eg_SessionKDF.Branch("3"); |
| 80 | + public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES256 = ecka_eg_SessionKDF.Branch("4"); |
| 81 | + |
| 82 | + /** AES encryption (CBC) and authentication (CMAC) |
| 83 | + * OID: 0.4.0.127.0.7.1.x */ |
| 84 | + //TODO: replace "1" with correct OID |
| 85 | + //public static readonly DerObjectIdentifier aes_cbc_cmac = algorithm.Branch("1"); |
| 86 | + |
| 87 | + /** AES encryption (CBC) and authentication (CMAC) with 128 bit |
| 88 | + * OID: 0.4.0.127.0.7.1.x.y1 */ |
| 89 | + //TODO: replace "1" with correct OID |
| 90 | + //public static readonly DerObjectIdentifier id_aes128_CBC_CMAC = aes_cbc_cmac.Branch("1"); |
| 91 | + |
| 92 | + |
| 93 | + /** AES encryption (CBC) and authentication (CMAC) with 192 bit |
| 94 | + * OID: 0.4.0.127.0.7.1.x.y2 */ |
| 95 | + //TODO: replace "1" with correct OID |
| 96 | + //public static readonly DerObjectIdentifier id_aes192_CBC_CMAC = aes_cbc_cmac.Branch("1"); |
| 97 | + |
| 98 | + /** AES encryption (CBC) and authentication (CMAC) with 256 bit |
| 99 | + * OID: 0.4.0.127.0.7.1.x.y3 */ |
| 100 | + //TODO: replace "1" with correct OID |
| 101 | + //public static readonly DerObjectIdentifier id_aes256_CBC_CMAC = aes_cbc_cmac.Branch("1"); |
| 102 | + } |
| 103 | +} |
0 commit comments