Modify encrypt/decrypt arguments for in-place
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 3 Nov 2013 20:07:19 +0000 (22:07 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 6 Nov 2013 17:23:00 +0000 (19:23 +0200)
commitb8515aa70b00baba3fba8121ed305edcd029c8c7
treece33ef0fc6fd7de512a9cf8772f0f57c78597676
parenta48d07ccadee4cb8b666a9a4ba2f00129bad5b2f
Modify encrypt/decrypt arguments for in-place

* cipher/cipher.c (gcry_cipher_encrypt, gcry_cipher_decrypt): Modify
local arguments if in-place operation.
--

Modify encrypt/decrypt argument variables instead of calling subfunction with
different arguments. This allows compiler to inline the subfunction for small
speedup.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/cipher.c