[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:14:09 CET 2022




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

> +	    (SCM hmac),
> +	    "Return the algorithm that @var{hmac} has been built for.")
> +#define FUNC_NAME s_scm_gnutls_hmac_algorithm
> +{
> +  scm_gnutls_hmac_and_algorithm_t c_hmac =
> +    scm_to_gnutls_hmac (hmac, 1, FUNC_NAME);
> +  return scm_from_gnutls_mac (c_hmac->algorithm);
> +}
> +
> +#undef FUNC_NAME
> +
> +SCM_DEFINE (scm_gnutls_hmac_len, "hmac-len", 1, 0, 0,
> +	    (SCM algorithm),
> +	    "Return the length of the @var{algorithm} "
> +	    "HMAC output, or 0 if unavailable.")
> +#define FUNC_NAME s_scm_gnutls_hmac_len

Nitpick: `hmac-length`, for consistency with the overall naming scheme.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/merge_requests/5#note_1219866366
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/8657ff47/attachment-0001.html>


More information about the Gnutls-devel mailing list