Skip to content

Commit

Permalink
Merge pull request #526 from tlsfuzzer/brainpool_in_tls1_3
Browse files Browse the repository at this point in the history
add brainpool identifiers from RFC8734
  • Loading branch information
tomato42 authored Aug 22, 2024
2 parents 2020609 + c332368 commit 396dd5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tlslite/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ class SignatureScheme(TLSEnum):
rsa_pss_sha384 = (8, 5)
rsa_pss_sha512 = (8, 6)

# RFC 8734
# the names are from RFC, so we don't care that they don't follow naming
# pattern
# pylint: disable=invalid-name
ecdsa_brainpoolP256r1tls13_sha256 = (8, 0x1A)
ecdsa_brainpoolP384r1tls13_sha384 = (8, 0x1B)
ecdsa_brainpoolP512r1tls13_sha512 = (8, 0x1C)
# pylint: enable=invalid-name

dsa_sha1 = (2, 2)
dsa_sha224 = (3, 2)
dsa_sha256 = (4, 2)
Expand Down Expand Up @@ -421,6 +430,12 @@ class GroupName(TLSEnum):
ffdhe8192 = 260
allFF = list(range(256, 261))

# RFC8734
brainpoolP256r1tls13 = 31
brainpoolP384r1tls13 = 32
brainpoolP512r1tls13 = 33
allEC.extend(list(range(31, 34)))

all = allEC + allFF

@classmethod
Expand Down

0 comments on commit 396dd5c

Please sign in to comment.