diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-01 12:19:47 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-01 12:19:51 -0800 |
commit | 71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d (patch) | |
tree | d8bf40e2673b572dd6d2bd2cc1bbaee70dd522fa | |
parent | 2a160d6a159817dd9d08a84e77d102e328f9af4f (diff) | |
download | cryptography-71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d.tar.gz cryptography-71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d.tar.bz2 cryptography-71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d.zip |
Explanatory comment
-rw-r--r-- | cryptography/hazmat/primitives/ciphers/modes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/ciphers/modes.py b/cryptography/hazmat/primitives/ciphers/modes.py index 51a1047c..31af5d6e 100644 --- a/cryptography/hazmat/primitives/ciphers/modes.py +++ b/cryptography/hazmat/primitives/ciphers/modes.py @@ -92,9 +92,11 @@ class GCM(object): name = "GCM" def __init__(self, initialization_vector, tag=None): + # len(initialization_vector) must in [1, 2 ** 64), but it's impossible + # to actually construct a bytes object that large, so we don't check + # for it self.initialization_vector = initialization_vector self.tag = tag def validate_for_algorithm(self, algorithm): - # TODO: figure out what this should do pass |