404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.118.24.166: ~ $
3

�}:aH
�@s�dZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
ddlmZdd�Z
d	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�ZdS)zJTest utilities.

.. warning:: This module is not part of the public API.

�N)�default_backend)�
serialization)�ComparableRSAKey�ComparableX509)�ComparableECKeycGstjttjjd|���S)zPath to a test vector.�testdata)r)�
pkg_resourcesZresource_filename�__name__�os�path�join)�names�r�/usr/lib/python3.6/test_util.py�vector_pathsrcGstjttjjd|���S)zLoad contents of a test vector.r)r)rZresource_stringr	r
rr)r
rrr�load_vectorsrcCs<tjj|�\}}|j�dkr |S|j�dkr0|Std��dS)Nz.pemz.derz1Loader could not be recognized based on extension)r
r�splitext�lower�
ValueError)�filenameZ
loader_pemZ
loader_der�_Zextrrr�
_guess_loadersrcGs*t|dtjjtjj�}tjj|t|��S)zLoad certificate.����)r�OpenSSL�crypto�FILETYPE_PEM�
FILETYPE_ASN1Zload_certificater)r
�loaderrrr�	load_cert(srcGstt|��S)zLoad ComparableX509 cert.)rr)r
rrr�load_comparable_cert/sr cGs*t|dtjjtjj�}tjj|t|��S)zLoad certificate request.rr)rrrrrZload_certificate_requestr)r
rrrr�load_csr4sr!cGstt|��S)z(Load ComparableX509 certificate request.)rr!)r
rrr�load_comparable_csr;sr"cGs,t|dtjtj�}t|t|�dt�d��S)zLoad RSA private key.rN)�password�backendr)rr�load_pem_private_key�load_der_private_keyrrr)r
rrrr�load_rsa_private_key@sr'cGs,t|dtjtj�}t|t|�dt�d��S)zLoad EC private key.rN)r#r$r)rrr%r&rrr)r
rrrr�load_ec_private_keyHsr(cGs*t|dtjjtjj�}tjj|t|��S)zLoad pyOpenSSL private key.rr)rrrrrZload_privatekeyr)r
rrrr�load_pyopenssl_private_keyPsr))�__doc__r
rrZcryptography.hazmat.backendsrZcryptography.hazmat.primitivesrZjosepyrrZjosepy.utilrrrrrr r!r"r'r(r)rrrr�<module>s"


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 1.95 KB 0644
__init__.cpython-36.pyc File 1.95 KB 0644
b64.cpython-36.opt-1.pyc File 1.56 KB 0644
b64.cpython-36.pyc File 1.56 KB 0644
b64_test.cpython-36.opt-1.pyc File 3.47 KB 0644
b64_test.cpython-36.pyc File 3.47 KB 0644
errors.cpython-36.opt-1.pyc File 1.55 KB 0644
errors.cpython-36.pyc File 1.55 KB 0644
errors_test.cpython-36.opt-1.pyc File 854 B 0644
errors_test.cpython-36.pyc File 854 B 0644
interfaces.cpython-36.opt-1.pyc File 7.93 KB 0644
interfaces.cpython-36.pyc File 7.93 KB 0644
interfaces_test.cpython-36.opt-1.pyc File 5.38 KB 0644
interfaces_test.cpython-36.pyc File 5.38 KB 0644
json_util.cpython-36.opt-1.pyc File 14.93 KB 0644
json_util.cpython-36.pyc File 14.93 KB 0644
json_util_test.cpython-36.opt-1.pyc File 17.19 KB 0644
json_util_test.cpython-36.pyc File 17.19 KB 0644
jwa.cpython-36.opt-1.pyc File 7.73 KB 0644
jwa.cpython-36.pyc File 7.73 KB 0644
jwa_test.cpython-36.opt-1.pyc File 9.67 KB 0644
jwa_test.cpython-36.pyc File 9.67 KB 0644
jwk.cpython-36.opt-1.pyc File 11.66 KB 0644
jwk.cpython-36.pyc File 11.66 KB 0644
jwk_test.cpython-36.opt-1.pyc File 12.73 KB 0644
jwk_test.cpython-36.pyc File 12.73 KB 0644
jws.cpython-36.opt-1.pyc File 12.1 KB 0644
jws.cpython-36.pyc File 12.49 KB 0644
jws_test.cpython-36.opt-1.pyc File 9.4 KB 0644
jws_test.cpython-36.pyc File 9.4 KB 0644
magic_typing.cpython-36.opt-1.pyc File 775 B 0644
magic_typing.cpython-36.pyc File 775 B 0644
magic_typing_test.cpython-36.opt-1.pyc File 1.07 KB 0644
magic_typing_test.cpython-36.pyc File 1.07 KB 0644
test_util.cpython-36.opt-1.pyc File 2.77 KB 0644
test_util.cpython-36.pyc File 2.77 KB 0644
util.cpython-36.opt-1.pyc File 9.76 KB 0644
util.cpython-36.pyc File 9.84 KB 0644
util_test.cpython-36.opt-1.pyc File 11.62 KB 0644
util_test.cpython-36.pyc File 11.62 KB 0644