aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-01 12:19:47 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-01 12:19:51 -0800
commit71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d (patch)
treed8bf40e2673b572dd6d2bd2cc1bbaee70dd522fa
parent2a160d6a159817dd9d08a84e77d102e328f9af4f (diff)
downloadcryptography-71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d.tar.gz
cryptography-71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d.tar.bz2
cryptography-71e8ca0d79d8599f1f00d6ec18cb19a2ffabfc8d.zip
Explanatory comment
-rw-r--r--cryptography/hazmat/primitives/ciphers/modes.py4
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