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
Ë
ž¬`itãóz—ddlmZddlmZmZmZmZmZmZm    Z    m
Z
ddl m Z edd«Z Gd„d«Zd d    „Zd
Zd Zy) é)Ú _copy_bytes)Úload_pycryptodome_raw_libÚcreate_string_bufferÚget_raw_bufferÚ VoidPointerÚ SmartPointerÚc_size_tÚ c_uint8_ptrÚis_writeable_buffer)Úget_random_byteszCrypto.Cipher._Salsa20aþ
                    int Salsa20_stream_init(uint8_t *key, size_t keylen,
                                            uint8_t *nonce, size_t nonce_len,
                                            void **pSalsaState);
                    int Salsa20_stream_destroy(void *salsaState);
                    int Salsa20_stream_encrypt(void *salsaState,
                                               const uint8_t in[],
                                               uint8_t out[], size_t len);
                    có&—eZdZdZd„Zdd„Zdd„Zy)Ú Salsa20CipherzŸSalsa20 cipher object. Do not create it directly. Use :py:func:`new`
    instead.
 
    :var nonce: The nonce with length 8
    :vartype nonce: byte string
    c
ód—t|«tvrtdt|«z«‚t|«dk7rtdt|«z«‚tdd|«|_t «|_tjt|«tt|««t|«tt|««|j j««}|r td«‚t|j j«tj«|_d|_t|«|_y)zQInitialize a Salsa20 cipher object
 
        See also `new()` at the module level.z+Incorrect key length for Salsa20 (%d bytes)éz-Incorrect nonce length for Salsa20 (%d bytes)Nz'Error %d instantiating a Salsa20 cipheré)ÚlenÚkey_sizeÚ
ValueErrorrÚnoncerÚ_stateÚ_raw_salsa20_libÚSalsa20_stream_initr
r    Ú
address_ofrÚgetÚSalsa20_stream_destroyÚ
block_size)ÚselfÚkeyrÚresults    õhH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\Crypto/Cipher/Salsa20.pyÚ__init__zSalsa20Cipher.__init__6sø€ô
ˆs‹8œ8Ñ #ÜÐJÌSÐQTËXÑUÓVÐ Vä ˆu‹:˜Š?ÜÐLÜ  ›Zñ(ó)ð )ô!  t¨UÓ3ˆŒ
ä!“mˆŒ Ü!×5Ñ5Ü# CÓ(Ü ¤ S£Ó*Ü# EÓ*Ü ¤ U£Ó,ØŸ ™ ×.Ñ.Ó0ó 2ˆñ ÜÐFÓGÐ GÜ" 4§;¡;§?¡?Ó#4Ü#3×#JÑ#JóLˆŒ ðˆŒÜ˜C›ˆ óNc
ó —|€tt|««}nF|}t|«s td«‚t|«t|«k7rt    dt|«z«‚t
j |jj«t|«t|«tt|«««}|rt    d|z«‚|€ t|«Sy)a«Encrypt a piece of data.
 
        Args:
          plaintext(bytes/bytearray/memoryview): The data to encrypt, of any size.
        Keyword Args:
          output(bytes/bytearray/memoryview): The location where the ciphertext
            is written to. If ``None``, the ciphertext is returned.
        Returns:
          If ``output`` is ``None``, the ciphertext is returned as ``bytes``.
          Otherwise, ``None``.
        Nz4output must be a bytearray or a writeable memoryviewz9output must have the same length as the input  (%d bytes)z&Error %d while encrypting with Salsa20) rrr Ú    TypeErrorrrÚSalsa20_stream_encryptrrr
r    r)rÚ    plaintextÚoutputÚ
ciphertextrs     r ÚencryptzSalsa20Cipher.encryptSsǀð ˆ>Ü-¬c°)«nÓ=‰JàˆJä& vÔ.ÜРVÓWÐWä9‹~¤ V£Ò,Ü ð"0Ü25°i³.ñ"AóBðBô"×8Ñ8Ø)-¯©¯©Ó):Ü)4°YÓ)?Ü)4°ZÓ)@Ü)1´#°i³.Ó)Aó    Cˆñ
ÜÐEÈÑNÓOÐ Oà ˆ>Ü! *Ó-Ð -àr"c󔗠   |j||¬«S#t$r)}tt|«jdd««‚d}~wwxYw)a±Decrypt a piece of data.
        
        Args:
          ciphertext(bytes/bytearray/memoryview): The data to decrypt, of any size.
        Keyword Args:
          output(bytes/bytearray/memoryview): The location where the plaintext
            is written to. If ``None``, the plaintext is returned.
        Returns:
          If ``output`` is ``None``, the plaintext is returned as ``bytes``.
          Otherwise, ``None``.
        )r'ÚencÚdecN)r)rÚstrÚreplace)rr(r'Úes    r ÚdecryptzSalsa20Cipher.decryptysD€ð    ;Ø—<‘< 
°6<Ó:Ð :øÜò    ;ÜœS ›VŸ^™^¨E°5Ó9Ó:Ð :ûð    ;ús‚•    Až$AÁA©N)Ú__name__Ú
__module__Ú __qualname__Ú__doc__r!r)r0©r"r rr.s„ñò!ó:$ôL;r"rNcó4—|€ td«}t||«S)a%Create a new Salsa20 cipher
 
    :keyword key: The secret key to use. It must be 16 or 32 bytes long.
    :type key: bytes/bytearray/memoryview
 
    :keyword nonce:
        A value that must never be reused for any other encryption
        done with this key. It must be 8 bytes long.
 
        If not provided, a random byte string will be generated (you can read
        it back via the ``nonce`` attribute of the returned object).
    :type nonce: bytes/bytearray/memoryview
 
    :Return: a :class:`Crypto.Cipher.Salsa20.Salsa20Cipher` object
    r)r r)rrs  r Únewr8Œs €ð" €}Ü  Ó#ˆä ˜˜eÓ $Ð$r"r)éé r1)ÚCrypto.Util.py3compatrÚCrypto.Util._raw_apirrrrrr    r
r Ú Crypto.Randomr rrr8rrr6r"r ú<module>r>sTðõ2.÷D÷DóDõ +á,Ð-Eðó    Ð÷[;ñ[;ó|%ð.€
ð r"