git: crypto: Minor cleanups to blake2s
Aaron LI
aly at crater.dragonflybsd.org
Tue Feb 6 22:49:17 PST 2024
commit 01a03001997913489439caddc18e241f3777def2
Author: Aaron LI <aly at aaronly.me>
Date: Tue Feb 6 22:24:18 2024 +0800
crypto: Minor cleanups to blake2s
- Adjust the KKASSERT() to be easier to read.
- Add KKASSERT() to blake2s_hmac(), avoiding the possible misuse of
passing a too large 'outlen', which could cause panic or data
corruption.
- Minor style cleanups.
Summary of changes:
sys/crypto/blake2/blake2s.c | 17 ++++++++++++-----
sys/crypto/blake2/blake2s.h | 2 +-
2 files changed, 13 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/01a03001997913489439caddc18e241f3777def2
--
DragonFly BSD source repository
More information about the Commits
mailing list