[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 13:05:47 CEST 2021




František Krenželok commented on a discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_552579977

>  		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) {

The commits have been squashed, now you should see the updated code. then above code was me trying to figure out was is wrong by trial and error :), it should be ok now.

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


More information about the Gnutls-devel mailing list