@@ -1839,24 +1839,12 @@ public void testEd25519()
18391839 */
18401840 AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier (NISTObjectIdentifiers .id_sha512 );
18411841
1842+ detachedTest (_signEd25519KP , _signEd25519Cert , "Ed25519" , EdECObjectIdentifiers .id_Ed25519 , expectedDigAlgId );
1843+
18421844 encapsulatedTest (_signEd25519KP , _signEd25519Cert , "Ed25519" , EdECObjectIdentifiers .id_Ed25519 ,
18431845 expectedDigAlgId );
18441846 }
18451847
1846- public void testEd25519Detached ()
1847- throws Exception
1848- {
1849- /*
1850- * RFC 8419 3.1. When signing with Ed25519, the digestAlgorithm MUST be id-sha512, and the algorithm
1851- * parameters field MUST be absent.
1852- *
1853- * We confirm here that our implementation defaults to SHA-512 for the digest algorithm.
1854- */
1855- AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier (NISTObjectIdentifiers .id_sha512 );
1856-
1857- detachedTest (_signEd25519KP , _signEd25519Cert , "Ed25519" , EdECObjectIdentifiers .id_Ed25519 , expectedDigAlgId );
1858- }
1859-
18601848 public void testEd448 ()
18611849 throws Exception
18621850 {
@@ -1870,23 +1858,9 @@ public void testEd448()
18701858 AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier (NISTObjectIdentifiers .id_shake256_len ,
18711859 new ASN1Integer (512 ));
18721860
1873- encapsulatedTest (_signEd448KP , _signEd448Cert , "Ed448" , EdECObjectIdentifiers .id_Ed448 , expectedDigAlgId );
1874- }
1875-
1876- public void testEd448Detached ()
1877- throws Exception
1878- {
1879- /*
1880- * RFC 8419 3.1. When signing with Ed448, the digestAlgorithm MUST be id-shake256-len, the algorithm
1881- * parameters field MUST be present, and the parameter MUST contain 512, encoded as a positive integer
1882- * value.
1883- *
1884- * We confirm here that our implementation defaults to id-shake256-len/512 for the digest algorithm.
1885- */
1886- AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier (NISTObjectIdentifiers .id_shake256_len ,
1887- new ASN1Integer (512 ));
1888-
18891861 detachedTest (_signEd448KP , _signEd448Cert , "Ed448" , EdECObjectIdentifiers .id_Ed448 , expectedDigAlgId );
1862+
1863+ encapsulatedTest (_signEd448KP , _signEd448Cert , "Ed448" , EdECObjectIdentifiers .id_Ed448 , expectedDigAlgId );
18901864 }
18911865
18921866 public void testEd25519WithNoAttr ()
@@ -2362,6 +2336,9 @@ public SignerInformationVerifier get(SignerId signerId)
23622336// */
23632337// AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha512);
23642338//
2339+ // detachedTest(_signMLDsa44KP, _signMLDsa44Cert, "ML-DSA-44", NISTObjectIdentifiers.id_ml_dsa_44,
2340+ // expectedDigAlgId);
2341+ //
23652342// encapsulatedTest(_signMLDsa44KP, _signMLDsa44Cert, "ML-DSA-44", NISTObjectIdentifiers.id_ml_dsa_44,
23662343// expectedDigAlgId);
23672344// }
@@ -2379,6 +2356,9 @@ public SignerInformationVerifier get(SignerId signerId)
23792356// */
23802357// AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha512);
23812358//
2359+ // detachedTest(_signMLDsa65KP, _signMLDsa65Cert, "ML-DSA-65", NISTObjectIdentifiers.id_ml_dsa_65,
2360+ // expectedDigAlgId);
2361+ //
23822362// encapsulatedTest(_signMLDsa65KP, _signMLDsa65Cert, "ML-DSA-65", NISTObjectIdentifiers.id_ml_dsa_65,
23832363// expectedDigAlgId);
23842364// }
@@ -2396,6 +2376,9 @@ public SignerInformationVerifier get(SignerId signerId)
23962376// */
23972377// AlgorithmIdentifier expectedDigAlgId = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha512);
23982378//
2379+ // detachedTest(_signMLDsa87KP, _signMLDsa87Cert, "ML-DSA-87", NISTObjectIdentifiers.id_ml_dsa_87,
2380+ // expectedDigAlgId);
2381+ //
23992382// encapsulatedTest(_signMLDsa87KP, _signMLDsa87Cert, "ML-DSA-87", NISTObjectIdentifiers.id_ml_dsa_87,
24002383// expectedDigAlgId);
24012384// }
0 commit comments