1212public class SLHDSAParameterSpec
1313 implements AlgorithmParameterSpec
1414{
15- public static final SLHDSAParameterSpec slh_dsa_sha2_128f = new SLHDSAParameterSpec ("slh-dsa-sha2-128f " );
16- public static final SLHDSAParameterSpec slh_dsa_sha2_128s = new SLHDSAParameterSpec ("slh-dsa-sha2-128s " );
15+ public static final SLHDSAParameterSpec slh_dsa_sha2_128f = new SLHDSAParameterSpec ("SLH-DSA-SHA2-128F " );
16+ public static final SLHDSAParameterSpec slh_dsa_sha2_128s = new SLHDSAParameterSpec ("SLH-DSA-SHA2-128S " );
1717
18- public static final SLHDSAParameterSpec slh_dsa_sha2_192f = new SLHDSAParameterSpec ("slh-dsa-sha2-192f " );
19- public static final SLHDSAParameterSpec slh_dsa_sha2_192s = new SLHDSAParameterSpec ("slh-dsa-sha2-192s " );
18+ public static final SLHDSAParameterSpec slh_dsa_sha2_192f = new SLHDSAParameterSpec ("SLH-DSA-SHA2-192F " );
19+ public static final SLHDSAParameterSpec slh_dsa_sha2_192s = new SLHDSAParameterSpec ("SLH-DSA-SHA2-192S " );
2020
21- public static final SLHDSAParameterSpec slh_dsa_sha2_256f = new SLHDSAParameterSpec ("slh-dsa-sha2-256f " );
22- public static final SLHDSAParameterSpec slh_dsa_sha2_256s = new SLHDSAParameterSpec ("slh-dsa-sha2-256s " );
21+ public static final SLHDSAParameterSpec slh_dsa_sha2_256f = new SLHDSAParameterSpec ("SLH-DSA-SHA2-256F " );
22+ public static final SLHDSAParameterSpec slh_dsa_sha2_256s = new SLHDSAParameterSpec ("SLH-DSA-SHA2-256S " );
2323
2424 // SHAKE-256.
2525
26- public static final SLHDSAParameterSpec slh_dsa_shake_128f = new SLHDSAParameterSpec ("slh-dsa-shake-128f " );
27- public static final SLHDSAParameterSpec slh_dsa_shake_128s = new SLHDSAParameterSpec ("slh-dsa-shake-128s " );
26+ public static final SLHDSAParameterSpec slh_dsa_shake_128f = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-128F " );
27+ public static final SLHDSAParameterSpec slh_dsa_shake_128s = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-128S " );
2828
29- public static final SLHDSAParameterSpec slh_dsa_shake_192f = new SLHDSAParameterSpec ("slh-dsa-shake-192f " );
30- public static final SLHDSAParameterSpec slh_dsa_shake_192s = new SLHDSAParameterSpec ("slh-dsa-shake-192s " );
29+ public static final SLHDSAParameterSpec slh_dsa_shake_192f = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-192F " );
30+ public static final SLHDSAParameterSpec slh_dsa_shake_192s = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-192S " );
3131
32- public static final SLHDSAParameterSpec slh_dsa_shake_256f = new SLHDSAParameterSpec ("slh-dsa-shake-256f " );
33- public static final SLHDSAParameterSpec slh_dsa_shake_256s = new SLHDSAParameterSpec ("slh-dsa-shake-256s " );
32+ public static final SLHDSAParameterSpec slh_dsa_shake_256f = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-256F " );
33+ public static final SLHDSAParameterSpec slh_dsa_shake_256s = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-256S " );
3434
3535 // PREHASH
36- public static final SLHDSAParameterSpec slh_dsa_sha2_128f_with_sha256 = new SLHDSAParameterSpec ("slh-dsa-sha2-128f-with-sha256 " );
37- public static final SLHDSAParameterSpec slh_dsa_sha2_128s_with_sha256 = new SLHDSAParameterSpec ("slh-dsa-sha2-128s-with-sha256 " );
36+ public static final SLHDSAParameterSpec slh_dsa_sha2_128f_with_sha256 = new SLHDSAParameterSpec ("SLH-DSA-SHA2-128F-WITH-SHA256 " );
37+ public static final SLHDSAParameterSpec slh_dsa_sha2_128s_with_sha256 = new SLHDSAParameterSpec ("SLH-DSA-SHA2-128S-WITH-SHA256 " );
3838
39- public static final SLHDSAParameterSpec slh_dsa_sha2_192f_with_sha512 = new SLHDSAParameterSpec ("slh-dsa-sha2-192f-with-sha512 " );
40- public static final SLHDSAParameterSpec slh_dsa_sha2_192s_with_sha512 = new SLHDSAParameterSpec ("slh-dsa-sha2-192s-with-sha512 " );
39+ public static final SLHDSAParameterSpec slh_dsa_sha2_192f_with_sha512 = new SLHDSAParameterSpec ("SLH-DSA-SHA2-192F-WITH-SHA512 " );
40+ public static final SLHDSAParameterSpec slh_dsa_sha2_192s_with_sha512 = new SLHDSAParameterSpec ("SLH-DSA-SHA2-192S-WITH-SHA512 " );
4141
42- public static final SLHDSAParameterSpec slh_dsa_sha2_256f_with_sha512 = new SLHDSAParameterSpec ("slh-dsa-sha2-256f-with-sha512 " );
43- public static final SLHDSAParameterSpec slh_dsa_sha2_256s_with_sha512 = new SLHDSAParameterSpec ("slh-dsa-sha2-256s-with-sha512 " );
42+ public static final SLHDSAParameterSpec slh_dsa_sha2_256f_with_sha512 = new SLHDSAParameterSpec ("SLH-DSA-SHA2-256F-WITH-SHA512 " );
43+ public static final SLHDSAParameterSpec slh_dsa_sha2_256s_with_sha512 = new SLHDSAParameterSpec ("SLH-DSA-SHA2-256S-WITH-SHA512 " );
4444
4545 // SHAKE-256.
4646
47- public static final SLHDSAParameterSpec slh_dsa_shake_128f_with_shake128 = new SLHDSAParameterSpec ("slh-dsa-shake-128f-with-shake128 " );
48- public static final SLHDSAParameterSpec slh_dsa_shake_128s_with_shake128 = new SLHDSAParameterSpec ("slh-dsa-shake-128s-with-shake128 " );
47+ public static final SLHDSAParameterSpec slh_dsa_shake_128f_with_shake128 = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-128F-WITH-SHAKE128 " );
48+ public static final SLHDSAParameterSpec slh_dsa_shake_128s_with_shake128 = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-128S-WITH-SHAKE128 " );
4949
50- public static final SLHDSAParameterSpec slh_dsa_shake_192f_with_shake256 = new SLHDSAParameterSpec ("slh-dsa-shake-192f-with-shake256 " );
51- public static final SLHDSAParameterSpec slh_dsa_shake_192s_with_shake256 = new SLHDSAParameterSpec ("slh-dsa-shake-192s-with-shake256 " );
50+ public static final SLHDSAParameterSpec slh_dsa_shake_192f_with_shake256 = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-192F-WITH-SHAKE256 " );
51+ public static final SLHDSAParameterSpec slh_dsa_shake_192s_with_shake256 = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-192S-WITH-SHAKE256 " );
5252
53- public static final SLHDSAParameterSpec slh_dsa_shake_256f_with_shake256 = new SLHDSAParameterSpec ("slh-dsa-shake-256f-with-shake256 " );
54- public static final SLHDSAParameterSpec slh_dsa_shake_256s_with_shake256 = new SLHDSAParameterSpec ("slh-dsa-shake-256s-with-shake256 " );
53+ public static final SLHDSAParameterSpec slh_dsa_shake_256f_with_shake256 = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-256F-WITH-SHAKE256 " );
54+ public static final SLHDSAParameterSpec slh_dsa_shake_256s_with_shake256 = new SLHDSAParameterSpec ("SLH-DSA-SHAKE-256S-WITH-SHAKE256 " );
5555
5656 private static Map parameters = new HashMap ();
5757
5858 static
5959 {
60- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_128f . getName () , SLHDSAParameterSpec .slh_dsa_sha2_128f );
61- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_128s . getName () , SLHDSAParameterSpec .slh_dsa_sha2_128s );
62- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_192f . getName () , SLHDSAParameterSpec .slh_dsa_sha2_192f );
63- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_192s . getName () , SLHDSAParameterSpec .slh_dsa_sha2_192s );
64- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_256f . getName () , SLHDSAParameterSpec .slh_dsa_sha2_256f );
65- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_256s . getName () , SLHDSAParameterSpec .slh_dsa_sha2_256s );
60+ parameters .put ("slh-dsa-sha2-128f" , SLHDSAParameterSpec .slh_dsa_sha2_128f );
61+ parameters .put ("slh-dsa-sha2-128s" , SLHDSAParameterSpec .slh_dsa_sha2_128s );
62+ parameters .put ("slh-dsa-sha2-192f" , SLHDSAParameterSpec .slh_dsa_sha2_192f );
63+ parameters .put ("slh-dsa-sha2-192s" , SLHDSAParameterSpec .slh_dsa_sha2_192s );
64+ parameters .put ("slh-dsa-sha2-256f" , SLHDSAParameterSpec .slh_dsa_sha2_256f );
65+ parameters .put ("slh-dsa-sha2-256s" , SLHDSAParameterSpec .slh_dsa_sha2_256s );
6666
6767 parameters .put ("sha2-128f" , SLHDSAParameterSpec .slh_dsa_sha2_128f );
6868 parameters .put ("sha2-128s" , SLHDSAParameterSpec .slh_dsa_sha2_128s );
@@ -71,12 +71,12 @@ public class SLHDSAParameterSpec
7171 parameters .put ("sha2-256f" , SLHDSAParameterSpec .slh_dsa_sha2_256f );
7272 parameters .put ("sha2-256s" , SLHDSAParameterSpec .slh_dsa_sha2_256s );
7373
74- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_128f . getName () , SLHDSAParameterSpec .slh_dsa_shake_128f );
75- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_128s . getName () , SLHDSAParameterSpec .slh_dsa_shake_128s );
76- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_192f . getName () , SLHDSAParameterSpec .slh_dsa_shake_192f );
77- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_192s . getName () , SLHDSAParameterSpec .slh_dsa_shake_192s );
78- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_256f . getName () , SLHDSAParameterSpec .slh_dsa_shake_256f );
79- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_256s . getName () , SLHDSAParameterSpec .slh_dsa_shake_256s );
74+ parameters .put ("slh-dsa-sha2-128f" , SLHDSAParameterSpec .slh_dsa_shake_128f );
75+ parameters .put ("slh-dsa-sha2-128s" , SLHDSAParameterSpec .slh_dsa_shake_128s );
76+ parameters .put ("slh-dsa-sha2-192f" , SLHDSAParameterSpec .slh_dsa_shake_192f );
77+ parameters .put ("slh-dsa-sha2-192s" , SLHDSAParameterSpec .slh_dsa_shake_192s );
78+ parameters .put ("slh-dsa-sha2-256f" , SLHDSAParameterSpec .slh_dsa_shake_256f );
79+ parameters .put ("slh-dsa-sha2-256s" , SLHDSAParameterSpec .slh_dsa_shake_256s );
8080
8181 parameters .put ("shake-128f" , SLHDSAParameterSpec .slh_dsa_shake_128f );
8282 parameters .put ("shake-128s" , SLHDSAParameterSpec .slh_dsa_shake_128s );
@@ -85,12 +85,12 @@ public class SLHDSAParameterSpec
8585 parameters .put ("shake-256f" , SLHDSAParameterSpec .slh_dsa_shake_256f );
8686 parameters .put ("shake-256s" , SLHDSAParameterSpec .slh_dsa_shake_256s );
8787
88- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_128f_with_sha256 . getName () , SLHDSAParameterSpec .slh_dsa_sha2_128f );
89- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_128s_with_sha256 . getName () , SLHDSAParameterSpec .slh_dsa_sha2_128s );
90- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_192f_with_sha512 . getName () , SLHDSAParameterSpec .slh_dsa_sha2_192f );
91- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_192s_with_sha512 . getName () , SLHDSAParameterSpec .slh_dsa_sha2_192s );
92- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_256f_with_sha512 . getName () , SLHDSAParameterSpec .slh_dsa_sha2_256f );
93- parameters .put (SLHDSAParameterSpec . slh_dsa_sha2_256s_with_sha512 . getName () , SLHDSAParameterSpec .slh_dsa_sha2_256s );
88+ parameters .put ("slh-dsa-sha2-128f-with-sha256" , SLHDSAParameterSpec .slh_dsa_sha2_128f_with_sha256 );
89+ parameters .put ("slh-dsa-sha2-128s-with-sha256" , SLHDSAParameterSpec .slh_dsa_sha2_128s_with_sha256 );
90+ parameters .put ("slh-dsa-sha2-192f-with-sha512" , SLHDSAParameterSpec .slh_dsa_sha2_192f_with_sha512 );
91+ parameters .put ("slh-dsa-sha2-192s-with-sha512" , SLHDSAParameterSpec .slh_dsa_sha2_192s_with_sha512 );
92+ parameters .put ("slh-dsa-sha2-256f-with-sha512" , SLHDSAParameterSpec .slh_dsa_sha2_256f_with_sha512 );
93+ parameters .put ("slh-dsa-sha2-256s-with-sha512" , SLHDSAParameterSpec .slh_dsa_sha2_256s_with_sha512 );
9494
9595 parameters .put ("sha2-128f-with-sha256" , SLHDSAParameterSpec .slh_dsa_sha2_128f_with_sha256 );
9696 parameters .put ("sha2-128s-with-sha256" , SLHDSAParameterSpec .slh_dsa_sha2_128s_with_sha256 );
@@ -99,20 +99,19 @@ public class SLHDSAParameterSpec
9999 parameters .put ("sha2-256f-with-sha512" , SLHDSAParameterSpec .slh_dsa_sha2_256f_with_sha512 );
100100 parameters .put ("sha2-256s-with-sha512" , SLHDSAParameterSpec .slh_dsa_sha2_256s_with_sha512 );
101101
102- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_128f_with_shake128 . getName () , SLHDSAParameterSpec .slh_dsa_shake_128f_with_shake128 );
103- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_128s_with_shake128 . getName () , SLHDSAParameterSpec .slh_dsa_shake_128s_with_shake128 );
104- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_192f_with_shake256 . getName () , SLHDSAParameterSpec .slh_dsa_shake_192f_with_shake256 );
105- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_192s_with_shake256 . getName () , SLHDSAParameterSpec .slh_dsa_shake_192s_with_shake256 );
106- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_256f_with_shake256 . getName () , SLHDSAParameterSpec .slh_dsa_shake_256f_with_shake256 );
107- parameters .put (SLHDSAParameterSpec . slh_dsa_shake_256s_with_shake256 . getName () , SLHDSAParameterSpec .slh_dsa_shake_256s_with_shake256 );
102+ parameters .put ("slh-dsashake-128f-with-shake128" , SLHDSAParameterSpec .slh_dsa_shake_128f_with_shake128 );
103+ parameters .put ("slh-dsashake-128s-with-shake128" , SLHDSAParameterSpec .slh_dsa_shake_128s_with_shake128 );
104+ parameters .put ("slh-dsashake-192f-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_192f_with_shake256 );
105+ parameters .put ("slh-dsashake-192s-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_192s_with_shake256 );
106+ parameters .put ("slh-dsashake-256f-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_256f_with_shake256 );
107+ parameters .put ("slh-dsashake-256s-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_256s_with_shake256 );
108108
109109 parameters .put ("shake-128f-with-shake128" , SLHDSAParameterSpec .slh_dsa_shake_128f_with_shake128 );
110110 parameters .put ("shake-128s-with-shake128" , SLHDSAParameterSpec .slh_dsa_shake_128s_with_shake128 );
111111 parameters .put ("shake-192f-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_192f_with_shake256 );
112112 parameters .put ("shake-192s-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_192s_with_shake256 );
113113 parameters .put ("shake-256f-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_256f_with_shake256 );
114114 parameters .put ("shake-256s-with-shake256" , SLHDSAParameterSpec .slh_dsa_shake_256s_with_shake256 );
115-
116115 }
117116
118117 private final String name ;
0 commit comments