git: crypto/chacha20: Multiple minor tweaks and cleanups

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 11 00:02:18 PST 2023


commit 22766d5a0a5ddcd7a4a3cf16afe82756a0304e79
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Nov 8 10:08:02 2023 +0800

    crypto/chacha20: Multiple minor tweaks and cleanups
    
    - Use 'uint32_t' instead of 'u_int'.
    - Use 'ifdef' instead of 'ifndef' for CHACHA_NONCE0_CTR128 to improve
      readability.
    - Add 'chacha_ctrsave()' prototype to the header.
    - Remove unnecessary header inclusions.
    - Remove unnecessary CHACHA_UNUSED define.
    - Remove useless '$FreeBSD$' tag.
    - Minor whitespace cleanups to look better.
    
    No functional change.

Summary of changes:
 sys/crypto/chacha20/_chacha.h |  3 +--
 sys/crypto/chacha20/chacha.c  | 35 +++++++++++++++++------------------
 sys/crypto/chacha20/chacha.h  | 24 ++++++++++--------------
 3 files changed, 28 insertions(+), 34 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22766d5a0a5ddcd7a4a3cf16afe82756a0304e79


-- 
DragonFly BSD source repository


More information about the Commits mailing list