Skip to content

Conversation

@ocheron
Copy link
Contributor

@ocheron ocheron commented Dec 22, 2019

Contrary to TLS, SSL requires the CBC padding to be minimal, i.e. the minimum number of bytes to get a multiple of the block size. This PR adds the verification and makes tlsfuzzer script
test-SSLv3-padding.py all successful.

Tests that records received satisfy the constraint given in RFC 6101
section 5.2.3.2:

   padding_length: The length of the padding must be less than the
   cipher's block length and may be zero.
@kazu-yamamoto kazu-yamamoto self-requested a review December 22, 2019 20:23
Copy link
Collaborator

@kazu-yamamoto kazu-yamamoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

kazu-yamamoto added a commit to kazu-yamamoto/hs-tls that referenced this pull request Dec 22, 2019
@kazu-yamamoto kazu-yamamoto merged commit b2566bf into haskell-tls:master Dec 22, 2019
@kazu-yamamoto
Copy link
Collaborator

Merged.

@ocheron ocheron deleted the ssl-padding branch December 29, 2019 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants