Skip to content

Commit 622de7d

Browse files
committed
table adjustments.
1 parent 0559404 commit 622de7d

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
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, "SPHINCS+");
50-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_128f, "SPHINCS+");
51-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_192s, "SPHINCS+");
52-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_192f, "SPHINCS+");
53-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_256s, "SPHINCS+");
54-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_sha2_256f, "SPHINCS+");
55-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_128s, "SPHINCS+");
56-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_128f, "SPHINCS+");
57-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_192s, "SPHINCS+");
58-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_192f, "SPHINCS+");
59-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_256s, "SPHINCS+");
60-
algorithms.put(NISTObjectIdentifiers.id_slh_dsa_shake_256f, "SPHINCS+");
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");
6161

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

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ public class DefaultDigestAlgorithmIdentifierFinder
161161
digestOids.put(NISTObjectIdentifiers.id_hash_slh_dsa_shake_256s_with_shake256, NISTObjectIdentifiers.id_shake256);
162162
digestOids.put(NISTObjectIdentifiers.id_hash_slh_dsa_shake_256f_with_shake256, NISTObjectIdentifiers.id_shake256);
163163

164-
digestOids.put(NISTObjectIdentifiers.id_ml_dsa_44, NISTObjectIdentifiers.id_shake256);
165-
digestOids.put(NISTObjectIdentifiers.id_ml_dsa_44, NISTObjectIdentifiers.id_shake256);
166-
digestOids.put(NISTObjectIdentifiers.id_ml_dsa_44, NISTObjectIdentifiers.id_shake256);
167-
digestOids.put(NISTObjectIdentifiers.id_hash_ml_dsa_44_with_sha512, NISTObjectIdentifiers.id_sha512);
168-
digestOids.put(NISTObjectIdentifiers.id_hash_ml_dsa_44_with_sha512, NISTObjectIdentifiers.id_sha512);
164+
digestOids.put(NISTObjectIdentifiers.id_ml_dsa_44, NISTObjectIdentifiers.id_shake128);
165+
digestOids.put(NISTObjectIdentifiers.id_ml_dsa_65, NISTObjectIdentifiers.id_shake256);
166+
digestOids.put(NISTObjectIdentifiers.id_ml_dsa_87, NISTObjectIdentifiers.id_shake256);
169167
digestOids.put(NISTObjectIdentifiers.id_hash_ml_dsa_44_with_sha512, NISTObjectIdentifiers.id_sha512);
168+
digestOids.put(NISTObjectIdentifiers.id_hash_ml_dsa_65_with_sha512, NISTObjectIdentifiers.id_sha512);
169+
digestOids.put(NISTObjectIdentifiers.id_hash_ml_dsa_87_with_sha512, NISTObjectIdentifiers.id_sha512);
170170

171171
digestOids.put(BCObjectIdentifiers.falcon, NISTObjectIdentifiers.id_shake256);
172172
digestOids.put(BCObjectIdentifiers.falcon_512, NISTObjectIdentifiers.id_shake256);
@@ -272,9 +272,9 @@ public class DefaultDigestAlgorithmIdentifierFinder
272272

273273
shake256oids.add(EdECObjectIdentifiers.id_Ed448);
274274

275-
shake256oids.add(NISTObjectIdentifiers.id_ml_dsa_44);
276-
shake256oids.add(NISTObjectIdentifiers.id_ml_dsa_65);
277-
shake256oids.add(NISTObjectIdentifiers.id_ml_dsa_87);
275+
shake256oids.add(BCObjectIdentifiers.dilithium2);
276+
shake256oids.add(BCObjectIdentifiers.dilithium3);
277+
shake256oids.add(BCObjectIdentifiers.dilithium5);
278278
shake256oids.add(BCObjectIdentifiers.dilithium2_aes);
279279
shake256oids.add(BCObjectIdentifiers.dilithium3_aes);
280280
shake256oids.add(BCObjectIdentifiers.dilithium5_aes);

0 commit comments

Comments
 (0)