shithub: riscv

ref: 01ab07ef729a2dbade38906f4acf2827ea327952
dir: /sys/lib/python/sha.py/

View raw version
# $Id: sha.py 39316 2005-08-21 18:45:59Z greg $
#
#  Copyright (C) 2005   Gregory P. Smith (greg@electricrain.com)
#  Licensed to PSF under a Contributor Agreement.

from hashlib import sha1 as sha
new = sha

blocksize = 1        # legacy value (wrong in any useful sense)
digest_size = 20
digestsize = 20