From ce5b05301a642f8a2536092035a43141ff3dc010 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sun, 21 Mar 2021 19:37:35 +0100 Subject: [PATCH] undo variable rename --- otp/Otp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/otp/Otp.py b/otp/Otp.py index 40c35a8..5191195 100644 --- a/otp/Otp.py +++ b/otp/Otp.py @@ -93,10 +93,10 @@ class Otp: self.defi = 0 self.otp_count = 0 - def init(self, kfact=None, kiw=None, pinmode=None): - self.Kfact = kfact + def init(self, Kfact=None, Kiw=None, pinmode=None): + self.Kfact = Kfact self.pinmode = pinmode - self.Kiw = self.decode_oaep(kiw, self.Kfact) + self.Kiw = self.decode_oaep(Kiw, self.Kfact) key = RSA.construct((int(self.Kiw, 16), Otp.exponent)) self.cipher = oaep.new(key, hash_algo=Hash.SHA256)