https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/nacl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/nacl/signing.pyc
�
y�\c@`s�ddlmZmZmZddlZddlmZddlmZddl	m
ZmZ
ddlmZmZdefd��YZd	ejeefd
��YZdejeefd��YZdS(
i(tabsolute_importtdivisiontprint_functionN(tencoding(t
exceptions(t
PrivateKeyt	PublicKey(tStringFixertrandomt
SignedMessagecB`s;eZdZed��Zed��Zed��ZRS(sc
    A bytes subclass that holds a messaged that has been signed by a
    :class:`SigningKey`.
    cC`s"||�}||_||_|S(N(t
_signaturet_message(tclst	signaturetmessagetcombinedtobj((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt_from_partss		cC`s|jS(sL
        The signature contained within the :class:`SignedMessage`.
        (R
(tself((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR
&scC`s|jS(sJ
        The message contained within the :class:`SignedMessage`.
        (R(R((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR-s(t__name__t
__module__t__doc__tclassmethodRtpropertyR
R(((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR	st	VerifyKeycB`s\eZdZejd�Zd�Zd�Zd�Zd�Z	dejd�Zd�ZRS(	s�
    The public key counterpart to an Ed25519 SigningKey for producing digital
    signatures.

    :param key: [:class:`bytes`] Serialized Ed25519 public key
    :param encoder: A class that is able to decode the `key`
    cC`sq|j|�}t|t�s0tjd��nt|�tjjkrdtj	dtjj��n||_
dS(Ns'VerifyKey must be created from 32 bytess%The key must be exactly %s bytes long(tdecodet
isinstancetbytestexct	TypeErrortlentnacltbindingstcrypto_sign_PUBLICKEYBYTESt
ValueErrort_key(Rtkeytencoder((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt__init__>scC`s|jS(N(R#(R((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt	__bytes__LscC`stt|��S(N(thashR(R((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt__hash__OscC`s5t||j�stStjjt|�t|��S(N(Rt	__class__tFalseRR t
sodium_memcmpR(Rtother((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt__eq__RscC`s||kS(N((RR-((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt__ne__WscC`s>|dk	r||}n|j|�}tjj||j�S(sS
        Verifies the signature of a signed message, returning the message
        if it has not been tampered with else raising
        :class:`~nacl.signing.BadSignatureError`.

        :param smessage: [:class:`bytes`] Either the original messaged or a
            signature and message concated together.
        :param signature: [:class:`bytes`] If an unsigned message is given for
            smessage then the detached signature must be provided.
        :param encoder: A class that is able to decode the secret message and
            signature.
        :rtype: :class:`bytes`
        N(tNoneRRR tcrypto_sign_openR#(RtsmessageR
R%((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pytverifyZs
cC`stjj|j�}t|�S(s�
        Converts a :class:`~nacl.signing.VerifyKey` to a
        :class:`~nacl.public.PublicKey`

        :rtype: :class:`~nacl.public.PublicKey`
        (RR t$crypto_sign_ed25519_pk_to_curve25519R#t_Curve25519_PublicKey(Rtraw_pk((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pytto_curve25519_public_keyrsN(
RRRRt
RawEncoderR&R'R)R.R/R0R3R7(((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR5s				t
SigningKeycB`sheZdZejd�Zd�Zd�Zd�Zd�Z	e
d��Zejd�Zd�Z
RS(	s�
    Private key for producing digital signatures using the Ed25519 algorithm.

    Signing keys are produced from a 32-byte (256-bit) random seed value. This
    value can be passed into the :class:`~nacl.signing.SigningKey` as a
    :func:`bytes` whose length is 32.

    .. warning:: This **must** be protected and remain secret. Anyone who knows
        the value of your :class:`~nacl.signing.SigningKey` or it's seed can
        masquerade as you.

    :param seed: [:class:`bytes`] Random 32-byte value (i.e. private key)
    :param encoder: A class that is able to decode the seed

    :ivar: verify_key: [:class:`~nacl.signing.VerifyKey`] The verify
        (i.e. public) key that corresponds with this signing key.
    cC`s�|j|�}t|t�s0tjd��nt|�tjjkrdtj	dtjj��ntjj
|�\}}||_||_t
|�|_dS(Ns.SigningKey must be created from a 32 byte seeds&The seed must be exactly %d bytes long(RRRRRRRR tcrypto_sign_SEEDBYTESR"tcrypto_sign_seed_keypairt_seedt_signing_keyRt
verify_key(RtseedR%t
public_keyt
secret_key((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR&�s		cC`s|jS(N(R<(R((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR'�scC`stt|��S(N(R(R(R((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR)�scC`s5t||j�stStjjt|�t|��S(N(RR*R+RR R,R(RR-((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR.�scC`s||kS(N((RR-((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR/�scC`s|ttjj�dtj�S(s�
        Generates a random :class:`~nacl.signing.SigningKey` object.

        :rtype: :class:`~nacl.signing.SigningKey`
        R%(RRR R:RR8(R((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pytgenerate�scC`sltjj||j�}tjj}|j|| �}|j||�}|j|�}tj|||�S(s�
        Sign a message using this key.

        :param message: [:class:`bytes`] The data to be signed.
        :param encoder: A class that is used to encode the signed message.
        :rtype: :class:`~nacl.signing.SignedMessage`
        (RR tcrypto_signR=tcrypto_sign_BYTEStencodeR	R(RRR%t
raw_signedRDR
tsigned((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pytsign�scC`s%|j}tjj|�}t|�S(s�
        Converts a :class:`~nacl.signing.SigningKey` to a
        :class:`~nacl.public.PrivateKey`

        :rtype: :class:`~nacl.public.PrivateKey`
        (R=RR t$crypto_sign_ed25519_sk_to_curve25519t_Curve25519_PrivateKey(Rtsktraw_private((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pytto_curve25519_private_key�s	(RRRRR8R&R'R)R.R/RRBRHRM(((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyR9}s				(t
__future__RRRt
nacl.bindingsRRRRtnacl.publicRRJRR5t
nacl.utilsRRRR	t	EncodabletobjectRR9(((s./tmp/pip-install-A1qMVe/pynacl/nacl/signing.pyt<module>sH

https://t.me/AnonymousX5 - 2025