hyb
2026-01-30 7657e1b2fa251a2ea372710ad75cb395a3c0e374
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
Ë
ž¬`ic ãóŽ—ddlmZddlmZmZmZddlmZddlm    Z    ddl
m Z m Z m Z mZmZmZmZe dd«ZGd„d    e«Zd
„Zy ) é)Ú    unhexlify)ÚbordÚtobytesÚ _copy_bytes)ÚBLAKE2s)Úget_random_bytes)Úload_pycryptodome_raw_libÚ VoidPointerÚ SmartPointerÚcreate_string_bufferÚget_raw_bufferÚc_size_tÚ c_uint8_ptrzCrypto.Hash._poly1305aÛ
                        int poly1305_init(void **state,
                                          const uint8_t *r,
                                          size_t r_len,
                                          const uint8_t *s,
                                          size_t s_len);
                        int poly1305_destroy(void *state);
                        int poly1305_update(void *state,
                                            const uint8_t *in,
                                            size_t len);
                        int poly1305_digest(const void *state,
                                            uint8_t *digest,
                                            size_t len);
                        có>—eZdZdZdZd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z y
) Ú Poly1305_MACzÀAn Poly1305 MAC object.
    Do not instantiate directly. Use the :func:`new` function.
 
    :ivar digest_size: the size in bytes of the resulting MAC tag
    :vartype digest_size: integer
    éc óæ—t|«dk7r td«‚t|«dk7r td«‚d|_t«}tj |j «t|«tt|««t|«tt|«««}|rtd|z«‚t|j«tj«|_ |r|j|«yy)Nrz Parameter r is not 16 bytes longz Parameter s is not 16 bytes longz%Error %d while instantiating Poly1305)ÚlenÚ
ValueErrorÚ_mac_tagr
Ú _raw_poly1305Ú poly1305_initÚ
address_ofrrr ÚgetÚpoly1305_destroyÚ_stateÚupdate)ÚselfÚrÚsÚdataÚstateÚresults      õgH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\Crypto/Hash/Poly1305.pyÚ__init__zPoly1305_MAC.__init__?sǀä ˆq‹6RŠ<ÜÐ?Ó@Ð @Ü ˆq‹6RŠ<ÜÐ?Ó@Ð @àˆŒ ä“ ˆÜ×,Ñ,¨U×-=Ñ-=Ó-?Ü-8¸«^Ü-5´c¸!³fÓ-=Ü-8¸«^Ü-5´c¸!³fÓ-=ó    /ˆñ ÜÐDÀvÑMÓNÐ NÜ" 5§9¡9£;Ü#0×#AÑ#AóCˆŒ á Ø K‰K˜Õ ð óc    óè—|jr td«‚tj|jj «t |«tt|«««}|rtd|z«‚|S)zŒAuthenticate the next chunk of message.
 
        Args:
            data (byte string/byte array/memoryview): The next chunk of data
        z8You can only call 'digest' or 'hexdigest' on this objectz$Error %d while hashing Poly1305 data)
rÚ    TypeErrorrÚpoly1305_updaterrrrrr)rr!r#s   r$rzPoly1305_MAC.updateVsd€ð =Š=ÜÐVÓWÐ Wä×.Ñ.¨t¯{©{¯©Ó/@Ü/:¸4Ó/@Ü/7¼¸D»    Ó/BóDˆñ ÜÐCÀfÑLÓMÐ M؈ r&có—t«‚)N)ÚNotImplementedError)rs r$ÚcopyzPoly1305_MAC.copygs €Ü!Ó#Ð#r&c    ó"—|jr |jStd«}tj|jj «|t t|«««}|rtd|z«‚t|«|_|jS)zìReturn the **binary** (non-printable) MAC tag of the message
        authenticated so far.
 
        :return: The MAC tag digest, computed over the data processed so far.
                 Binary form.
        :rtype: byte string
        rz'Error %d while creating Poly1305 digest)
rr rÚpoly1305_digestrrrrrr )rÚbfrr#s   r$ÚdigestzPoly1305_MAC.digestjsx€ð =Š=Ø—=‘=Ð  ä" 2Ó&ˆÜ×.Ñ.¨t¯{©{¯©Ó/@Ø/2Ü/7¼¸C»Ó/AóCˆñ ÜÐFÈÑOÓPÐ Pä& sÓ+ˆŒ ؏}‰}Ðr&c    ó—djt|j««Dcgc]}dt|«z‘Œc}«Scc}w)zÓReturn the **printable** MAC tag of the message authenticated so far.
 
        :return: The MAC tag, computed over the data processed so far.
                 Hexadecimal encoded.
        :rtype: string
        Úz%02x)ÚjoinÚtupler0r)rÚxs  r$Ú    hexdigestzPoly1305_MAC.hexdigest€sD€ðw‰wÜ!& t§{¡{£}Ó!5ö7Øð¤ a£Ó(ò7ó8ð    8ùò7s§Acóî—td«}tjd||¬«}tjd||j«¬«}|j«|j«k7r t    d«‚y)ahVerify that a given **binary** MAC (computed by another party)
        is valid.
 
        Args:
          mac_tag (byte string/byte string/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_bitsÚkeyr!zMAC check failedN)rrÚnewr0r)rÚmac_tagÚsecretÚmac1Úmac2s     r$ÚverifyzPoly1305_MAC.verify‹s]€ô" "Ó%ˆä{‰{ s°¸WÔEˆÜ{‰{ s°¸T¿[¹[»]ÔKˆà ;‰;‹=˜DŸK™K›MÒ )ÜÐ/Ó0Ð 0ð *r&cóJ—|jtt|«««y)a~Verify 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)r@rr)rÚ hex_mac_tags  r$Ú    hexverifyzPoly1305_MAC.hexverifyŸs€ð      ‰ ”Iœg kÓ2Ó3Õ4r&N) Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú digest_sizer%rr,r0r6r@rC©r&r$rr5s1„ñð€Kòò.ò"$òò,    8ò1ó( 5r&rc óz—|jdd«}t|d«s td«‚|jdd«}|€ td«‚|jdd«}|jdd«}|rtd    t    |«z«‚|j ||«\}}}t |||«}tdd|«|_|S)
a°Create a new Poly1305 MAC object.
 
    Args:
        key (bytes/bytearray/memoryview):
            The 32-byte key for the Poly1305 object.
        cipher (module from ``Crypto.Cipher``):
            The cipher algorithm to use for deriving the Poly1305
            key pair *(r, s)*.
            It can only be ``Crypto.Cipher.AES`` or ``Crypto.Cipher.ChaCha20``.
        nonce (bytes/bytearray/memoryview):
            Optional. The non-repeatable value to use for the MAC of this message.
            It must be 16 bytes long for ``AES`` and 8 or 12 bytes for ``ChaCha20``.
            If not passed, a random nonce is created; you will find it in the
            ``nonce`` attribute of the new object.
        data (bytes/bytearray/memoryview):
            Optional. The very first chunk of the message to authenticate.
            It is equivalent to an early call to ``update()``.
 
    Returns:
        A :class:`Poly1305_MAC` object
    ÚcipherNÚ_derive_Poly1305_key_pairz*Parameter 'cipher' must be AES or ChaCha20r:zYou must pass a parameter 'key'Únoncer!zUnknown parameters: )    ÚpopÚhasattrrr(ÚstrrLrrrM)ÚkwargsrKÚ
cipher_keyrMr!rr Únew_macs        r$r;r;°sÀ€ð.Z‰Z˜ $Ó '€FÜ 6Ð6Ô 7ÜÐEÓFÐFà—‘˜E 4Ó(€JØÐÜÐ9Ó:Ð:à J‰Jw Ó %€EØ :‰:f˜dÓ #€Dá ÜÐ.´°V³Ñ<Ó=Ð=à×2Ñ2°:¸uÓEK€A€qˆ%ä˜1˜a Ó&€GÜ  d¨EÓ2€G„MØ €Nr&N)ÚbinasciirÚCrypto.Util.py3compatrrrÚ Crypto.HashrÚ Crypto.RandomrÚCrypto.Util._raw_apir    r
r r r rrrÚobjectrr;rIr&r$ú<module>rZsMðõ.ç<Ñ<åÝ*÷/÷/ñ/ñ*Ð*Að ó€ ô"w56ôw5óv)r&