aboutsummaryrefslogtreecommitdiffstats
path: root/sha3sum.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-02-04 13:29:14 +0100
committerMattias Andrée <maandree@operamail.com>2013-02-04 13:29:14 +0100
commit448a60aef468166b9d50f2a7b2429c62f4467a97 (patch)
tree3d4ae0408c90fe88f9d29d1259c41f2b0d7afbea /sha3sum.py
parentrepair py (S was transposed...) (diff)
downloadsha3sum-448a60aef468166b9d50f2a7b2429c62f4467a97.tar.gz
sha3sum-448a60aef468166b9d50f2a7b2429c62f4467a97.tar.bz2
sha3sum-448a60aef468166b9d50f2a7b2429c62f4467a97.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'sha3sum.py')
-rwxr-xr-xsha3sum.py8
1 files changed, 4 insertions, 4 deletions
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 <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: