From: Eli Zaretskii <eliz@gnu.org>
To: "Jürgen Hötzel" <juergen@hoetzel.info>
Cc: emacs-devel@gnu.org
Subject: Re: gnutls-symmetric-encrypt/decrypt in GCM mode requires plaintext/ciphertext size to be multiple of 16
Date: Sun, 08 Jan 2023 18:25:33 +0200 [thread overview]
Message-ID: <83mt6touwy.fsf@gnu.org> (raw)
In-Reply-To: <86pmbpxba9.fsf@hoetzel.info> (message from Jürgen Hötzel on Sun, 08 Jan 2023 17:03:48 +0100)
> From: Jürgen Hötzel <juergen@hoetzel.info>
> Date: Sun, 08 Jan 2023 17:03:48 +0100
>
> GCM doesn't require any padding of the plaintext before it used, so this is
> IMO an invalid assumption. Evaluating
>
> (gnutls-symmetric-encrypt 'AES-128-GCM "0123456789ABCDEF" "0123456789AB"
> "hello")
>
> results in:
>
> (error "GnuTLS AEAD cipher AES-128-GCM/encrypt input block length 5 is
> not 0 greater than a multiple of the required 16")
>
> whereas the corresponding C code using GnuTLS works as expected:
Please report this using "M-x report-emacs-bug RET", and please
include with the report the version of the GnuTLS library you are
using.
Thanks.
prev parent reply other threads:[~2023-01-08 16:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-08 16:03 gnutls-symmetric-encrypt/decrypt in GCM mode requires plaintext/ciphertext size to be multiple of 16 Jürgen Hötzel
2023-01-08 16:25 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mt6touwy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=juergen@hoetzel.info \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.