
    Eh$                         d Z dZg dZddl ddlmZ 	 ddlZej                  Z G d d	e      Zdd
Zej                  Zej                  Zy# e	$ r ddl
mZ eZY 7w xY w)a  SHA-256 cryptographic hash algorithm.

SHA-256 belongs to the SHA-2_ family of cryptographic hashes.
It produces the 256 bit digest of a message.

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

*SHA* stands for Secure Hash Algorithm.

.. _SHA-2: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
z$Id$)newdigest_size
SHA256Hash    )*)HashAlgoN)_SHA256c                   8    e Zd ZdZ ed      ZdZdZddZddZ	y)	r   zLClass that implements a SHA-256 hash
    
    :undocumented: block_size
    u   	`He    @   Nc                 :    t        j                  | t        |       y N)r   __init__hashFactoryselfdatas     S/var/www/html/bid_assistant/venv/lib/python3.12/site-packages/Crypto/Hash/SHA256.pyr   zSHA256Hash.__init__G   s    $T2    c                     t        |      S r   )r   r   s     r   r   zSHA256Hash.newJ   s    $r   r   )
__name__
__module____qualname____doc__boidr   
block_sizer   r    r   r   r   r   4   s(     :
;CKJ3 r   r   c                 4    t               j                  |       S )a  Return 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 `SHA256Hash.update()`.
        Optional.

    :Return: A `SHA256Hash` object
    )r   r   )r   s    r   r   r   M   s     <D!!r   r   )r   _revision____all__Crypto.Util.py3compatCrypto.Hash.hashalgor   hashlibsha256r   ImportErrorCrypto.Hashr   r   r   r   r   r   r   r   <module>r'      sr   *  
/ # )..K   2" $$ ""
]  #Ks   A AA