crash.software
Projects
Pull Requests
Issues
Builds
DonPAPI
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
DonPAPI
Files
🤬
Sign In
v1.0.0
ROOT
/
lazagne
/
config
/
crypto
/
pyaes
/
aes.py
Search
History
590 lines
|
ISO-8859-1
|
58 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
copy
struct
_compact_word
(word)
_string_to_bytes
(text)
_bytes_to_string
(binary)
_concat_list
(a,b)
xrange
_string_to_bytes
(text)
_bytes_to_string
(binary)
_concat_list
(a,b)
AES
(object)
number_of_rounds
rcon
S
Si
T1
T2
T3
T4
T5
T6
T7
T8
U1
U2
U3
U4
_Ke
_Kd
__init__
(self,key)
encrypt
(self,plaintext)
decrypt
(self,ciphertext)
Counter
(object)
_counter
__init__
(self,initial_value=1)
value
increment
(self)
AESBlockModeOfOperation
(object)
_aes
__init__
(self,key)
decrypt
(self,ciphertext)
encrypt
(self,plaintext)
AESStreamModeOfOperation
(AESBlockModeOfOperation)
AESSegmentModeOfOperation
(AESStreamModeOfOperation)
segment_bytes
AESModeOfOperationECB
(AESBlockModeOfOperation)
name
encrypt
(self,plaintext)
decrypt
(self,ciphertext)
AESModeOfOperationCBC
(AESBlockModeOfOperation)
name
_last_cipherblock
__init__
(self,key,iv=None)
encrypt
(self,plaintext)
decrypt
(self,ciphertext)
AESModeOfOperationCFB
(AESSegmentModeOfOperation)
name
_shift_register
_segment_bytes
__init__
(self,key,iv,segment_size=1)
segment_bytes
encrypt
(self,plaintext)
decrypt
(self,ciphertext)
AESModeOfOperationOFB
(AESStreamModeOfOperation)
name
_last_precipherblock
_remaining_block
__init__
(self,key,iv=None)
encrypt
(self,plaintext)
decrypt
(self,ciphertext)
AESModeOfOperationCTR
(AESStreamModeOfOperation)
name
_counter
_remaining_counter
__init__
(self,key,counter=None)
encrypt
(self,plaintext)
decrypt
(self,crypttext)
AESModesOfOperation
All occurrences
Please wait...
Page is in error, reload to recover