hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Ë
ž¬`iÌ%ãó~—ddlmZddlmZmZddlmZddlmZm    Z    m
Z
m Z m Z m Z mZedd«ZGd„de«Zd    „Zy
) é)Ú    unhexlify)ÚbordÚtobytes)Úget_random_bytes)Úload_pycryptodome_raw_libÚ VoidPointerÚ SmartPointerÚcreate_string_bufferÚget_raw_bufferÚc_size_tÚ c_uint8_ptrzCrypto.Hash._BLAKE2sa²
                        int blake2s_init(void **state,
                                         const uint8_t *key,
                                         size_t key_size,
                                         size_t digest_size);
                        int blake2s_destroy(void *state);
                        int blake2s_update(void *state,
                                           const uint8_t *buf,
                                           size_t len);
                        int blake2s_digest(const void *state,
                                           uint8_t digest[32]);
                        int blake2s_copy(const void *src, void *dst);
                        có>—eZdZdZdZd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z y
) Ú BLAKE2s_Hasha–A BLAKE2s hash object.
    Do not instantiate directly. Use the :func:`new` function.
 
    :ivar oid: ASN.1 Object ID
    :vartype oid: string
 
    :ivar block_size: the size in bytes of the internal message block,
                      input to the compression function
    :vartype block_size: integer
 
    :ivar digest_size: the size in bytes of the resulting hash
    :vartype digest_size: integer
    é c    óª—||_||_d|_|dvr|sdt|«z|_t «}t j|j«t|«tt|««t|««}|rtd|z«‚t|j«t j«|_|r|j#|«yy)NF)ééérz1.3.6.1.4.1.1722.12.2.2.z$Error %d while instantiating BLAKE2s)Ú digest_sizeÚ_update_after_digestÚ _digest_doneÚstrÚoidrÚ_raw_blake2s_libÚ blake2s_initÚ
address_ofr r ÚlenÚ
ValueErrorr    ÚgetÚblake2s_destroyÚ_stateÚupdate)ÚselfÚdataÚkeyÚ digest_bytesÚupdate_after_digestÚstateÚresults       õfH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\Crypto/Hash/BLAKE2s.pyÚ__init__zBLAKE2s_Hash.__init__LsÀ€ð(ˆÔà$7ˆÔ!Ø!ˆÔð Ð+Ñ +±CØ1´C¸ Ó4EÑEˆDŒHä“ ˆÜ!×.Ñ.¨u×/?Ñ/?Ó/AÜ/:¸3Ó/?Ü/7¼¸C»Ó/AÜ/7¸ Ó/Eó1ˆñ
ÜÐCÀfÑLÓMÐ MÜ" 5§9¡9£;Ü#3×#CÑ#CóEˆŒ á Ø K‰K˜Õ ð óc    ó—|jr|js td«‚tj    |j
j «t|«tt|«««}|rtd|z«‚|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.
        z8You can only call 'digest' or 'hexdigest' on this objectz#Error %d while hashing BLAKE2s data) rrÚ    TypeErrorrÚblake2s_updater!rr r rr)r#r$r)s   r*r"zBLAKE2s_Hash.updatefsn€ð × Ò  T×%>Ò%>ÜÐVÓWÐ Wä!×0Ñ0°·±·±Ó1BÜ1<¸TÓ1BÜ19¼#¸d»)Ó1DóFˆñ ÜÐBÀVÑKÓLÐ L؈ r,cóҗtd«}tj|jj    «|«}|rt d|z«‚d|_t|«d|jS)zçReturn the **binary** (non-printable) digest of the message that has been hashed so far.
 
        :return: The hash digest, computed over the data processed so far.
                 Binary form.
        :rtype: byte string
        rz&Error %d while creating BLAKE2s digestTN)    r
rÚblake2s_digestr!rrrr r)r#Úbfrr)s   r*ÚdigestzBLAKE2s_Hash.digestxsc€ô# 2Ó&ˆÜ!×0Ñ0°·±·±Ó1BØ14ó6ˆá ÜÐEÈÑNÓOÐ Oà ˆÔä˜cÓ"Ð#4 D×$4Ñ$4Ð5Ð5r,c    ó—djt|j««Dcgc]}dt|«z‘Œc}«Scc}w)zÝReturn the **printable** digest of the message that has been hashed so far.
 
        :return: The hash digest, computed over the data processed so far.
                 Hexadecimal encoded.
        :rtype: string
        Úz%02x)ÚjoinÚtupler3r)r#Úxs  r*Ú    hexdigestzBLAKE2s_Hash.hexdigest‹s5€ðw‰w´%¸¿ ¹ » Ó2FÖG¨Q˜¤ a£Ó(ÒGÓHÐHùÒGs§AcóƗtd«}td||¬«}td||j«¬«}|j«|j«k7r td«‚y)agVerify that a given **binary** MAC (computed by another party)
        is valid.
 
        Args:
          mac_tag (byte string/byte array/memoryview): the expected MAC of the message.
 
        Raises:
            ValueError: if the MAC does not match. It means that the message
                has been tampered with or that the MAC key is incorrect.
        ré )Ú digest_bitsr%r$zMAC check failedN)rÚnewr3r)r#Úmac_tagÚsecretÚmac1Úmac2s     r*ÚverifyzBLAKE2s_Hash.verify–sU€ô" "Ó%ˆä˜s¨°WÔ=ˆÜ˜s¨°T·[±[³]ÔCˆà ;‰;‹=˜DŸK™K›MÒ )ÜÐ/Ó0Ð 0ð *r,cóJ—|jtt|«««y)anVerify that a given **printable** MAC (computed by another party)
        is valid.
 
        Args:
            hex_mac_tag (string): the expected MAC of the message, as a hexadecimal string.
 
        Raises:
            ValueError: if the MAC does not match. It means that the message
                has been tampered with or that the MAC key is incorrect.
        N)rBrr)r#Ú hex_mac_tags  r*Ú    hexverifyzBLAKE2s_Hash.hexverify«s€ð      ‰ ”Iœg kÓ2Ó3Õ4r,c óF—d|vrd|vr|j|d<tdi|¤ŽS)zQReturn a new instance of a BLAKE2s hash object.
        See :func:`new`.
        r&r<©)rr=)r#Úkwargss  r*r=zBLAKE2s_Hash.newºs/€ð
 Ñ '¨MÀÑ,GØ%)×%5Ñ%5ˆF>Ñ "ä‰}V‰}Ðr,N) Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú
block_sizer+r"r3r9rBrEr=rGr,r*rr:s2„ñ ð€Jòò4ò$6ò&Iò1ò* 5ór,rc ó —|jdd«}|jdd«}|jdd«}|jdd«}d||fvr td«‚d||fk(rd    }|"d
|cxkrd    ksDtd «‚td «‚d |cxkrd krn td«‚|d zr td«‚|d z}|jdd«}t|«d    kDr td«‚|rtdt    |«z«‚t ||||«S)aÏCreate a new hash object.
 
    Args:
        data (byte string/byte array/memoryview):
            Optional. The very first chunk of the message to hash.
            It is equivalent to an early call to :meth:`BLAKE2s_Hash.update`.
        digest_bytes (integer):
            Optional. The size of the digest, in bytes (1 to 32). Default is 32.
        digest_bits (integer):
            Optional and alternative to ``digest_bytes``.
            The size of the digest, in bits (8 to 256, in steps of 8).
            Default is 256.
        key (byte string):
            Optional. The key to use to compute the MAC (1 to 64 bytes).
            If not specified, no key will be used.
        update_after_digest (boolean):
            Optional. By default, a hash object cannot be updated anymore after
            the digest is computed. When this flag is ``True``, such check
            is no longer enforced.
 
    Returns:
        A :class:`BLAKE2s_Hash` hash object
    r$Nr'Fr&r<z*Only one digest parameter must be provided)NNréz!'digest_bytes' not in range 1..32ééz2'digest_bits' not in range 8..256, with steps of 8r%r,z"BLAKE2s key cannot exceed 32 byteszUnknown parameters: )Úpopr.rrrr)rHr$r'r&r<r%s      r*r=r=Ås6€ð2 :‰:f˜dÓ #€DØ Ÿ*™*Ð%:¸EÓBÐà—:‘:˜n¨dÓ3€LØ—*‘*˜]¨DÓ1€KØ L +Ð.Ñ.ÜÐDÓEÐEؘ  kÐ2Ò2؈ ØÐؐ\Ô' RÒ'ÜÐ@ÓAÐ Að(ÜÐ@ÓAÐ Aà[Ô' CÔ'Üð/ó0ð 0ð.9¸1ª_Üð/ó0ð 0à" aÑ'ˆ à
*‰*U˜CÓ
 €CÜ
ˆ3ƒx"‚}ÜÐ=Ó>Ð>á ÜÐ.´°V³Ñ<Ó=Ð=ä ˜˜c <Ð1DÓ EÐEr,N)ÚbinasciirÚCrypto.Util.py3compatrrÚ Crypto.RandomrÚCrypto.Util._raw_apirrr    r
r r r rÚobjectrr=rGr,r*ú<module>rXsIðõ>ç/å*÷/÷/ñ/ñ -Ð-Cð ó Ðô H6ôHóV2Fr,