[gnutls-devel] GnuTLS | Add Linux kernel AF_ALG backend (!1404)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Apr 15 09:22:41 CEST 2021
František Krenželok commented on a discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_552204597
> goto end;
> }
>
> - /* The kernel may set the AAD, avoid modification of auth */
> - iov[0].iov_base = authtmp;
> -
> /* Set CT buffer to be filled by kernel */
> - iov[1].iov_base = encr;
> - iov[1].iov_len = plain_size + tag_size;
> + iov[0].iov_base = encr;
> + iov[0].iov_len = (encr_size > outbuflen) ? outbuflen : encr_size;
>
> - if (kcapi_aead_stream_op(ctx->handle, iov, 2) < 0) {
> + if (kcapi_aead_stream_op(ctx->handle, iov, 1) < 0) {
I am sorry, i was --amending to the commit so it seem you are looking at one of the older version. The above should be alright with the current version.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_552204597
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/20210415/2ed484cc/attachment.html>
More information about the Gnutls-devel
mailing list