[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:13:44 CET 2021
Stephan Mueller commented on a discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_531111814
> + struct kcapi_ctx *ctx = _ctx;
> +
> + if (iv_size > kcapi_cipher_ivsize(ctx->handle))
> + return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
> +
> + memcpy(ctx->iv, iv, iv_size);
> +
> + return 0;
> +}
> +
> +static int afalg_cipher_encrypt(void *_ctx, const void *src, size_t src_size,
> + void *dst, size_t dst_size)
> +{
> + struct kcapi_ctx *ctx = _ctx;
> +
> + if (kcapi_cipher_encrypt(ctx->handle, src, src_size, ctx->iv,
Are you saying that src_size could be not a multiple of the block size? Also, there should not be an alignment issue because the data would either be spliced by the kernel or copied into the kernel. And when using splice the kernel implementations should not require any specific alignment.
What is the error your see?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_531111814
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/01a7af96/attachment.html>
More information about the Gnutls-devel
mailing list