@@ -77,16 +77,16 @@ public class SignatureSpi
7777 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_RSA3072_PKCS15_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-RSA3072-PKCS15-SHA512" ));
7878 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_RSA4096_PSS_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-RSA4096-PSS-SHA512" ));
7979 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_RSA4096_PKCS15_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-RSA4096-PKCS15-SHA512" ));
80- domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_ECDSA_P256_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-P256-SHA512" ));
81- domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_ECDSA_P384_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-P384-SHA512" ));
82- domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_ECDSA_brainpoolP256r1_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-BP256-SHA512" ));
80+ domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_ECDSA_P256_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-ECDSA- P256-SHA512" ));
81+ domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_ECDSA_P384_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-ECDSA- P384-SHA512" ));
82+ domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_ECDSA_brainpoolP256r1_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-ECDSA- BP256-SHA512" ));
8383 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA65_Ed25519_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA65-Ed25519-SHA512" ));
84- domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_ECDSA_P384_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-P384-SHA512" ));
85- domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_ECDSA_brainpoolP384r1_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-BP384-SHA512" ));
84+ domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_ECDSA_brainpoolP384r1_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-ECDSA-BP384-SHA512" ));
8685 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_Ed448_SHAKE256 , Strings .toByteArray ("COMPSIG-MLDSA87-Ed448-SHAKE256" ));
8786 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_RSA3072_PSS_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-RSA3072-PSS-SHA512" ));
8887 domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_RSA4096_PSS_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-RSA4096-PSS-SHA512" ));
89- domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_ECDSA_P521_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-P521-SHA512" ));
88+ domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_ECDSA_P384_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-ECDSA-P384-SHA512" ));
89+ domainSeparators .put (IANAObjectIdentifiers .id_MLDSA87_ECDSA_P521_SHA512 , Strings .toByteArray ("COMPSIG-MLDSA87-ECDSA-P521-SHA512" ));
9090
9191 algorithmsParameterSpecs .put (IANAObjectIdentifiers .id_MLDSA44_RSA2048_PSS_SHA256 ,
9292 new PSSParameterSpec ("SHA-256" , "MGF1" , new MGF1ParameterSpec ("SHA-256" ), 32 , 1 ));
@@ -391,17 +391,6 @@ private void processPreHashedMessage(byte[] r)
391391 for (int i = 0 ; i < this .componentSignatures .length ; i ++)
392392 {
393393 Signature componentSig = this .componentSignatures [i ];
394- if (i == 0 ) // ML-DSA Component
395- {
396- try
397- {
398- componentSig .setParameter (new ContextParameterSpec (domain ));
399- }
400- catch (Exception e )
401- {
402- // TODO:
403- }
404- }
405394 componentSig .update (prefix );
406395 componentSig .update (domain );
407396 if (contextSpec == null )
0 commit comments