tlslite.utils.rijndael module¶
A pure python (slow) implementation of rijndael with a decent interface
To include -
from rijndael import rijndael
To do a key setup -
r = rijndael(key, block_size = 16)
key must be a string of length 16, 24, or 32 blocksize must be 16, 24, or 32. Default is 16
To use -
ciphertext = r.encrypt(plaintext) plaintext = r.decrypt(ciphertext)
If any strings are of the wrong length a ValueError is thrown
-
tlslite.utils.rijndael.
decrypt
(key, block)¶
-
tlslite.utils.rijndael.
encrypt
(key, block)¶
-
class
tlslite.utils.rijndael.
rijndael
(key, block_size=16)¶ Bases:
object
-
__init__
(key, block_size=16)¶ Initialize self. See help(type(self)) for accurate signature.
-
decrypt
(ciphertext)¶
-
encrypt
(plaintext)¶
-
-
tlslite.utils.rijndael.
test
()¶