[gnutls-devel] GnuTLS | Allow registering ciphers with higher priority (!1404)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Mar 17 08:23:33 CET 2021




Stephan Mueller started a new discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_531116470

> +
> +	return 0;
> +}
> +
> +static int afalg_aead_decrypt(void *_ctx,
> +			      const void *nonce, size_t nonce_size,
> +			      const void *auth, size_t auth_size,
> +			      size_t tag_size,
> +			      const void *encr, size_t encr_size,
> +			      void *plain, size_t plain_size)
> +{
> +	struct kcapi_aead_ctx *ctx = _ctx;
> +	struct iovec iov[3];
> +	uint32_t iovlen = 2;
> +	uint8_t authtmp[auth_size];
> +	uint8_t tagtmp[tag_size];

Dto, use the max tag size and not a VLA.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_531116470
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/20210317/34354a21/attachment-0001.html>


More information about the Gnutls-devel mailing list