-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record padding integration test #3715
Conversation
…nto frank_padding_test
timeout=5, send_marker=str(client_random_bytes)[2:-1]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you ignoring the first two characters of your random data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string output of the bytes have the form b'<string>'
. Skipping the first two chars is for skipping the literal b'
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest looking at how other tests that don't need to do [2:-1] handle the bytes / str conversions. I remember it's a bit of a mess, but doable. Maybe look at utils::to_string? If you can't figure it out, you need a comment and possible a little wrapper method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played around with this a little.
You don't need to do this for the close_marker. You do need to do something like this for the send_marker when using openssl (but not s2n). We've gotten around this in different tests in different ways, like my solution from the renegotiation test. But we should fix this at the framework level rather than repeatedly fighting with it in individual tests. Can you open an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I'll open an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need maddeleine to reapprove, since there have been nontrivial changes.
Also make sure to comment a link to a successful test run before you merge.
Resolved issues:
Description of changes:
s2nd
can process various-sized padded payloads (happy path)Below are the rest of the rfc requirements:
Call-outs:
openssl11
as the client. I choose openssl because it was already setup on my dev desktop and it has a simple api to enable padding to some block size (-record_padding <val>
)Testing:
Manual codebuild run (commit e73a449): https://us-west-2.console.aws.amazon.com/codesuite/codebuild/024603541914/projects/S2nIntegrationV2Batch2/batch/S2nIntegrationV2Batch2%3A51d63535-78ae-4dcc-af06-7ff5af7ea86d?region=us-west-2