]> git.ipfire.org Git - thirdparty/krb5.git/commit
Enable caching of key-derived context info such as key schedules from
authorKen Raeburn <raeburn@mit.edu>
Sun, 3 Jan 2010 23:39:12 +0000 (23:39 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 3 Jan 2010 23:39:12 +0000 (23:39 +0000)
commitb71168c7fbe2143bc72c674f1e74a239b90b5007
tree9dbe00201d0e4a0fa0c45a358af683ffe14d304a
parentca56ca345f0cd89c0bc1e544158a21b394c2616a
Enable caching of key-derived context info such as key schedules from
one encryption operation to another.  Use a new function in the
enc_provider structure for cleanup.  Implement caching of aes_ctx
values.

Using Greg's performance tests from the derived-key caching work, on a
2.8GHz Xeon, I see 1 million AES-128 encryptions of 16 bytes improved
by 5-6%; encryptions of 1024 bytes and checksums are not significantly
affected.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23574 dc483132-0cff-0310-8789-dd5450dbe970
src/include/k5-int.h
src/lib/crypto/builtin/enc_provider/aes.c
src/lib/crypto/krb/key.c