Skip to content

Commit 6ec7caa

Browse files
committed
handle both missing parameters and NULL parameters for RSA-PSS
1 parent 7dd5b95 commit 6ec7caa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tlslite/constants.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,14 @@ class AlgorithmOID(TLSEnum):
345345
SignatureScheme.rsa_pss_rsae_sha384
346346
oid[bytes(a2b_hex('300b0609608648016503040203'))] = \
347347
SignatureScheme.rsa_pss_rsae_sha512
348+
# for RSA-PSS an AlgorithmIdentifier with and without NULL parameters
349+
# is valid. See RFC 4055 Section 2.1
350+
oid[bytes(a2b_hex('300d06096086480165030402010500'))] = \
351+
SignatureScheme.rsa_pss_rsae_sha256
352+
oid[bytes(a2b_hex('300d06096086480165030402020500'))] = \
353+
SignatureScheme.rsa_pss_rsae_sha384
354+
oid[bytes(a2b_hex('300d06096086480165030402030500'))] = \
355+
SignatureScheme.rsa_pss_rsae_sha512
348356
oid[bytes(a2b_hex('06072A8648CE380403'))] = \
349357
SignatureScheme.dsa_sha1
350358
oid[bytes(a2b_hex('0609608648016503040301'))] = \

0 commit comments

Comments
 (0)