o
    Ç `	  ã                   @   sp   d dl mZmZmZ d dlZd dlZd dlmZmZ e 	ej
¡G dd„ deƒƒZe 	ej
¡G dd„ deƒƒZdS )é    )Úabsolute_importÚdivisionÚprint_functionN)ÚUnsupportedAlgorithmÚ_Reasonsc                   @   s4   e Zd Zedd„ ƒZejdd„ ƒZejdd„ ƒZdS )ÚEd448PublicKeyc                 C   ó*   ddl m} | ¡ stdtjƒ‚| |¡S ©Nr   )Úbackendz2ed448 is not supported by this version of OpenSSL.)Ú,cryptography.hazmat.backends.openssl.backendr
   Úed448_supportedr   r   Ú UNSUPPORTED_PUBLIC_KEY_ALGORITHMZed448_load_public_bytes©ÚclsÚdatar
   © r   ú…home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib/python3.10/site-packages/cryptography/hazmat/primitives/asymmetric/ed448.pyÚfrom_public_bytes   ó   þ
z Ed448PublicKey.from_public_bytesc                 C   ó   dS )z9
        The serialized bytes of the public key.
        Nr   )ÚselfÚencodingÚformatr   r   r   Úpublic_bytes   ó    zEd448PublicKey.public_bytesc                 C   r   )z'
        Verify the signature.
        Nr   )r   Ú	signaturer   r   r   r   Úverify"   r   zEd448PublicKey.verifyN)	Ú__name__Ú
__module__Ú__qualname__Úclassmethodr   ÚabcÚabstractmethodr   r   r   r   r   r   r      s    

r   c                   @   sN   e Zd Zedd„ ƒZedd„ ƒZejdd„ ƒZejdd„ ƒZ	ejd	d
„ ƒZ
dS )ÚEd448PrivateKeyc                 C   s(   ddl m} | ¡ stdtjƒ‚| ¡ S r	   )r   r
   r   r   r   r   Zed448_generate_key)r   r
   r   r   r   Úgenerate+   s   þzEd448PrivateKey.generatec                 C   r   r	   )r   r
   r   r   r   r   Zed448_load_private_bytesr   r   r   r   Úfrom_private_bytes6   r   z"Ed448PrivateKey.from_private_bytesc                 C   r   )zB
        The Ed448PublicKey derived from the private key.
        Nr   )r   r   r   r   Ú
public_keyB   r   zEd448PrivateKey.public_keyc                 C   r   )z!
        Signs the data.
        Nr   )r   r   r   r   r   ÚsignH   r   zEd448PrivateKey.signc                 C   r   )z:
        The serialized bytes of the private key.
        Nr   )r   r   r   Zencryption_algorithmr   r   r   Úprivate_bytesN   r   zEd448PrivateKey.private_bytesN)r   r   r   r    r$   r%   r!   r"   r&   r'   r(   r   r   r   r   r#   )   s    




r#   )Ú
__future__r   r   r   r!   ZsixZcryptography.exceptionsr   r   Zadd_metaclassÚABCMetaÚobjectr   r#   r   r   r   r   Ú<module>   s   

