1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Ë
ž¬`i–ãóŒ—ddlmZmZddlmZmZmZmZmZm    Z    m
Z
ddl m Z ddl mZd„Zd„Zd„Zd„ZGd    „d
e«Zd „Zdd „Zy )é)ÚbchrÚconcat_buffers)Ú VoidPointerÚ SmartPointerÚcreate_string_bufferÚget_raw_bufferÚc_size_tÚ c_uint8_ptrÚc_ubyte)Ú long_to_bytes)Ú_raw_keccak_libcóˆ—|ddzkr|dk\sJ‚|dk(rdn|j«dzdz}t|«t|«zS)z2Left encode function as defined in NIST SP 800-185ééøréé)Ú
bit_lengthrr ©ÚxÚnums  õhH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\Crypto/Hash/cSHAKE128.pyÚ _left_encoder+sN€ð d‘ŠO  Q¢Ð'Ð &ðAŠv‰!˜AŸL™L›N¨QÑ.°1Ñ4€Cä ‹9”} QÓ'Ñ 'Ð'ócóˆ—|ddzkr|dk\sJ‚|dk(rdn|j«dzdz}t|«t|«zS)z3Right encode function as defined in NIST SP 800-185rrrrr)rr rrs  rÚ _right_encoder6sN€ð d‘ŠO  Q¢Ð'Ð &ðAŠv‰!˜AŸL™L›N¨QÑ.°1Ñ4€Cä ˜Ó œd 3›iÑ 'Ð'rcón—t|«dz}|ddzk\r td«‚tt|«|«S)z4Encode string function as defined in NIST SP 800-185rrrz$String too large to encode in cSHAKE)ÚlenÚ
ValueErrorrr)rÚbitlens  rÚ _encode_strr As;€ô‹Va‰Z€FØ !t‘)ÒÜÐ?Ó@Ð@ä œ, vÓ.°Ó 2Ð2rcód—tt|«|«}|t|«|zz
|z}|d|zzS)z2Zero pad byte string as defined in NIST SP 800-185ó)rrr)rÚlengthÚto_padÚnpads    rÚ_bytepadr&Ks>€ôœL¨Ó0°!Ó 4€Fð ”S˜“[ 6Ñ)Ñ )¨VÑ 3€Dà G˜d‘NÑ "Ð"rcó"—eZdZdZd„Zd„Zd„Zy)Ú
cSHAKE_XOFz]A cSHAKE hash object.
    Do not instantiate directly.
    Use the :func:`new` function.
    cóÞ—t«}|s|r1t|«t|«z}t|d|z
dz«}d|_n    d}d|_t    j
|j «t|dz«td««}|rtd|z«‚t|j«tj«|_ d|_|r|j|«|r|j|«yy)Ni@réééz#Error %d while instantiating cSHAKEF)rr r&Ú_paddingr Ú keccak_initÚ
address_ofr    r rrÚgetÚkeccak_destroyÚ_stateÚ _is_squeezingÚupdate)    ÚselfÚdataÚcustomÚcapacityÚfunctionÚstateÚ prefix_unpadÚprefixÚresults             rÚ__init__zcSHAKE_XOF.__init__]sހÜ“ ˆá ‘XÜ& xÓ0´;¸vÓ3FÑFˆLܘl¨T°H©_¸qÑ,@ÓAˆFØ ˆDMàˆFØ ˆDŒMä ×,Ñ,¨U×-=Ñ-=Ó-?Ü-5°hÀ±kÓ-BÜ-4°R«[ó:ˆñ ÜÐBØ%ñ&ó'ð 'ä" 5§9¡9£;Ü#2×#AÑ#AóCˆŒ à"ˆÔá Ø K‰K˜Ô á Ø K‰K˜Õ ð rc    ó—|jr td«‚tj|jj «t |«tt|«««}|rtd||jfz«‚|S)z¼Continue hashing of a message by consuming the next chunk of data.
 
        Args:
            data (byte string/byte array/memoryview): The next chunk of the message being hashed.
        z/You cannot call 'update' after the first 'read'z Error %d while updating %s state) r3Ú    TypeErrorr Ú keccak_absorbr2r0r
r    rrÚname)r5r6r=s   rr4zcSHAKE_XOF.updatexsv€ð × Ò ÜÐMÓNÐ Nä ×.Ñ.¨t¯{©{¯©Ó/@Ü/:¸4Ó/@Ü/7¼¸D»    Ó/BóDˆñ ÜÐ?Ø &¨¯    ©    Ð2ñ3ó4ð 4àˆ rcó —d|_t|«}tj|jj «|t |«t|j««}|rtd||jfz«‚t|«S)ah
        Compute the next piece of XOF output.
 
        .. note::
            You cannot use :meth:`update` anymore after the first call to
            :meth:`read`.
 
        Args:
            length (integer): the amount of bytes this method must return
 
        :return: the next piece of XOF output (of the given length)
        :rtype: byte string
        Tz!Error %d while extracting from %s) r3rr Úkeccak_squeezer2r0r    r r-rrBr)r5r#Úbfrr=s    rÚreadzcSHAKE_XOF.readŠs~€ð"ˆÔÜ" 6Ó*ˆÜ ×/Ñ/°· ± ·±Ó0AØ03Ü08¸Ó0@Ü07¸¿ ¹ Ó0FóHˆñ ÜÐ@Ø &¨¯    ©    Ð2ñ3ó4ð 4ô˜cÓ"Ð"rN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__r>r4rF©rrr(r(Ws„ñò
ò6ó$#rr(có—t||d|«S)Né©r()r6r7r9s   rÚ_newrO¦s€ä d˜F C¨Ó 2Ð2rNcó—t||dd«S)azReturn a fresh instance of a cSHAKE128 object.
 
    Args:
       data (bytes/bytearray/memoryview):
        Optional.
        The very first chunk of the message to hash.
        It is equivalent to an early call to :meth:`update`.
       custom (bytes):
        Optional.
        A customization bytestring (``S`` in SP 800-185).
 
    :Return: A :class:`cSHAKE_XOF` object
    rMrrN)r6r7s  rÚnewrQ«s€ô  d˜F C¨Ó -Ð-r)NN)ÚCrypto.Util.py3compatrrÚCrypto.Util._raw_apirrrrr    r
r ÚCrypto.Util.numberr ÚCrypto.Hash.keccakr rrr r&Úobjectr(rOrQrKrrú<module>rWsNð÷>7÷8÷8ñ8õ
-å.ò(ò(ò3ò    #ôL#ôL#ò^3ô
.r