11package org .bouncycastle .jcajce .provider .asymmetric .compositesignatures ;
22
3- import java .io .ByteArrayInputStream ;
43import java .io .IOException ;
54import java .security .GeneralSecurityException ;
65import java .security .InvalidKeyException ;
1918import java .util .Map ;
2019
2120import org .bouncycastle .asn1 .ASN1BitString ;
22- import org .bouncycastle .asn1 .ASN1Encodable ;
2321import org .bouncycastle .asn1 .ASN1EncodableVector ;
24- import org .bouncycastle .asn1 .ASN1InputStream ;
25- import org .bouncycastle .asn1 .ASN1Integer ;
2622import org .bouncycastle .asn1 .ASN1ObjectIdentifier ;
2723import org .bouncycastle .asn1 .ASN1OctetString ;
28- import org .bouncycastle .asn1 .ASN1Primitive ;
2924import org .bouncycastle .asn1 .ASN1Sequence ;
3025import org .bouncycastle .asn1 .DERBitString ;
3126import org .bouncycastle .asn1 .DEROctetString ;
3631import org .bouncycastle .asn1 .pkcs .PrivateKeyInfo ;
3732import org .bouncycastle .asn1 .sec .SECObjectIdentifiers ;
3833import org .bouncycastle .asn1 .teletrust .TeleTrusTObjectIdentifiers ;
39- import org .bouncycastle .asn1 .util .ASN1Dump ;
40- import org .bouncycastle .asn1 .util .DERDump ;
4134import org .bouncycastle .asn1 .x509 .AlgorithmIdentifier ;
4235import org .bouncycastle .asn1 .x509 .SubjectPublicKeyInfo ;
4336import org .bouncycastle .asn1 .x9 .X962Parameters ;
@@ -84,29 +77,9 @@ public class KeyFactorySpi
8477 {
8578 pairings .put (MiscObjectIdentifiers .id_MLDSA65_RSA3072_PSS_SHA256 , new AlgorithmIdentifier []{mlDsa65 , rsa });
8679 pairings .put (MiscObjectIdentifiers .id_MLDSA65_RSA3072_PKCS15_SHA256 , new AlgorithmIdentifier []{mlDsa65 , rsa });
87- pairings .put (MiscObjectIdentifiers .id_MLDSA65_RSA4096_PSS_SHA384 , new AlgorithmIdentifier []{mlDsa65 , rsa });
88- pairings .put (MiscObjectIdentifiers .id_MLDSA65_RSA4096_PKCS15_SHA384 , new AlgorithmIdentifier []{mlDsa65 , rsa });
89- pairings .put (MiscObjectIdentifiers .id_MLDSA65_ECDSA_P384_SHA384 , new AlgorithmIdentifier []{mlDsa65 , ecDsaP384 });
9080 pairings .put (MiscObjectIdentifiers .id_MLDSA65_ECDSA_brainpoolP256r1_SHA256 , new AlgorithmIdentifier []{mlDsa65 , ecDsaBrainpoolP256r1 });
91- pairings .put (MiscObjectIdentifiers .id_MLDSA87_ECDSA_P384_SHA384 , new AlgorithmIdentifier []{mlDsa87 , ecDsaP384 });
92- pairings .put (MiscObjectIdentifiers .id_MLDSA87_ECDSA_brainpoolP384r1_SHA384 , new AlgorithmIdentifier []{mlDsa87 , ecDsaBrainpoolP384r1 });
9381 pairings .put (MiscObjectIdentifiers .id_MLDSA87_Ed448_SHA512 , new AlgorithmIdentifier []{mlDsa87 , ed448 });
9482
95- pairings .put (MiscObjectIdentifiers .id_HashMLDSA44_RSA2048_PSS_SHA256 , new AlgorithmIdentifier []{mlDsa44 , rsa });
96- pairings .put (MiscObjectIdentifiers .id_HashMLDSA44_RSA2048_PKCS15_SHA256 , new AlgorithmIdentifier []{mlDsa44 , rsa });
97- pairings .put (MiscObjectIdentifiers .id_HashMLDSA44_Ed25519_SHA512 , new AlgorithmIdentifier []{mlDsa44 , ed25519 });
98- pairings .put (MiscObjectIdentifiers .id_HashMLDSA44_ECDSA_P256_SHA256 , new AlgorithmIdentifier []{mlDsa44 , ecDsaP256 });
99- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA3072_PSS_SHA512 , new AlgorithmIdentifier []{mlDsa65 , rsa });
100- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA3072_PKCS15_SHA512 , new AlgorithmIdentifier []{mlDsa65 , rsa });
101- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA4096_PSS_SHA512 , new AlgorithmIdentifier []{mlDsa65 , rsa });
102- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA4096_PKCS15_SHA512 , new AlgorithmIdentifier []{mlDsa65 , rsa });
103- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_ECDSA_P384_SHA512 , new AlgorithmIdentifier []{mlDsa65 , ecDsaP384 });
104- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_ECDSA_brainpoolP256r1_SHA512 , new AlgorithmIdentifier []{mlDsa65 , ecDsaBrainpoolP256r1 });
105- pairings .put (MiscObjectIdentifiers .id_HashMLDSA65_Ed25519_SHA512 , new AlgorithmIdentifier []{mlDsa65 , ed25519 });
106- pairings .put (MiscObjectIdentifiers .id_HashMLDSA87_ECDSA_P384_SHA512 , new AlgorithmIdentifier []{mlDsa87 , ecDsaP384 });
107- pairings .put (MiscObjectIdentifiers .id_HashMLDSA87_ECDSA_brainpoolP384r1_SHA512 , new AlgorithmIdentifier []{mlDsa87 , ecDsaBrainpoolP384r1 });
108- pairings .put (MiscObjectIdentifiers .id_HashMLDSA87_Ed448_SHA512 , new AlgorithmIdentifier []{mlDsa87 , ed448 });
109-
11083 pairings .put (MiscObjectIdentifiers .id_MLDSA44_RSA2048_PSS_SHA256 , new AlgorithmIdentifier []{mlDsa44 , rsa });
11184 pairings .put (MiscObjectIdentifiers .id_MLDSA44_RSA2048_PKCS15_SHA256 , new AlgorithmIdentifier []{mlDsa44 , rsa });
11285 pairings .put (MiscObjectIdentifiers .id_MLDSA44_Ed25519_SHA512 , new AlgorithmIdentifier []{mlDsa44 , ed25519 });
@@ -128,29 +101,9 @@ public class KeyFactorySpi
128101
129102 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA65_RSA3072_PSS_SHA256 , new int []{1952 , 256 });
130103 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA65_RSA3072_PKCS15_SHA256 , new int []{1952 , 256 });
131- componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA65_RSA4096_PSS_SHA384 , new int []{1952 , 542 });
132- componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA65_RSA4096_PKCS15_SHA384 , new int []{1952 , 542 });
133- componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA65_ECDSA_P384_SHA384 , new int []{1952 , 87 });
134104 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA65_ECDSA_brainpoolP256r1_SHA256 , new int []{1952 , 76 });
135- componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA87_ECDSA_P384_SHA384 , new int []{2592 , 87 });
136- componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA87_ECDSA_brainpoolP384r1_SHA384 , new int []{2592 , 87 });
137105 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA87_Ed448_SHA512 , new int []{2592 , Ed448 .PUBLIC_KEY_SIZE });
138-
139- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA44_RSA2048_PSS_SHA256 , new int []{1328 , 268 });
140- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA44_RSA2048_PKCS15_SHA256 , new int []{1312 , 284 });
141- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA44_Ed25519_SHA512 , new int []{1312 , Ed25519 .PUBLIC_KEY_SIZE });
142- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA44_ECDSA_P256_SHA256 , new int []{1312 , 76 });
143- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA3072_PSS_SHA512 , new int []{1952 , 256 });
144- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA3072_PKCS15_SHA512 , new int []{1952 , 256 });
145- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA4096_PSS_SHA512 , new int []{1952 , 542 });
146- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_RSA4096_PKCS15_SHA512 , new int []{1952 , 542 });
147- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_ECDSA_P384_SHA512 , new int []{1952 , 87 });
148- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_ECDSA_brainpoolP256r1_SHA512 , new int []{1952 , 76 });
149- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA65_Ed25519_SHA512 , new int []{1952 , Ed25519 .PUBLIC_KEY_SIZE });
150- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA87_ECDSA_P384_SHA512 , new int []{2592 , 87 });
151- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA87_ECDSA_brainpoolP384r1_SHA512 , new int []{2592 , 87 });
152- componentKeySizes .put (MiscObjectIdentifiers .id_HashMLDSA87_Ed448_SHA512 , new int []{2592 , Ed448 .PUBLIC_KEY_SIZE });
153-
106+
154107 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA44_RSA2048_PSS_SHA256 , new int []{1312 , 268 });
155108 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA44_RSA2048_PKCS15_SHA256 , new int []{1312 , 284 });
156109 componentKeySizes .put (MiscObjectIdentifiers .id_MLDSA44_Ed25519_SHA512 , new int []{1312 , Ed25519 .PUBLIC_KEY_SIZE });
0 commit comments