HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib/python3.9/site-packages/dns/dnssecalgs/__pycache__/eddsa.cpython-39.pyc
a

�M�ez�@s�ddlmZddlmZddlmZmZddlmZm	Z	ddl
mZddlm
Z
Gdd�de	�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�ZGdd�de�ZGdd�de�ZdS)�)�Type)�
serialization)�ed448�ed25519)�CryptographyPrivateKey�CryptographyPublicKey)�	Algorithm)�DNSKEYc@s@eZdZeedd�dd�Zed�dd�Zeedd�d	d
��ZdS)�PublicEDDSAN)�	signature�data�returncCs|j�||�dS)N)�key�verify)�selfrr�r�8/usr/lib/python3.9/site-packages/dns/dnssecalgs/eddsa.pyrszPublicEDDSA.verify�r
cCs|jjtjjtjjd�S)z,Encode a public key per RFC 8080, section 3.)�encoding�format)rZpublic_bytesrZEncodingZRawZPublicFormat)rrrr�encode_key_bytess�zPublicEDDSA.encode_key_bytes)rr
cCs|�|�||j�|j�d�S�N)r)Z!_ensure_algorithm_key_combination�key_clsZfrom_public_bytesr)�clsrrrr�from_dnskeys
�zPublicEDDSA.from_dnskey)	�__name__�
__module__�__qualname__�bytesrr�classmethodr	rrrrrr
sr
c@s@eZdZUeeed<d
eeed�dd�Ze	dd�dd��Z
d	S)�PrivateEDDSA�
public_clsF)rrr
cCs$|j�|�}|r |���||�|S)z1Sign using a private key per RFC 8080, section 4.)r�signZ
public_keyr)rrrrrrrr" szPrivateEDDSA.signrcCs||j��d�Sr)r�generate)rrrrr#'szPrivateEDDSA.generateN)F)rrrrr
�__annotations__r�boolr"rr#rrrrr s
r c@s$eZdZUejed<ejZejZ	dS)�
PublicED25519rN)
rrrrZEd25519PublicKeyr$rrZED25519�	algorithmrrrrr&,s

r&c@s"eZdZUejed<ejZeZdS)�PrivateED25519rN)	rrrrZEd25519PrivateKeyr$rr&r!rrrrr(2s

r(c@s$eZdZUejed<ejZejZ	dS)�PublicED448rN)
rrrrZEd448PublicKeyr$rrZED448r'rrrrr)8s

r)c@s"eZdZUejed<ejZeZdS)�PrivateED448rN)	rrrrZEd448PrivateKeyr$rr)r!rrrrr*>s

r*N)�typingrZcryptography.hazmat.primitivesrZ)cryptography.hazmat.primitives.asymmetricrrZdns.dnssecalgs.cryptographyrrZdns.dnssectypesrZdns.rdtypes.ANY.DNSKEYr	r
r r&r(r)r*rrrr�<module>s