Current File : //usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyo
�
�/�Oc@s�dZdZddgZddlZejddkrWejddkrWdd	lTndd	lTdd
lmZddl	m
Z
defd
��YZej
Z
dd�ZdS(sQSHA_d-256 hash function implementation.

This module should comply with PEP 247.
s$Id$tnewtdigest_sizei����Niii(t*(tb2a_hex(tSHA256t_SHAd256cBsMeZdZejZe�Zd�Zd�Zd�Z	d�Z
d�ZRS(s;SHA-256, doubled.

    Returns SHA-256(SHA-256(data)).
    cCs2||jk	r%tdtf��n||_dS(Ns5Do not instantiate this class directly.  Use %s.new()(t	_internaltAssertionErrort__name__t_h(tselftinternal_api_checktsha256_hash_obj((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyt__init__7scCsttj|jj��S(s$Return a copy of this hashing object(RtSHAd256RR	tcopy(R
((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyR=scCs"tj|jj��j�}|S(s7Return the hash value of this object as a binary string(RRR	tdigest(R
tretval((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyRBscCs7t|j��}tjddkr)|S|j�SdS(sHReturn the hash value of this object as a (lowercase) hexadecimal stringiiN(RRtsystversion_infotdecode(R
R((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyt	hexdigestIscCs|jj|�dS(N(R	tupdate(R
tdata((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyRSs(Rt
__module__t__doc__RRtobjectRR
RRRR(((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyR-s						
cCsD|std�}nttjtj|��}t�d|_|S(s#Return a new SHAd256 hashing objecttR(tbRRRRtglobals(Rtsha((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyRZs
(Rt__revision__t__all__RRtCrypto.Util.py21compattCrypto.Util.py3compattbinasciiRtCrypto.HashRRRRtNoneR(((sC/usr/lib64/python2.7/site-packages/Crypto/Random/Fortuna/SHAd256.pyt<module>s&

*