git: hammer2 hammer2 - further crypto cleanup
Alex Hornung
alexh at crater.dragonflybsd.org
Fri Aug 10 01:41:48 PDT 2012
commit 487b3235fdc9ce13644a8b8c2c7b637f8304c2be
Author: Alex Hornung <ahornung at gmail.com>
Date: Fri Aug 10 08:37:22 2012 +0100
hammer2 - further crypto cleanup
* put the symmetric crypto algorithms (so far only GCM) into a table.
The algorithm is currently chosen via a define (HAMMER2_CRYPTO_ALGO),
but in the future it would be trivial to make it a runtime setting.
* Link the crypto chunk size to HAMMER2_MSG_ALIGN, since we want the
chunks as big as possible, but not so big that a message gets stuck.
Summary of changes:
sbin/hammer2/crypto.c | 150 +++++++++++++++++++-----------------------------
sbin/hammer2/network.h | 53 ++++++++++++-----
2 files changed, 99 insertions(+), 104 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/487b3235fdc9ce13644a8b8c2c7b637f8304c2be
--
DragonFly BSD source repository
More information about the Commits
mailing list