MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python38/lib64/python3.8/site-packages/Crypto/Hash/__pycache__/SHA.cpython-38.pyc
U

Bd\R�@s�dZdZdddgZddlTddlmZzddlZejZWn e	k
rXddl
Z
e
ZYnXGd	d�de�Zdd
d�Zej
Z
ejZdS)a�SHA-1 cryptographic hash algorithm.

SHA-1_ produces the 160 bit digest of a message.

    >>> from Crypto.Hash import SHA
    >>>
    >>> h = SHA.new()
    >>> h.update(b'Hello')
    >>> print h.hexdigest()

*SHA* stands for Secure Hash Algorithm.

This algorithm is not considered secure. Do not use it for new designs.

.. _SHA-1: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
z$Id$�new�digest_size�SHA1Hash�)�*)�HashAlgoNc@s4eZdZdZed�ZdZdZd
dd�Zddd	�Z	dS)rzJClass that implements a SHA-1 hash
    
    :undocumented: block_size
    z+��@NcCst�|t|�dS�N)r�__init__�hashFactory��self�data�r�/SHA.pyr
IszSHA1Hash.__init__cCst|�Sr	)rrrrrrLszSHA1Hash.new)N)N)
�__name__�
__module__�__qualname__�__doc__�bZoidr�
block_sizer
rrrrrr6s

cCst��|�S)aReturn a fresh instance of the hash object.

    :Parameters:
       data : byte string
        The very first chunk of the message to hash.
        It is equivalent to an early call to `SHA1Hash.update()`.
        Optional.

    :Return: A `SHA1Hash` object
    )rr)rrrrrOs)N)rZ_revision__�__all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgorZhashlibZsha1r�ImportErrorZsharrrrrrrr�<module>s