[gnutls-devel] GnuTLS | gnutls | lib: add support for AES-GMAC (!1036)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Jun 28 08:36:27 CEST 2019




Nikos Mavrogiannopoulos started a new discussion on lib/nettle/mac.c: https://gitlab.com/gnutls/gnutls/merge_requests/1036#note_186338766

>  	if (ret < 0)
>  		return gnutls_assert_val(ret);
>  
> +	ctx.set_key(&ctx, key_size, key);
>  	if (ctx.set_nonce)
>  		ctx.set_nonce(&ctx, nonce_size, nonce);
> -	ctx.set_key(&ctx, key_size, key);

Wouldn't returning an error on NULL nonce and a `set_nonce` make this API safer to misuse?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1036#note_186338766
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/20190628/87178112/attachment.html>


More information about the Gnutls-devel mailing list