[gnutls-devel] GnuTLS | Add ecdh compute function gnutls_ecdh_compute_key (!1395)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Mar 20 18:47:45 CET 2021




Nicolas Mora commented on a discussion on lib/ecdh.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1395#note_534051343

> +    ret = res;
> +    goto cleanup;
> +  }
> +
> +  if ((res = _gnutls_ecdh_compute_key(curve_priv, &priv_x, &priv_y, &priv_k, &pub_x, &pub_y, Z)) != GNUTLS_E_SUCCESS)
> +  {
> +    ret = res;
> +    goto cleanup;
> +  }
> +
> +cleanup:
> +  gnutls_free(priv_x.data);
> +  gnutls_free(priv_y.data);
> +  gnutls_free(priv_k.data);
> +  gnutls_free(pub_x.data);
> +  gnutls_free(pub_y.data);

Done

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1395#note_534051343
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/20210320/1f1284c3/attachment.html>


More information about the Gnutls-devel mailing list