hammer2 - further crypto cleanup
authorAlex Hornung <ahornung@gmail.com>
Fri, 10 Aug 2012 07:37:22 +0000 (08:37 +0100)
committerAlex Hornung <ahornung@gmail.com>
Fri, 10 Aug 2012 07:37:22 +0000 (08:37 +0100)
commit487b3235fdc9ce13644a8b8c2c7b637f8304c2be
treea7f1c0ca7fb2ddb90623637cb59ee107cc4d5279
parent90e8cd1d796ee6df36f9f968cd5ced3b14819b09
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.
sbin/hammer2/crypto.c
sbin/hammer2/network.h