diff options
author | Jakub Stasiak <jakub@stasiak.at> | 2020-06-14 20:30:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 13:30:18 -0500 |
commit | 0d0d70bd78f432397b91eee4d9743000686037a6 (patch) | |
tree | b5cc66c60ea5436171275bf606e0aa58ceca0c2e /tests/hazmat/primitives/vectors/asymmetric/RSA/FIPS_186-2/SigVer15_186-3.rsp | |
parent | 09b9fd924d7714883683d534f65585c4f5986b1e (diff) | |
download | cryptography-0d0d70bd78f432397b91eee4d9743000686037a6.tar.gz cryptography-0d0d70bd78f432397b91eee4d9743000686037a6.tar.bz2 cryptography-0d0d70bd78f432397b91eee4d9743000686037a6.zip |
Add a way to pass current time to Fernet (#5256)
* Add a way to pass current time to Fernet
The motivation behind this is to be able to unit test code using Fernet
easily without having to monkey patch global state.
* Reformat to satisfy flake8
* Trigger a Fernet.encrypt() branch missing from coverage
* Revert specifying explicit current time in MultiFernet.rotate()
Message's timestamp is not verified anyway since ttl is None.
* Change the Fernet's explicit current time API slightly
This's been suggested in code review.
* Fix a typo
* Fix a typo
* Restore full MultiFernet test coverage and fix a typo
* Restore more coverage
time.time() is not called by MultiFernet.rotate() anymore so the monkey
patching and lambda need to go, because the patched function is not used
and coverage calculation will rightfully notice it.
* Remove an unused import
* Document when the *_at_time Fernet methods were added
Diffstat (limited to 'tests/hazmat/primitives/vectors/asymmetric/RSA/FIPS_186-2/SigVer15_186-3.rsp')
0 files changed, 0 insertions, 0 deletions