git: crypto: Move blake2s_hmac() to its only user wg_noise.c
Aaron LI
aly at crater.dragonflybsd.org
Tue Feb 20 06:51:43 PST 2024
commit 979e91ed6ebcb6c0635c3d2b61c3cf694dd66384
Author: Aaron LI <aly at aaronly.me>
Date: Tue Feb 20 21:51:24 2024 +0800
crypto: Move blake2s_hmac() to its only user wg_noise.c
The blake2s_hmac() is simply an ad-hoc HMAC implementation using the
BLAKE2s hash algorithm. It's not generic; a proper solution is to
implement the HMAC construction that supports any hash algorithms.
Therefore, it's better to move blake2s_hmac() to wg_noise.c as
noise_hmac().
See also: https://git.zx2c4.com/wireguard-freebsd/commit/?id=5c5832279855722b939a381b9a291dc5ca2ee52e
Summary of changes:
sys/crypto/blake2/blake2s.c | 41 -------------------------------
sys/crypto/blake2/blake2s.h | 3 ---
sys/net/wg/wg_noise.c | 60 +++++++++++++++++++++++++++++++++++++++------
3 files changed, 52 insertions(+), 52 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/979e91ed6ebcb6c0635c3d2b61c3cf694dd66384
--
DragonFly BSD source repository
More information about the Commits
mailing list