Skip to content

Commit efb3990

Browse files
Draft 13 of Composite ML-DSA (#120961)
Update to draft 13 of Composite ML-DSA. Changelog: lamps-wg/draft-composite-sigs@draft-ietf-lamps-pq-composite-sigs-12...main
1 parent 3927844 commit efb3990

File tree

4 files changed

+133
-133
lines changed

4 files changed

+133
-133
lines changed

src/libraries/Common/src/System/Security/Cryptography/CompositeMLDsaManaged.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,23 +626,23 @@ private static Dictionary<CompositeMLDsaAlgorithm, AlgorithmMetadata> CreateAlgo
626626
new AlgorithmMetadata(
627627
MLDsaAlgorithm.MLDsa65,
628628
ECDsaAlgorithm.CreateP256(HashAlgorithmName.SHA256),
629-
[.."COMPSIG-MLDSA65-P256-SHA512"u8],
629+
[.."COMPSIG-MLDSA65-ECDSA-P256-SHA512"u8],
630630
HashAlgorithmName.SHA512)
631631
},
632632
{
633633
CompositeMLDsaAlgorithm.MLDsa65WithECDsaP384,
634634
new AlgorithmMetadata(
635635
MLDsaAlgorithm.MLDsa65,
636636
ECDsaAlgorithm.CreateP384(HashAlgorithmName.SHA384),
637-
[.."COMPSIG-MLDSA65-P384-SHA512"u8],
637+
[.."COMPSIG-MLDSA65-ECDSA-P384-SHA512"u8],
638638
HashAlgorithmName.SHA512)
639639
},
640640
{
641641
CompositeMLDsaAlgorithm.MLDsa65WithECDsaBrainpoolP256r1,
642642
new AlgorithmMetadata(
643643
MLDsaAlgorithm.MLDsa65,
644644
ECDsaAlgorithm.CreateBrainpoolP256r1(HashAlgorithmName.SHA256),
645-
[.."COMPSIG-MLDSA65-BP256-SHA512"u8],
645+
[.."COMPSIG-MLDSA65-ECDSA-BP256-SHA512"u8],
646646
HashAlgorithmName.SHA512)
647647
},
648648
{
@@ -658,15 +658,15 @@ private static Dictionary<CompositeMLDsaAlgorithm, AlgorithmMetadata> CreateAlgo
658658
new AlgorithmMetadata(
659659
MLDsaAlgorithm.MLDsa87,
660660
ECDsaAlgorithm.CreateP384(HashAlgorithmName.SHA384),
661-
[.."COMPSIG-MLDSA87-P384-SHA512"u8],
661+
[.."COMPSIG-MLDSA87-ECDSA-P384-SHA512"u8],
662662
HashAlgorithmName.SHA512)
663663
},
664664
{
665665
CompositeMLDsaAlgorithm.MLDsa87WithECDsaBrainpoolP384r1,
666666
new AlgorithmMetadata(
667667
MLDsaAlgorithm.MLDsa87,
668668
ECDsaAlgorithm.CreateBrainpoolP384r1(HashAlgorithmName.SHA384),
669-
[.."COMPSIG-MLDSA87-BP384-SHA512"u8],
669+
[.."COMPSIG-MLDSA87-ECDSA-BP384-SHA512"u8],
670670
HashAlgorithmName.SHA512)
671671
},
672672
{
@@ -698,7 +698,7 @@ private static Dictionary<CompositeMLDsaAlgorithm, AlgorithmMetadata> CreateAlgo
698698
new AlgorithmMetadata(
699699
MLDsaAlgorithm.MLDsa87,
700700
ECDsaAlgorithm.CreateP521(HashAlgorithmName.SHA512),
701-
[.."COMPSIG-MLDSA87-P521-SHA512"u8],
701+
[.."COMPSIG-MLDSA87-ECDSA-P521-SHA512"u8],
702702
HashAlgorithmName.SHA512)
703703
}
704704
};

src/libraries/Common/src/System/Security/Cryptography/Oids.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,24 @@ internal static partial class Oids
135135
internal const string Mgf1 = "1.2.840.113549.1.1.8";
136136
internal const string PSpecified = "1.2.840.113549.1.1.9";
137137

138-
internal const string MLDsa44WithRSA2048PssPreHashSha256 = "2.16.840.1.114027.80.9.1.20";
139-
internal const string MLDsa44WithRSA2048Pkcs15PreHashSha256 = "2.16.840.1.114027.80.9.1.21";
140-
internal const string MLDsa44WithEd25519PreHashSha512 = "2.16.840.1.114027.80.9.1.22";
141-
internal const string MLDsa44WithECDsaP256PreHashSha256 = "2.16.840.1.114027.80.9.1.23";
142-
internal const string MLDsa65WithRSA3072PssPreHashSha512 = "2.16.840.1.114027.80.9.1.24";
143-
internal const string MLDsa65WithRSA3072Pkcs15PreHashSha512 = "2.16.840.1.114027.80.9.1.25";
144-
internal const string MLDsa65WithRSA4096PssPreHashSha512 = "2.16.840.1.114027.80.9.1.26";
145-
internal const string MLDsa65WithRSA4096Pkcs15PreHashSha512 = "2.16.840.1.114027.80.9.1.27";
146-
internal const string MLDsa65WithECDsaP256PreHashSha512 = "2.16.840.1.114027.80.9.1.28";
147-
internal const string MLDsa65WithECDsaP384PreHashSha512 = "2.16.840.1.114027.80.9.1.29";
148-
internal const string MLDsa65WithECDsaBrainpoolP256r1PreHashSha512 = "2.16.840.1.114027.80.9.1.30";
149-
internal const string MLDsa65WithEd25519PreHashSha512 = "2.16.840.1.114027.80.9.1.31";
150-
internal const string MLDsa87WithECDsaP384PreHashSha512 = "2.16.840.1.114027.80.9.1.32";
151-
internal const string MLDsa87WithECDsaBrainpoolP384r1PreHashSha512 = "2.16.840.1.114027.80.9.1.33";
152-
internal const string MLDsa87WithEd448PreHashShake256_512 = "2.16.840.1.114027.80.9.1.34";
153-
internal const string MLDsa87WithRSA3072PssPreHashSha512 = "2.16.840.1.114027.80.9.1.35";
154-
internal const string MLDsa87WithRSA4096PssPreHashSha512 = "2.16.840.1.114027.80.9.1.36";
155-
internal const string MLDsa87WithECDsaP521PreHashSha512 = "2.16.840.1.114027.80.9.1.37";
138+
internal const string MLDsa44WithRSA2048PssPreHashSha256 = "1.3.6.1.5.5.7.6.37";
139+
internal const string MLDsa44WithRSA2048Pkcs15PreHashSha256 = "1.3.6.1.5.5.7.6.38";
140+
internal const string MLDsa44WithEd25519PreHashSha512 = "1.3.6.1.5.5.7.6.39";
141+
internal const string MLDsa44WithECDsaP256PreHashSha256 = "1.3.6.1.5.5.7.6.40";
142+
internal const string MLDsa65WithRSA3072PssPreHashSha512 = "1.3.6.1.5.5.7.6.41";
143+
internal const string MLDsa65WithRSA3072Pkcs15PreHashSha512 = "1.3.6.1.5.5.7.6.42";
144+
internal const string MLDsa65WithRSA4096PssPreHashSha512 = "1.3.6.1.5.5.7.6.43";
145+
internal const string MLDsa65WithRSA4096Pkcs15PreHashSha512 = "1.3.6.1.5.5.7.6.44";
146+
internal const string MLDsa65WithECDsaP256PreHashSha512 = "1.3.6.1.5.5.7.6.45";
147+
internal const string MLDsa65WithECDsaP384PreHashSha512 = "1.3.6.1.5.5.7.6.46";
148+
internal const string MLDsa65WithECDsaBrainpoolP256r1PreHashSha512 = "1.3.6.1.5.5.7.6.47";
149+
internal const string MLDsa65WithEd25519PreHashSha512 = "1.3.6.1.5.5.7.6.48";
150+
internal const string MLDsa87WithECDsaP384PreHashSha512 = "1.3.6.1.5.5.7.6.49";
151+
internal const string MLDsa87WithECDsaBrainpoolP384r1PreHashSha512 = "1.3.6.1.5.5.7.6.50";
152+
internal const string MLDsa87WithEd448PreHashShake256_512 = "1.3.6.1.5.5.7.6.51";
153+
internal const string MLDsa87WithRSA3072PssPreHashSha512 = "1.3.6.1.5.5.7.6.52";
154+
internal const string MLDsa87WithRSA4096PssPreHashSha512 = "1.3.6.1.5.5.7.6.53";
155+
internal const string MLDsa87WithECDsaP521PreHashSha512 = "1.3.6.1.5.5.7.6.54";
156156

157157
// PKCS#7
158158
internal const string NoSignature = "1.3.6.1.5.5.7.6.2";

0 commit comments

Comments
 (0)