Skip to content

Commit 13abe07

Browse files
authored
Merge pull request #471 from tlsfuzzer/ossl3-pss
handle both missing parameters and NULL parameters for RSA-PSS
2 parents 7dd5b95 + 52f49aa commit 13abe07

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,15 @@ jobs:
337337
- name: Lint the code
338338
# pylint doesn't work on 2.6: https://bitbucket.org/logilab/pylint/issue/390/py26-compatiblity-broken
339339
if: ${{ matrix.python-version != '2.6' }}
340+
env:
341+
PYTHON_VERSION: ${{ matrix.python-version }}
340342
run: |
343+
opt=""
344+
if ! [[ $PYTHON_VERSION == 2.6 || $PYTHON_VERSION == 2.7 || $PYTHON_VERSION == 3.3 || $PYTHON_VERSION == 3.4 || $PYTHON_VERSION == 3.5 ]]; then
345+
opt="--compare-branch origin/master"
346+
fi
341347
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" tlslite > pylint_report.txt || :
342-
diff-quality --violations=pylint --fail-under=90 pylint_report.txt
348+
diff-quality $opt --violations=pylint --fail-under=90 pylint_report.txt
343349
- name: Verify that intermediate commits are testable
344350
if: ${{ github.event.pull_request }}
345351
env:

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)