/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher
NameSizeModeActions
AES.py42180644editdlrm
AES.pyc35670644editdlrm
AES.pyo35670644editdlrm
ARC2.py49170644editdlrm
ARC2.pyc42650644editdlrm
ARC2.pyo42650644editdlrm
ARC4.py42660644editdlrm
ARC4.pyc40590644editdlrm
ARC4.pyo40590644editdlrm
blockalgo.py125960644editdlrm
blockalgo.pyc63070644editdlrm
blockalgo.pyo63070644editdlrm
Blowfish.py44600644editdlrm
Blowfish.pyc38100644editdlrm
Blowfish.pyo38100644editdlrm
CAST.py44980644editdlrm
CAST.pyc38470644editdlrm
CAST.pyo38470644editdlrm
DES.py44030644editdlrm
DES.pyc37380644editdlrm
DES.pyo37380644editdlrm
DES3.py51300644editdlrm
DES3.pyc44810644editdlrm
DES3.pyo44810644editdlrm
PKCS1_OAEP.py93730644editdlrm
PKCS1_OAEP.pyc86490644editdlrm
PKCS1_OAEP.pyo86490644editdlrm
PKCS1_v1_5.py91030644editdlrm
PKCS1_v1_5.pyc92800644editdlrm
PKCS1_v1_5.pyo92800644editdlrm
XOR.py27370644editdlrm
XOR.pyc25310644editdlrm
XOR.pyo25310644editdlrm
_AES.so631280755editdlrm
_ARC2.so449770755editdlrm
_ARC4.so280800755editdlrm
_Blowfish.so559630755editdlrm
_CAST.so571030755editdlrm
_DES.so889340755editdlrm
_DES3.so890560755editdlrm
_XOR.so284280755editdlrm
__init__.py34400644editdlrm
__init__.pyc26470644editdlrm
__init__.pyo26470644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyo (6307B)
Ñò Bd\Rc@sŸdZddkZeiddjo"eiddjoddkTnddkTdZdZdZdZd Z d Z d Z dd „Z d dd„ƒYZdS(s4Module with definitions common to all block ciphers.iÿÿÿÿNiii(t*iiiiicCsV|i|ƒ}t|ƒ|jo)|otd|ƒ‚n||}n|p|S(sFFind a parameter in tuple and dictionary arguments a function receivess!Parameter '%s' is specified twice(tgettlent ValueError(tnametindextargstkwargstdefaulttparam((sJ/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyt _getParameter|s t BlockAlgocBs)eZdZd„Zd„Zd„ZRS(s)Class modelling an abstract block cipher.c Os)tdd||dtƒ|_|i|_|itjo+|i|||Ž|_|ii|_nÁt|_ t|_ tdd||ƒ|_|ipt dƒ‚n|i|t t dƒ|id|id ƒ}t|iƒ|ijoD|i|i|id t dƒ|id ƒ|id  |_nÁt|iƒ|id joƒ|i|_|i|it dƒ|id ƒ|id  |_|id |id d !jot d ƒ‚n|id |_n!t d|i|id fƒ‚|i|t |i|i d|id ƒ|_dS(NtmodeiRtivisMODE_OPENPGP requires an IVtt segment_sizeiiþÿÿÿiiüÿÿÿs%Failed integrity check for OPENPGP IVs4Length of IV must be %d or %d bytes for MODE_OPENPGP(R tMODE_ECBR t block_sizet MODE_OPENPGPtnewt_ciphertIVtFalset_done_first_blockt_done_last_blockRtMODE_CFBtbRtencryptt _encrypted_IVtdecrypt(tselftfactorytkeyRRt IV_cipher((sJ/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyt__init__ˆs>        cCsæ|itjoÆ|it|ƒ|i|i}|djo]|iotd|iƒ‚nt|_|tdƒ|}|ii |ƒt|ƒ }n|ii |ƒ}|i p|i |}t|_ n|S|ii |ƒS(sXEncrypt data with the key and the parameters set at initialization. The cipher object is stateful; encryption of a long block of data can be broken up in two or more calls to `encrypt()`. That is, the statement: >>> c.encrypt(a) + c.encrypt(b) is always equivalent to: >>> c.encrypt(a+b) That also means that you cannot reuse an object for encrypting or decrypting other data with the same key. This function does not perform any padding. - For `MODE_ECB`, `MODE_CBC`, and `MODE_OFB`, *plaintext* length (in bytes) must be a multiple of *block_size*. - For `MODE_CFB`, *plaintext* length (in bytes) must be a multiple of *segment_size*/8. - For `MODE_CTR`, *plaintext* can be of any length. - For `MODE_OPENPGP`, *plaintext* must be a multiple of *block_size*, unless it is the last chunk of the message. :Parameters: plaintext : byte string The piece of data to encrypt. :Return: the encrypted data, as a byte string. It is as long as *plaintext* with one exception: when encrypting the first message chunk with `MODE_OPENPGP`, the encypted IV is prepended to the returned ciphertext. isFOnly the last chunk is allowed to have length not multiple of %d bytesR( R RRRRRtTrueRRRRR(Rt plaintexttpadding_lengthtpaddedtres((sJ/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyR»s'!       cCsÂ|itjo¢|it|ƒ|i|i}|djo]|iotd|iƒ‚nt|_|tdƒ|}|ii |ƒt|ƒ }n|ii |ƒ}|S|ii |ƒS(sšDecrypt data with the key and the parameters set at initialization. The cipher object is stateful; decryption of a long block of data can be broken up in two or more calls to `decrypt()`. That is, the statement: >>> c.decrypt(a) + c.decrypt(b) is always equivalent to: >>> c.decrypt(a+b) That also means that you cannot reuse an object for encrypting or decrypting other data with the same key. This function does not perform any padding. - For `MODE_ECB`, `MODE_CBC`, and `MODE_OFB`, *ciphertext* length (in bytes) must be a multiple of *block_size*. - For `MODE_CFB`, *ciphertext* length (in bytes) must be a multiple of *segment_size*/8. - For `MODE_CTR`, *ciphertext* can be of any length. - For `MODE_OPENPGP`, *plaintext* must be a multiple of *block_size*, unless it is the last chunk of the message. :Parameters: ciphertext : byte string The piece of data to decrypt. :Return: the decrypted data (byte string, as long as *ciphertext*). isFOnly the last chunk is allowed to have length not multiple of %d bytesR( R RRRRRR#RRR(Rt ciphertextR%R&R'((sJ/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyRös"!    (t__name__t __module__t__doc__R"RR(((sJ/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyR …s 3 ;((R+tsyst version_infotCrypto.Util.py21compattCrypto.Util.py3compatRtMODE_CBCRtMODE_PGPtMODE_OFBtMODE_CTRRtNoneR R (((sJ/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.pyts (