[gnutls-devel] Guile-GnuTLS | Draft: Add the HMAC functions (!5)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Dec 23 11:10:11 CET 2022




civodul started a new discussion on guile/src/core.c: https://gitlab.com/gnutls/guile/-/merge_requests/5#note_1219862532

>  #undef FUNC_NAME
>  

>  
> +/* Hmac */
> +
> +SCM_DEFINE (scm_gnutls_hmac_fast, "hmac-fast", 3, 0, 0,
> +	    (SCM algorithm, SCM key, SCM ptext),
> +	    "Hash @var{ptext} with @var{algorithm}, and "
> +	    "the secret @var{key}. It will not work if "
> +	    "@var{algorithm} requires a nonce, such as "
> +	    "UMAC or GMAC. Both @var{key} and @var{ptext} "
> +	    "must be bytevectors.")
> +#define FUNC_NAME s_scm_gnutls_hmac_fast

I'm not sure `hmac-fast` is a descriptive name.  Maybe `compute-hmac` would be more appropriate, even if it differs from the name GnuTLS uses?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/merge_requests/5#note_1219862532
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20221223/f1f3d429/attachment-0001.html>


More information about the Gnutls-devel mailing list