Optimised sent Fernet token data.

This commit is contained in:
Mark Qvist 2021-09-02 18:34:58 +02:00
parent cd8de64201
commit e9c89209c7
2 changed files with 13 additions and 3 deletions

View file

@ -35,7 +35,7 @@ class Identity:
# Non-configurable constants
FERNET_VERSION = 0x80
FERNET_OVERHEAD = 57 # In bytes
FERNET_OVERHEAD = 54 # In bytes
AES128_BLOCKSIZE = 16 # In bytes
HASHLENGTH = 256 # In bits
SIGLENGTH = KEYSIZE # In bits