Skip to content

TLS_hmac: when no raw hash, make sure maxSz is not neg#6998

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:tls_pad_no_hash_raw_fix
Nov 27, 2023
Merged

TLS_hmac: when no raw hash, make sure maxSz is not neg#6998
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:tls_pad_no_hash_raw_fix

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

When padding byte is invalid, the maxSz can be negative. Make maxSz 0 in this case so that blocks doesn't get very large and cause delays.

Fixes zd#17062

Testing

PoC

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

When padding byte is invalid, the maxSz can be negative.
Make maxSz 0 in this case so that blocks doesn't get very large and
cause delays.
@SparkiDev SparkiDev assigned SparkiDev and wolfSSL-Bot and unassigned SparkiDev Nov 22, 2023
@JacobBarthelmeh JacobBarthelmeh merged commit 36015e9 into wolfSSL:master Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants