[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:04:48 CEST 2021
Stephan Mueller started a new discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_543276187
> void *dst, size_t dst_size)
> {
> struct kcapi_ctx *ctx = _ctx;
> + struct iovec iov;
>
> - if (kcapi_cipher_decrypt(ctx->handle, src, src_size, ctx->iv,
> - dst,
> - (src_size > dst_size) ? dst_size : src_size,
> - 0) < 0) {
> + iov.iov_base = (void *)src;
> + iov.iov_len = src_size;
> +
> +
> + if(kcapi_aead_stream_update(ctx->handle, &iov, 1) < 0) {
_aead_ ? I guess you want to use the _cipher_ API?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_543276187
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/2b8ef955/attachment.html>
More information about the Gnutls-devel
mailing list