ok

Mini Shell

Direktori : /proc/self/root/lib64/python2.7/site-packages/M2Crypto/
Upload File :
Current File : //proc/self/root/lib64/python2.7/site-packages/M2Crypto/DH.pyc

�

�1Mc@s�dZddlmZddlZddlZddlZdefd��YZeje�ddd��YZ	ed�Z
d	�Zd
�Zd�Z
ejZejZdS(
sbM2Crypto wrapper for OpenSSL DH API.

Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.i����(tgenparam_callbackNtDHErrorcBseZRS((t__name__t
__module__(((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyRstDHcBsteZdZejZdd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�ZRS(sK
    Object interface to the Diffie-Hellman key exchange
    protocol.
    icCs+tj|�st�||_||_dS(N(tm2t
dh_type_checktAssertionErrortdht_pyfree(tselfRR	((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt__init__s	cCs)t|dd�r%|j|j�ndS(NR	i(tgetattrt
m2_dh_freeR(R
((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt__del__scCs.tj|j�std��tj|j�S(Ns'dh' type error(RRRRtdh_size(R
((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt__len__scCsW|dkrMttd|f�}tj|j�s@td��||j�St�dS(Ntptgtpubtprivs	dh_get_%ss'dh' type error(RRRR(RRRRRtAttributeError(R
tnametmethod((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt__getattr__"s

cCsA|dkrtd�n%|dkr0td�n
||j|<dS(	NRRsset (p, g) via set_params()RRs"generate (pub, priv) via gen_key()(RR(spubspriv(Rt__dict__(R
Rtvalue((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt__setattr__*s
cCs|jS(N(R(R
((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt_ptr2scCs.tj|j�std��tj|j�S(Ns'dh' type error(RRRRtdh_check(R
((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pytcheck_params5scCs2tj|j�std��tj|j�dS(Ns'dh' type error(RRRRtdh_generate_key(R
((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pytgen_key9scCs1tj|j�std��tj|j|�S(Ns'dh' type error(RRRRtdh_compute_key(R
tpubkey((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pytcompute_key=scCs7tj|j�std��tj|j�|j�S(Ns'dh' type error(RRRRtdhparams_printR(R
tbio((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pytprint_paramsAs(RRt__doc__Rtdh_freeR
RRRRRRRR R#R&(((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyRs									cCsttj|||�d�S(Ni(RRtdh_generate_parameters(tplenRtcallback((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt
gen_paramsFscCstj|�}t|�S(N(tBIOtopenfiletload_params_bio(tfileR%((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pytload_paramsJscCsttj|j��d�S(Ni(RRtdh_read_parametersR(R%((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyR/OscCs9tj�}tj||�tj||�t|d�S(Ni(Rtdh_newtdh_set_ptdh_set_gR(RRR((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt
set_paramsSs((R'tutilRR-tErrRt	ExceptionRtdh_initRR,R1R/R6tDH_GENERATOR_2tDH_GENERATOR_5(((s1/usr/lib64/python2.7/site-packages/M2Crypto/DH.pyt<module>s$
:				

Zerion Mini Shell 1.0