[botan-devel] How to get Cipher_Dir in BlockCipher?

Jeffrey Walton noloader at gmail.com
Sat Apr 15 22:21:39 EDT 2017


On Fri, Apr 14, 2017 at 9:07 AM, Jack Lloyd <jack.lloyd at gmail.com> wrote:
> There is no direction for BlockCipher, if you call `set_key` it sets
> up both encryption and decryption key schedules (assuming they are
> different),
> and then calls to either `encrypt` and `decrypt` on the same object do
> what you would expect.

Ack, thanks.

Is it common to create an object, and then use it for both encryption
and decryption? Or is it considered bad style?

Jeff


More information about the botan-devel mailing list