[Cryptography-dev] Low level API for Symmetric Encryption

Paul Kehrer paul.l.kehrer at gmail.com
Thu Aug 8 14:51:56 CEST 2013


I like this as it doesn't expect the mode class to hold all the important contexts. This is a nitpick since we're just discussing, but I'd like a different term than BlockCipher. Something that implies it is a complete set of the constructs needed. Maybe SymmetricEncryption?

> On Aug 7, 2013, at 10:20 PM, Donald Stufft <donald at stufft.io> wrote:
> 
> 
>> 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
> 
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev at python.org
> http://mail.python.org/mailman/listinfo/cryptography-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20130808/5dba198a/attachment.html>


More information about the Cryptography-dev mailing list