Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/Poly1305.cpython-311.pyc
]j d dl mZ d dlmZmZmZ d dlmZ d dlm Z d dl
mZmZm
Z
mZmZmZmZ edd Z G d d e Zd
ZdS ) ) unhexlify)bordtobytes_copy_bytes)BLAKE2s)get_random_bytes)load_pycryptodome_raw_libVoidPointerSmartPointercreate_string_bufferget_raw_bufferc_size_tc_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 @ e Zd ZdZdZd Zd Zd Zd Zd Z d Z
d Zd
S )Poly1305_MACzAn 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 p t | dk rt d t | dk rt d d | _ t }t | t | t t | t | t t | }|rt d|z t |
t j | _ |r|
| d S d S )Nr z 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_ofr r r getpoly1305_destroy_stateupdate)selfrsdatastateresults v/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Hash/Poly1305.py__init__zPoly1305_MAC.__init__? s q66R<<?@@@q66R<<?@@@
,,U-=-=-?-?-8^^-5c!ff-=-=-8^^-5c!ff-=-= / / ODvMNNN"599;;#0#AC C KK c | j rt d t | j t
| t t | }|rt d|z | S )zAuthenticate 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_updater r r r r r )r r! r# s r$ r zPoly1305_MAC.updateV s = XVWWW..t{/@/@/:4/@/@/7D /B/BD D NCfLMMMr&