]> git.ipfire.org Git - thirdparty/strongswan.git/commit
openssl: Reuse the key schedule context in CBC mode openssl-ctx
authorMartin Willi <martin@revosec.ch>
Tue, 28 Apr 2015 10:15:20 +0000 (12:15 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 20 May 2015 13:00:00 +0000 (15:00 +0200)
commitfa039d969742ebaf340bc245b63ddc73d99e9529
tree2f2164e6a5e5c9b53aeb06b0480a2d04e4020c7f
parent958e9843597b45dba330905e8601489ea0d04eac
openssl: Reuse the key schedule context in CBC mode

To avoid deriving the key schedule for each invocation, we keep per-instance
cipher contexts, one for encryption and one for decryption. While this increases
memory usage by ~800 bytes for each instance, it increases performance
significantly, especially for small packet sizes.
src/libstrongswan/plugins/openssl/openssl_crypter.c