aboutsummaryrefslogtreecommitdiffstats
path: root/tests/primitives/vectors/NIST/3DES/KAT/TCFB8permop.rsp
diff options
context:
space:
mode:
authorJakub Stasiak <jakub@stasiak.at>2020-06-14 20:30:18 +0200
committerGitHub <noreply@github.com>2020-06-14 13:30:18 -0500
commit0d0d70bd78f432397b91eee4d9743000686037a6 (patch)
treeb5cc66c60ea5436171275bf606e0aa58ceca0c2e /tests/primitives/vectors/NIST/3DES/KAT/TCFB8permop.rsp
parent09b9fd924d7714883683d534f65585c4f5986b1e (diff)
downloadcryptography-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/primitives/vectors/NIST/3DES/KAT/TCFB8permop.rsp')
0 files changed, 0 insertions, 0 deletions