blob: 41dde8dde27b57c8d1fe9a3b06ee13b8aa9af5d7 [file] [log] [blame]
Gregory P. Smithf21a5f72005-08-21 18:45:59 +00001# $Id$
2#
Gregory P. Smithf8057852007-09-09 20:25:00 +00003# Copyright (C) 2005 Gregory P. Smith (greg@krypto.org)
Gregory P. Smithf21a5f72005-08-21 18:45:59 +00004# Licensed to PSF under a Contributor Agreement.
5
Brett Cannonc2aa09a2007-05-31 19:20:00 +00006import warnings
7warnings.warn("the sha module is deprecated; use the hashlib module instead",
8 DeprecationWarning, 2)
9
Gregory P. Smithf21a5f72005-08-21 18:45:59 +000010from hashlib import sha1 as sha
11new = sha
12
13blocksize = 1 # legacy value (wrong in any useful sense)
14digest_size = 20
15digestsize = 20