From 07172ca3ccca988cb4de94af28c4ec3f10089a6c Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 11 Sep 2013 16:26:20 -0700 Subject: 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 --- cryptography/primitives/block/modes.py | 6 +++--- 1 file 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) -- cgit v1.2.3