git: opencrypto: Manage context memory within cryptosoft

Aaron LI aly at crater.dragonflybsd.org
Fri Nov 17 18:03:42 PST 2023


commit 0e34d1b9c30422c216d5fb6a14edd92b8a51ed22
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 18 09:28:15 2023 +0800

    opencrypto: Manage context memory within cryptosoft
    
    Each algorithm declares its context size and let cryptosoft allocate and
    free the context memory.  This greatly simplifies the setkey() routine
    of each algorithm and removes the unnecessary zerokey() routine.
    
    Derived from OpenBSD:
    https://github.com/openbsd/src/commit/2dbd8e13008692ff92b9560da7b770daf2889930

Summary of changes:
 sys/opencrypto/cryptosoft.c |  39 ++--
 sys/opencrypto/xform.c      | 460 +++++++++++++-------------------------------
 sys/opencrypto/xform.h      |  10 +-
 3 files changed, 162 insertions(+), 347 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0e34d1b9c30422c216d5fb6a14edd92b8a51ed22


-- 
DragonFly BSD source repository


More information about the Commits mailing list