o
    ¥ÀvhÒ  ã                   @   sH   d dl mZmZ d dlmZ ddgZdejfdd„Zdejfdd„Z	dS )	é    )ÚkeysÚx509)ÚserializationÚ'translate_pyca_cryptography_key_to_asn1Ú(translate_pyca_cryptography_cert_to_asn1Úreturnc                 C   s"   t j |  tjjtjjt 	¡ ¡¡S ©N)
r   ÚPrivateKeyInfoÚloadÚprivate_bytesr   ÚEncodingÚDERÚPrivateFormatÚPKCS8ÚNoEncryption)Úprivate_key© r   úS/var/www/html/hyperkenya/venv/lib/python3.10/site-packages/pyhanko/keys/internal.pyr   
   s   ýÿc                 C   s   t j |  tjj¡¡S r   )r   ÚCertificater
   Úpublic_bytesr   r   r   )Úcertr   r   r   r       s   N)
Ú
asn1cryptor   r   Úcryptography.hazmat.primitivesr   Ú__all__r	   r   r   r   r   r   r   r   Ú<module>   s    þ
þ