[PYTHON-CRYPTO] AES CFB mode
Paul Rubin
phr-pycrypt at nightsong.com
Tue May 21 02:55:53 CEST 2002
Forgive my previous pedantic question: I just didn't realize how
CFB worked. I assume the slowdown is due to the fact that in
8-bit CFB, an entire BLOCK_SIZE is encrypted for each byte of
output. I am thinking of reducing BLOCK_SIZE for my purposes ( CFB
only ). Any recommendations?
If you change the block size, it's not AES any more. You can change
the feedback size--for example you can set it to be the same as
the block size, so you'll get one encryption per block, if your
application can work that way. If it can, though, you probably
don't need CFB mode in the first place.
More information about the python-crypto
mailing list