/opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/BLAKE2s.cpython-311.pyc (10307B)
§
g›Ž´þÁŠ7ã óŒ — d dl mZ d dlmZmZ d dlmZ d dlmZm Z m
Z
mZmZm
Z
mZ edd¦ « Z G d„ de¦ « Zd „ Zd
S )é )Ú 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 ó@ — e Zd ZdZdZd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z
d „ Zd
S )Ú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| _ |dv r|sdt |¦ « z | _ t ¦ « }t | ¦ « t |¦ « t t |¦ « ¦ « t |¦ « ¦ « }|rt d|z ¦ « ‚t | ¦ « t j ¦ « | _ |r| |¦ « d S d S )NF)é é é r z1.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 úu/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Hash/BLAKE2s.pyÚ__init__zBLAKE2s_Hash.__init__L s € ð (ˆÔà$7ˆÔ!Ø!ˆÔð Ð+Ð+Ð+°CÐ+Ø1µC¸Ñ4EÔ4EÑEˆDŒHå‘
”
ˆÝ!×.Ò.¨u×/?Ò/?Ñ/AÔ/AÝ/:¸3Ñ/?Ô/?Ý/7½¸C¹¼Ñ/AÔ/AÝ/7¸Ñ/EÔ/Eñ1ô 1ˆð
ð NÝÐCÀfÑLÑMÔMÐMÝ" 5§9¢9¡;¤;Ý#3Ô#CñEô EˆŒàð Ø�KŠK˜ÑÔÐÐÐð ð ó c ó — | j r| j st d¦ « ‚t | j ¦ « t |¦ « t t |¦ « ¦ « ¦ « }|rt d|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)r r Ú TypeErrorr Úblake2s_updater! r r
r r r )r# r$ r) s r* r" zBLAKE2s_Hash.updatef s� € ð Ôð X TÔ%>ð XÝÐVÑWÔWÐWå!×0Ò0°´·²Ñ1BÔ1BÝ1<¸TÑ1BÔ1BÝ19½#¸d¹)¼)Ñ1DÔ1DñFô Fˆð ð MÝÐBÀVÑKÑLÔLÐL؈r, c óò — t d¦ « }t | j ¦ « |¦ « }|rt d|z ¦ « ‚d| _ t |¦ « d| j … S )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
r z&Error %d while creating BLAKE2s digestTN) r
r Úblake2s_digestr! r r r r r )r# Úbfrr) s r* ÚdigestzBLAKE2s_Hash.digestx sx € õ # 2Ñ&Ô&ˆÝ!×0Ò0°´·²Ñ1BÔ1BØ14ñ6ô 6ˆàð PÝÐEÈÑNÑOÔOÐOà ˆÔå˜cÑ"Ô"Ð#4 DÔ$4Ð#4Ô5Ð5r, c ó~ — d d„ t | ¦ « ¦ « D ¦ « ¦ « S )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
Ú c ó2 — g | ]}d t |¦ « z ‘ŒS )z%02x)r )Ú.0Úxs r* ú
z*BLAKE2s_Hash.hexdigest..“ s# € ÐGÐGÐG¨Q˜¥ a¡¤Ñ(ÐGÐGÐGr, )ÚjoinÚtupler3 )r# s r* Ú hexdigestzBLAKE2s_Hash.hexdigest‹ s5 € ð �wŠwÐGÐGµ%¸¿º¹
¼
Ñ2FÔ2FÐGÑGÔGÑHÔHÐHr, c ó — t d¦ « }t d||¬¦ « }t d|| ¦ « ¬¦ « }| ¦ « | ¦ « k rt d¦ « ‚dS )ag Verify 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 Únewr3 r )r# Úmac_tagÚsecretÚmac1Úmac2s r* ÚverifyzBLAKE2s_Hash.verify– ss € õ " "Ñ%Ô%ˆå˜s¨°WÐ=Ñ=Ô=ˆÝ˜s¨°T·[²[±]´]ÐCÑCÔCˆà�;Š;‰=Œ=˜DŸKšK™MœMÒ)Ð)ÝÐ/Ñ0Ô0Ð0ð *Ð)r, c ód — | t t |¦ « ¦ « ¦ « dS )an 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)rE r r )r# Úhex_mac_tags r* Ú hexverifyzBLAKE2s_Hash.hexverify« s, € ð
�Š•I�g kÑ2Ô2Ñ3Ô3Ñ4Ô4Ð4Ð4Ð4r, c ó> — d|vrd|vr
| j |d<