[Cryptography-dev] Low level API for Symmetric Encryption
Donald Stufft
donald at stufft.io
Thu Aug 8 05:20:33 CEST 2013
On Aug 7, 2013, at 10:25 PM, Donald Stufft <donald at stufft.io> wrote:
> Speaking of the Padding made me wonder if we're overloading the constructor of the mode too much, i'm not sure though because wether or not you want padding is dependent on the mode.
>
> Maybe we want::
>
> cipher = BlockCipher(AES(key), CBC(iv), PKCS7())
More thought on this, I'm not sure if the padding should be an argument to
the mode or not, but one thing I do particularly like about this is it feels more
like "AES-128-CBC" than CBC(AES(key), iv, …) does.
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20130807/d84d9ed3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20130807/d84d9ed3/attachment.pgp>
More information about the Cryptography-dev
mailing list