Skip to content

Support caller-specified time source via callback#192

Merged
raycoll merged 4 commits intoaws:masterfrom
colmmacc:master
Feb 4, 2016
Merged

Support caller-specified time source via callback#192
raycoll merged 4 commits intoaws:masterfrom
colmmacc:master

Conversation

@colmmacc
Copy link
Copy Markdown
Contributor

This change adds a new callback that allows the caller to specify
a time-providing function for s2n. This allows us to use faster
time sources in some environments, and will also allow for time
to be mocked in certain unit tests.

This change adds a new callback that allows the caller to specify
a time-providing function for s2n. This allows us to use faster
time sources in some environments, and will also allow for time
to be mocked in certain unit tests.
The alpn test case takes up to 30 seconds to run. Fake the time
using the new pluggable time function.
@colmmacc colmmacc mentioned this pull request Feb 1, 2016
@raycoll
Copy link
Copy Markdown
Contributor

raycoll commented Feb 2, 2016

I'm confused why f36f5bc caused the s2n_cbc_verify_test to fail for the .5 sigma case. Does the initial random seed of data give this unit test a chance of failing at any given run?

@colmmacc
Copy link
Copy Markdown
Contributor Author

colmmacc commented Feb 2, 2016

A single-tailed uniform random distribution should fail a .5 sigma test about one in every 200 iterations. We could make it less sensitive, but then the test wouldn't be as valuable. I should really convert those tests to something more discerning. I have some replacements from Martin Albrecht that do a different kind of test but haven't integrated them yet.

raycoll added a commit that referenced this pull request Feb 4, 2016
Support caller-specified time source via callback
@raycoll raycoll merged commit 5c5acf5 into aws:master Feb 4, 2016
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.

2 participants