aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-09-11 16:26:20 -0700
committerDavid Reid <dreid@dreid.org>2013-09-11 16:26:20 -0700
commit07172ca3ccca988cb4de94af28c4ec3f10089a6c (patch)
tree08cffde50abffd4230ce37ebf2e74cf14a5f517c /cryptography
parentdd3c783d59010faddb1cbc1d2d16e5792b913ecf (diff)
downloadcryptography-07172ca3ccca988cb4de94af28c4ec3f10089a6c.tar.gz
cryptography-07172ca3ccca988cb4de94af28c4ec3f10089a6c.tar.bz2
cryptography-07172ca3ccca988cb4de94af28c4ec3f10089a6c.zip
OFB is specified as having an IV instead of a Nonce.
https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Output_feedback_.28OFB.29
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/primitives/block/modes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/primitives/block/modes.py b/cryptography/primitives/block/modes.py
index 0f17a1a5..9cfbca64 100644
--- a/cryptography/primitives/block/modes.py
+++ b/cryptography/primitives/block/modes.py
@@ -31,9 +31,9 @@ class ECB(object):
class OFB(object):
name = "OFB"
- def __init__(self, nonce):
+ def __init__(self, initialization_vector):
super(OFB, self).__init__()
- self.nonce = nonce
+ self.initialization_vector = initialization_vector
class CFB(object):
@@ -45,5 +45,5 @@ class CFB(object):
interfaces.ModeWithInitializationVector.register(CBC)
-interfaces.ModeWithNonce.register(OFB)
+interfaces.ModeWithInitializationVector.register(OFB)
interfaces.ModeWithInitializationVector.register(CFB)