Skip to content

Commit b0f9036

Browse files
authored
Merge pull request #546 from tlsfuzzer/ml-dsa-codepoints
add ML-DSA codepoints
2 parents 7e9e8fc + 0758004 commit b0f9036

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tlslite/constants.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ class SignatureScheme(TLSEnum):
243243
rsa_pss_sha384 = (8, 5)
244244
rsa_pss_sha512 = (8, 6)
245245

246+
# draft-tls-westerbaan-mldsa-00
247+
mldsa44 = (9, 4)
248+
mldsa65 = (9, 5)
249+
mldsa87 = (9, 6)
250+
246251
# RFC 8734
247252
# the names are from RFC, so we don't care that they don't follow naming
248253
# pattern
@@ -277,6 +282,8 @@ def getKeyType(scheme):
277282
"""
278283
if scheme in ("ed25519", "ed448"):
279284
return "eddsa"
285+
if "mldsa" in scheme:
286+
return "mldsa"
280287
try:
281288
getattr(SignatureScheme, scheme)
282289
except AttributeError:

0 commit comments

Comments
 (0)