git: opencrypto: Update auth_hash.Setkey() to return an error code

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


commit e340ae2a7295e1f3c6943c43b32db99d3d161bb0
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 18 09:47:23 2023 +0800

    opencrypto: Update auth_hash.Setkey() to return an error code
    
    The Setkey() method can fail, so better to change it return an error
    code for the caller to properly handle it.  This also makes it like
    enc_xform.setkey(), which also returns an error code.
    
    Update AES_GMAC_Setkey() accordingly.

Summary of changes:
 sys/opencrypto/cryptosoft.c | 8 ++++++--
 sys/opencrypto/gmac.c       | 3 ++-
 sys/opencrypto/gmac.h       | 2 +-
 sys/opencrypto/xform.c      | 6 +++---
 sys/opencrypto/xform.h      | 2 +-
 5 files changed, 13 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e340ae2a7295e1f3c6943c43b32db99d3d161bb0


-- 
DragonFly BSD source repository


More information about the Commits mailing list