[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:26:36 CET 2022
Vivien Kraus Would Rather Not Be On Gitlab_com commented on a discussion on guile/src/core.c: https://gitlab.com/gnutls/guile/-/merge_requests/5#note_1219879037
> +
> +SCM_DEFINE (scm_gnutls_hmac_copy, "hmac-copy", 1, 0, 0,
> + (SCM hmac),
> + "Return a copy of the current @var{hmac} state, "
> + "or @code{#f} if this is not supported.")
> +#define FUNC_NAME s_scm_gnutls_hmac_copy
> +{
> + scm_gnutls_hmac_and_algorithm_t c_hmac =
> + scm_to_gnutls_hmac (hmac, 1, FUNC_NAME);
> + gnutls_hmac_hd_t c_ret = NULL;
> + c_ret = gnutls_hmac_copy (c_hmac->handle);
> + if (c_ret == NULL)
> + {
> + return SCM_BOOL_F;
> + }
> + scm_gnutls_hmac_and_algorithm_t c_combined =
What error should it emit? `GNUTLS_E_ILLEGAL_PARAMETER`? There is `GNUTLS_E_UNKNOWN_ALGORITHM` too but it’s not what we want exactly, because the algorithm is known, we just don’t know how to copy its state.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/merge_requests/5#note_1219879037
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/2c8d7890/attachment-0001.html>
More information about the Gnutls-devel
mailing list