HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/utils.cpython-36.opt-1.pyc
3

VS�_w�@srdZddlmZddlmZmZddlmZmZm	Z	m
Z
ddlmZdd�Z
d	d
�Zdd�Zd
d�Zdd
dgZdS)z miscellaneous zmq_utils wrapping�)�EINTR�)�ffi�C)�ZMQError�InterruptedSystemCall�	_check_rc�_check_version)�unicodecCs,tdd�t|t�r|jd�}ttj|��S)z|Check for zmq capability by name (e.g. 'ipc', 'curve')
    
    .. versionadded:: libzmq-4.1
    .. versionadded:: 14.1
    �rzzmq.has�utf8)rr)r	�
isinstancer
�encode�boolrZzmq_has)Z
capability�r�/usr/lib64/python3.6/utils.py�hass


rcCsVtdd�tjd�}tjd�}tj||�}t|�tj|�dd�tj|�dd�fS)ugenerate a Z85 keypair for use with zmq.CURVE security
    
    Requires libzmq (≥ 4.0) to have been built with CURVE support.
    
    Returns
    -------
    (public, secret) : two bytestrings
        The public and private keypair as 40 byte z85-encoded bytestrings.
    ���
curve_keypairzchar[64]N�()rr)r	r�newrZzmq_curve_keypairr�buffer)�public�private�rcrrrrs



rcCsNt|t�r|jd�}tdd�tjd�}tj||�}t|�tj	|�dd�S)	uo Compute the public key corresponding to a private key for use
    with zmq.CURVE security

    Requires libzmq (≥ 4.2) to have been built with CURVE support.

    Parameters
    ----------
    private
        The private key as a 40 byte z85-encoded bytestring
    Returns
    -------
    bytestring
        The public key as a 40 byte z85-encoded bytestring.
    rrr�curve_publiczchar[64]Nr)rr)
r
r
rr	rrrZzmq_curve_publicrr)rrrrrrr-s



rcOs8x2||�}yt|�Wntk
r,wYqXPqWdS)z/make a call, retrying if interrupted with EINTRN)rr)�f�args�kwargsrrrr�_retry_sys_callEsr N)�__doc__�errnorZ_cffirrZ	zmq.errorrrrr	Zzmq.utils.strtypesr
rrrr �__all__rrrr�<module>s