diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-02-04 13:29:14 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-02-04 13:29:14 +0100 |
commit | 448a60aef468166b9d50f2a7b2429c62f4467a97 (patch) | |
tree | 3d4ae0408c90fe88f9d29d1259c41f2b0d7afbea /sha3sum.py | |
parent | repair py (S was transposed...) (diff) | |
download | sha3sum-448a60aef468166b9d50f2a7b2429c62f4467a97.tar.gz sha3sum-448a60aef468166b9d50f2a7b2429c62f4467a97.tar.bz2 sha3sum-448a60aef468166b9d50f2a7b2429c62f4467a97.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | sha3sum.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 <http://www.gnu.org/licenses/>. 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 <http://www.gnu.org/licenses/>. 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: |