emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnutls-symmetric-encrypt/decrypt in GCM mode requires plaintext/ciph


From: Eli Zaretskii
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

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]