2005-08-21 15:45:59 -03:00
|
|
|
# $Id$
|
|
|
|
#
|
2007-09-09 17:25:00 -03:00
|
|
|
# Copyright (C) 2005 Gregory P. Smith (greg@krypto.org)
|
2005-08-21 15:45:59 -03:00
|
|
|
# Licensed to PSF under a Contributor Agreement.
|
|
|
|
|
2007-05-31 16:20:00 -03:00
|
|
|
import warnings
|
|
|
|
warnings.warn("the sha module is deprecated; use the hashlib module instead",
|
|
|
|
DeprecationWarning, 2)
|
|
|
|
|
2005-08-21 15:45:59 -03:00
|
|
|
from hashlib import sha1 as sha
|
|
|
|
new = sha
|
|
|
|
|
|
|
|
blocksize = 1 # legacy value (wrong in any useful sense)
|
|
|
|
digest_size = 20
|
|
|
|
digestsize = 20
|