| Server IP : 104.21.4.30 / Your IP : 172.71.28.133 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/nacl/bindings/__pycache__/ |
Upload File : |
U
�֫[J � @ s� d dl mZmZmZ d dlmZ d dlmZ d dl m
Z
mZ d dlm
Z
e�� Ze�� Ze�� Ze�� Ze�� Ze�� Ze�� Ze�� Ze�� ZdZ dZ!dd � Z"ed
d
d
fdd�Z#d
d
d
efd
d�Z$dd� Z%dd� Z&dd� Z'dS )� )�absolute_import�division�print_function)�
integer_types)�
exceptions)�ffi�lib)�ensurez!{0} length greater than {1} bytesz{0} greater than {1}c C s� t t|t�dtjd� t t|t�dtjd� t t|t�dtjd� t t| t�dtjd� t | tkt�dt�tj d� t t
|�tkt�dt�tj d� t t
|�t
kt�dt
�tj d� t t
|�tkt�d t�tj d� d
S )zCheck hash paramterszKey must be a bytes sequence�ZraisingzSalt must be a bytes sequencezPerson must be a bytes sequencez%Digest size must be an integer numberZDigest_sizeZKeyZSaltZPersonN)r �
isinstance�bytes�exc� TypeErrorr �crypto_generichash_BYTES_MAX�_TOOBIG�format�
ValueError�len�crypto_generichash_KEYBYTES_MAX� _OVERLONG�crypto_generichash_SALTBYTES� crypto_generichash_PERSONALBYTES)�digest_size�key�salt�person� r �B/usr/lib/python3/dist-packages/nacl/bindings/crypto_generichash.py�_checkparams'