[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
Thu Apr 1 18:08:01 CEST 2021




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

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

Just to clarify: Is the GnuTLS API here only providing access to block cipher modes (e.g. CBC)? Or do we also have stream-cipher modes (CTR, CTS)?

Note, in case of stream ciphers, the call kcapi_cipher_stream_update_last() is necessary to handle the last block that may not be a multiple of the block size any more.

How does GnuTLS the case of stream ciphers when invoking the enc/dec operation multiple times?

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


More information about the Gnutls-devel mailing list