🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 03:04:53 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib64
/
python3.8
/
site-packages
/
nacl
/
bindings
/
__pycache__
📍 /opt/alt/python38/lib64/python3.8/site-packages/nacl/bindings/__pycache__
🔄 Refresh
✏️
Editing: crypto_core.cpython-38.pyc
Read Only
U v��f�5 � @ s d dl mZ d dlmZmZ d dlmZ eej �Z d Zd Zd Z e rZe�� Ze�� Ze�� Z eed�dd�Zeeed�dd �Zeeed�d d�Zeed�d d�Zeed�dd�Zeed�dd�Zeeed�dd�Zeeed�dd�Zeeed�dd�Zeed�dd�ZdS )� )� exceptions)�ffi�lib)�ensure)�p�returnc C sD t tdtjd� t t| t�o&t| �tkdtjd� t � | �}|dkS )a� Check if ``p`` represents a point on the edwards25519 curve, in canonical form, on the main subgroup, and that the point doesn't have a small order. :param p: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence representing a point on the edwards25519 curve :type p: bytes :return: point validity :rtype: bool :raises nacl.exceptions.UnavailableError: If called when using a minimal build of libsodium. �Not available in minimal build�Zraisingz=Point must be a crypto_core_ed25519_BYTES long bytes sequence� )r �has_crypto_core_ed25519�exc�UnavailableError� isinstance�bytes�len�crypto_core_ed25519_BYTES� TypeErrorr �"crypto_core_ed25519_is_valid_point)r �rc� r �L/opt/alt/python38/lib64/python3.8/site-packages/nacl/bindings/crypto_core.pyr # s �� r )r �qr c C s� t tdtjd� t t| t�o<t|t�o<t| �tko<t|�tkd�d�tj d� t �dt�}t� || |�}t |dkdtjd� t �|t�dd� S ) aj Add two points on the edwards25519 curve. :param p: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence representing a point on the edwards25519 curve :type p: bytes :param q: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence representing a point on the edwards25519 curve :type q: bytes :return: a point on the edwards25519 curve represented as a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence :rtype: bytes :raises nacl.exceptions.UnavailableError: If called when using a minimal build of libsodium. r r �+Each point must be a {} long bytes sequencer �unsigned char[]r �Unexpected library errorN)r r r r r r r r �formatr r �newr �crypto_core_ed25519_add�RuntimeError�buffer�r r �rr r r r r @ s* � � � ��r c C s� t tdtjd� t t| t�o<t|t�o<t| �tko<t|�tkd�d�tj d� t �dt�}t� || |�}t |dkdtjd� t �|t�dd� S ) ay Subtract a point from another on the edwards25519 curve. :param p: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence representing a point on the edwards25519 curve :type p: bytes :param q: a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence representing a point on the edwards25519 curve :type q: bytes :return: a point on the edwards25519 curve represented as a :py:data:`.crypto_core_ed25519_BYTES` long bytes sequence :rtype: bytes :raises nacl.exceptions.UnavailableError: If called when using a minimal build of libsodium. r r r r r r r N)r r r r r r r r r r r r r �crypto_core_ed25519_subr r r r r r r"