Skip to content

Commit c40df6d

Browse files
committed
updated to specific SLHDSA names.
1 parent e3e67c6 commit c40df6d

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

pkix/src/main/java/org/bouncycastle/operator/DefaultAlgorithmNameFinder.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ public class DefaultAlgorithmNameFinder
4646
algorithms.put(EACObjectIdentifiers.id_TA_ECDSA_SHA_512, "SHA512WITHCVC-ECDSA");
4747
algorithms.put(BCObjectIdentifiers.falcon_512, "FALCON");
4848
algorithms.put(BCObjectIdentifiers.falcon_1024, "FALCON");
49-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_128s, "SLHDSA");
50-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_128f, "SLHDSA");
51-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_192s, "SLHDSA");
52-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_192f, "SLHDSA");
53-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_256s, "SLHDSA");
54-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_256f, "SLHDSA");
55-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_128s, "SLHDSA");
56-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_128f, "SLHDSA");
57-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_192s, "SLHDSA");
58-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_192f, "SLHDSA");
59-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_256s, "SLHDSA");
60-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_256f, "SLHDSA");
49+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_128s, "SLH-DSA-SHA2-128S");
50+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_128f, "SLH-DSA-SHA2-128F");
51+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_192s, "SLH-DSA-SHA2-192S");
52+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_192f, "SLH-DSA-SHA2-192F");
53+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_256s, "SLH-DSA-SHA2-256S");
54+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_256f, "SLH-DSA-SHA2-256F");
55+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_128s, "SLH-DSA-SHAKE-128S");
56+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_128f, "SLH-DSA-SHAKE-128F");
57+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_192s, "SLH-DSA-SHAKE-192S");
58+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_192f, "SLH-DSA-SHAKE-192F");
59+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_256s, "SLH-DSA-SHAKE-256S");
60+
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_256f, "SLH-DSA-SHAKE-256F");
6161

6262
algorithms.put(BCObjectIdentifiers.sphincsPlus_sha2_128s_r3, "SPHINCS+");
6363
algorithms.put(BCObjectIdentifiers.sphincsPlus_sha2_128f_r3, "SPHINCS+");

pkix/src/test/java/org/bouncycastle/operator/test/AllTests.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,18 @@ public void testAgainstKnownList()
138138
new Object[]{NISTObjectIdentifiers.id_dsa_with_sha3_512, "SHA3-512WITHDSA"},
139139
new Object[]{BCObjectIdentifiers.falcon_512, "FALCON"},
140140
new Object[]{BCObjectIdentifiers.falcon_1024, "FALCON"},
141-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_128s, "SLHDSA"},
142-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_128f, "SLHDSA"},
143-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_192s, "SLHDSA"},
144-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_192f, "SLHDSA"},
145-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_256s, "SLHDSA"},
146-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_256f, "SLHDSA"},
147-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_128s, "SLHDSA"},
148-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_128f, "SLHDSA"},
149-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_192s, "SLHDSA"},
150-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_192f, "SLHDSA"},
151-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_256s, "SLHDSA"},
152-
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_256f, "SLHDSA"},
141+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_128s, "SLH-DSA-SHA2-128S"},
142+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_128f, "SLH-DSA-SHA2-128F"},
143+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_192s, "SLH-DSA-SHA2-192S"},
144+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_192f, "SLH-DSA-SHA2-192F"},
145+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_256s, "SLH-DSA-SHA2-256S"},
146+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_sha2_256f, "SLH-DSA-SHA2-256F"},
147+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_128s, "SLH-DSA-SHAKE-128S"},
148+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_128f, "SLH-DSA-SHAKE-128F"},
149+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_192s, "SLH-DSA-SHAKE-192S"},
150+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_192f, "SLH-DSA-SHAKE-192F"},
151+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_256s, "SLH-DSA-SHAKE-256S"},
152+
new Object[]{NISTObjectIdentifiers.id_slh_dsa_shake_256f, "SLH-DSA-SHAKE-256F"},
153153
new Object[]{BCObjectIdentifiers.sphincsPlus_sha2_128s_r3, "SPHINCS+"},
154154
new Object[]{BCObjectIdentifiers.sphincsPlus_sha2_128f_r3, "SPHINCS+"},
155155
new Object[]{BCObjectIdentifiers.sphincsPlus_shake_128s_r3, "SPHINCS+"},

0 commit comments

Comments
 (0)