From 448a60aef468166b9d50f2a7b2429c62f4467a97 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 4 Feb 2013 13:29:14 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sha3sum.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sha3sum.py') diff --git a/sha3sum.py b/sha3sum.py index 872edce..c508254 100755 --- a/sha3sum.py +++ b/sha3sum.py @@ -349,9 +349,9 @@ class SHA3: @staticmethod - def initalise(r, c, n): + def initialise(r, c, n): ''' - Initalise Keccak sponge + Initialise Keccak sponge @param r:int The bitrate @param c:int The capacity @@ -697,7 +697,7 @@ along with this program. If not, see . rc = '' fn = '/dev/stdin' if filename is None else filename with open(fn, 'rb') as file: - SHA3.initalise(r, c, o) + SHA3.initialise(r, c, o) blksize = os.stat(os.path.realpath(fn)).st_size while True: chunk = file.read(blksize) @@ -706,7 +706,7 @@ along with this program. If not, see . SHA3.update(chunk) bs = SHA3.digest(file.read()) for _ in range(1, i): - SHA3.initalise(r, c, o) + SHA3.initialise(r, c, o) bs = SHA3.digest(bs) if binary: if filename is None: -- cgit v1.2.3-70-g09d2