aboutsummaryrefslogtreecommitdiffstats
path: root/sha3sum.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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: