| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -163,4 +163,31 @@ public interface MiscObjectIdentifiers | |||
| 163 | 163 | ASN1ObjectIdentifier id_composite_key = new ASN1ObjectIdentifier("2.16.840.1.114027.80.4.1"); | |
| 164 | 164 | ||
| 165 | 165 | ASN1ObjectIdentifier id_oracle_pkcs12_trusted_key_usage = new ASN1ObjectIdentifier("2.16.840.1.113894.746875.1.1"); | |
| 166 | + | ||
| 167 | + // COMPOSITE SIGNATURES START | ||
| 168 | + // -- To be replaced by IANA | ||
| 169 | + // Composite signature related OIDs. Based https://www.ietf.org/archive/id/draft-ounsworth-pq-composite-sigs-13.html | ||
| 170 | + // The current OIDs are EXPERIMENTAL and are going to change. | ||
| 171 | + ASN1ObjectIdentifier id_composite_signatures = new ASN1ObjectIdentifier("2.16.840.1.114027.80.8.1"); | ||
| 172 | + ASN1ObjectIdentifier id_MLDSA44_RSA2048_PSS_SHA256 = id_composite_signatures.branch("1"); | ||
| 173 | + ASN1ObjectIdentifier id_MLDSA44_RSA2048_PKCS15_SHA256 = id_composite_signatures.branch("2"); | ||
| 174 | + ASN1ObjectIdentifier id_MLDSA44_Ed25519_SHA512 = id_composite_signatures.branch("3"); | ||
| 175 | + ASN1ObjectIdentifier id_MLDSA44_ECDSA_P256_SHA256 = id_composite_signatures.branch("4"); | ||
| 176 | + ASN1ObjectIdentifier id_MLDSA44_ECDSA_brainpoolP256r1_SHA256 = id_composite_signatures.branch("5"); | ||
| 177 | + ASN1ObjectIdentifier id_MLDSA65_RSA3072_PSS_SHA512 = id_composite_signatures.branch("6"); | ||
| 178 | + ASN1ObjectIdentifier id_MLDSA65_RSA3072_PKCS15_SHA512 = id_composite_signatures.branch("7"); | ||
| 179 | + ASN1ObjectIdentifier id_MLDSA65_ECDSA_P256_SHA512 = id_composite_signatures.branch("8"); | ||
| 180 | + ASN1ObjectIdentifier id_MLDSA65_ECDSA_brainpoolP256r1_SHA512 = id_composite_signatures.branch("9"); | ||
| 181 | + ASN1ObjectIdentifier id_MLDSA65_Ed25519_SHA512 = id_composite_signatures.branch("10"); | ||
| 182 | + ASN1ObjectIdentifier id_MLDSA87_ECDSA_P384_SHA512 = id_composite_signatures.branch("11"); | ||
| 183 | + ASN1ObjectIdentifier id_MLDSA87_ECDSA_brainpoolP384r1_SHA512 = id_composite_signatures.branch("12"); | ||
| 184 | + ASN1ObjectIdentifier id_MLDSA87_Ed448_SHA512 = id_composite_signatures.branch("13"); | ||
| 185 | + | ||
| 186 | + // Falcon-based composites below were removed from the IETF draft in version 13 and are expected to be included in a later/separate standard. | ||
| 187 | + // Most likely due to the fact that the Falcon (FN-DSA) NIST standard is going to be released after the Dilithium (ML-DSA) standard. | ||
| 188 | + // However, we still leave their implementation for experimental usage. | ||
| 189 | + ASN1ObjectIdentifier id_Falcon512_ECDSA_P256_SHA256 = id_composite_signatures.branch("14"); | ||
| 190 | + ASN1ObjectIdentifier id_Falcon512_ECDSA_brainpoolP256r1_SHA256 = id_composite_signatures.branch("15"); | ||
| 191 | + ASN1ObjectIdentifier id_Falcon512_Ed25519_SHA512 = id_composite_signatures.branch("16"); | ||
| 192 | + // COMPOSITE SIGNATURES END | ||
| 166 | 193 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | import org.bouncycastle.asn1.ASN1Encoding; | |
| 5 | 5 | import org.bouncycastle.asn1.ASN1ObjectIdentifier; | |
| 6 | 6 | import org.bouncycastle.asn1.DERSequence; | |
| 7 | - import org.bouncycastle.asn1.misc.MiscObjectIdentifiers; | ||
| 7 | + import org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers; | ||
| 8 | 8 | import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; | |
| 9 | 9 | import org.bouncycastle.asn1.x509.AlgorithmIdentifier; | |
| 10 | 10 | import org.bouncycastle.jcajce.provider.asymmetric.compositesignatures.CompositeSignaturesConstants; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | import org.bouncycastle.asn1.ASN1Encoding; | |
| 5 | 5 | import org.bouncycastle.asn1.ASN1ObjectIdentifier; | |
| 6 | 6 | import org.bouncycastle.asn1.DERSequence; | |
| 7 | - import org.bouncycastle.asn1.misc.MiscObjectIdentifiers; | ||
| 7 | + import org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers; | ||
| 8 | 8 | import org.bouncycastle.asn1.x509.AlgorithmIdentifier; | |
| 9 | 9 | import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo; | |
| 10 | 10 | import org.bouncycastle.jcajce.provider.asymmetric.compositesignatures.CompositeSignaturesConstants; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,11 @@ | |||
| 1 | 1 | package org.bouncycastle.jcajce.provider.asymmetric.compositesignatures; | |
| 2 | 2 | ||
| 3 | - import org.bouncycastle.asn1.ASN1ObjectIdentifier; | ||
| 4 | - import org.bouncycastle.asn1.misc.MiscObjectIdentifiers; | ||
| 5 | - | ||
| 6 | 3 | import java.util.HashMap; | |
| 7 | 4 | import java.util.Map.Entry; | |
| 8 | 5 | ||
| 6 | + import org.bouncycastle.asn1.ASN1ObjectIdentifier; | ||
| 7 | + import org.bouncycastle.internal.asn1.misc.MiscObjectIdentifiers; | ||
| 8 | + | ||
| 9 | 9 | ||
| 10 | 10 | /** | |
| 11 | 11 | * Helper class containing constants/mappings for composite signatures. | |
@@ -17,22 +17,22 @@ public abstract class CompositeSignaturesConstants | |||
| 17 | 17 | * An array of supported identifiers of composite signature schemes. | |
| 18 | 18 | */ | |
| 19 | 19 | public static final ASN1ObjectIdentifier[] supportedIdentifiers = { | |
| 20 | - MiscObjectIdentifiers.id_MLDSA44_RSA2048_PSS_SHA256, | ||
| 21 | - MiscObjectIdentifiers.id_MLDSA44_RSA2048_PKCS15_SHA256, | ||
| 22 | - MiscObjectIdentifiers.id_MLDSA44_Ed25519_SHA512, | ||
| 23 | - MiscObjectIdentifiers.id_MLDSA44_ECDSA_P256_SHA256, | ||
| 24 | - MiscObjectIdentifiers.id_MLDSA44_ECDSA_brainpoolP256r1_SHA256, | ||
| 25 | - MiscObjectIdentifiers.id_MLDSA65_RSA3072_PSS_SHA512, | ||
| 26 | - MiscObjectIdentifiers.id_MLDSA65_RSA3072_PKCS15_SHA512, | ||
| 27 | - MiscObjectIdentifiers.id_MLDSA65_ECDSA_P256_SHA512, | ||
| 28 | - MiscObjectIdentifiers.id_MLDSA65_ECDSA_brainpoolP256r1_SHA512, | ||
| 29 | - MiscObjectIdentifiers.id_MLDSA65_Ed25519_SHA512, | ||
| 30 | - MiscObjectIdentifiers.id_MLDSA87_ECDSA_P384_SHA512, | ||
| 31 | - MiscObjectIdentifiers.id_MLDSA87_ECDSA_brainpoolP384r1_SHA512, | ||
| 32 | - MiscObjectIdentifiers.id_MLDSA87_Ed448_SHA512, | ||
| 33 | - MiscObjectIdentifiers.id_Falcon512_ECDSA_P256_SHA256, | ||
| 34 | - MiscObjectIdentifiers.id_Falcon512_ECDSA_brainpoolP256r1_SHA256, | ||
| 35 | - MiscObjectIdentifiers.id_Falcon512_Ed25519_SHA512, | ||
| 20 | + MiscObjectIdentifiers.id_MLDSA44_RSA2048_PSS_SHA256, | ||
| 21 | + MiscObjectIdentifiers.id_MLDSA44_RSA2048_PKCS15_SHA256, | ||
| 22 | + MiscObjectIdentifiers.id_MLDSA44_Ed25519_SHA512, | ||
| 23 | + MiscObjectIdentifiers.id_MLDSA44_ECDSA_P256_SHA256, | ||
| 24 | + MiscObjectIdentifiers.id_MLDSA44_ECDSA_brainpoolP256r1_SHA256, | ||
| 25 | + MiscObjectIdentifiers.id_MLDSA65_RSA3072_PSS_SHA512, | ||
| 26 | + MiscObjectIdentifiers.id_MLDSA65_RSA3072_PKCS15_SHA512, | ||
| 27 | + MiscObjectIdentifiers.id_MLDSA65_ECDSA_P256_SHA512, | ||
| 28 | + MiscObjectIdentifiers.id_MLDSA65_ECDSA_brainpoolP256r1_SHA512, | ||
| 29 | + MiscObjectIdentifiers.id_MLDSA65_Ed25519_SHA512, | ||
| 30 | + MiscObjectIdentifiers.id_MLDSA87_ECDSA_P384_SHA512, | ||
| 31 | + MiscObjectIdentifiers.id_MLDSA87_ECDSA_brainpoolP384r1_SHA512, | ||
| 32 | + MiscObjectIdentifiers.id_MLDSA87_Ed448_SHA512, | ||
| 33 | + MiscObjectIdentifiers.id_Falcon512_ECDSA_P256_SHA256, | ||
| 34 | + MiscObjectIdentifiers.id_Falcon512_ECDSA_brainpoolP256r1_SHA256, | ||
| 35 | + MiscObjectIdentifiers.id_Falcon512_Ed25519_SHA512, | ||
| 36 | 36 | }; | |
| 37 | 37 | ||
| 38 | 38 | /** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments