[gnutls-devel] GnuTLS | WIP: Add Linux kernel AF_ALG backend (!1404)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Apr 7 09:52:31 CEST 2021




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

>  				void *dst, size_t dst_size)
>  {
>  	struct kcapi_ctx *ctx = _ctx;
> +	struct iovec iov;
> +
> +	iov.iov_base = (void *)src;
> +	iov.iov_len = src_size;
> +
> +
> +	if(kcapi_aead_stream_update(ctx->handle, &iov, 1) < 0) {

You are right, i have made the mistake with using the `aead` instead of `cipher` here.

Regarding `..update_last()` would it be sufficient to check the size of the message and call it only when it differs from the block size as GnuTLS doesn't indicate last message (as of my knowledge)

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


More information about the Gnutls-devel mailing list