Function: gnutls-symmetric-decrypt
gnutls-symmetric-decrypt is a function defined in gnutls.c.
Signature
(gnutls-symmetric-decrypt CIPHER KEY IV INPUT &optional AEAD-AUTH)
Documentation
Decrypt INPUT with symmetric CIPHER, KEY+AEAD_AUTH, and IV to a unibyte string.
Return nil on error.
The KEY can be specified as a buffer or string or in other ways (see Info node (elisp)Format of GnuTLS Cryptography Inputs). The KEY will be wiped after use if it's a string.
The IV and INPUT and the optional AEAD_AUTH can also be specified as a buffer or string or in other ways.
The alist of symmetric ciphers can be obtained with gnutls-ciphers.
The CIPHER may be a string or symbol matching a key in that alist, or
a plist with the :cipher-id numeric property, or the number itself.
AEAD ciphers: these ciphers will have a gnutls-ciphers entry with
:cipher-aead-capable set to t. AEAD_AUTH can be supplied for
these AEAD ciphers, but it may still be omitted (nil) as well.
Probably introduced at or before Emacs version 26.1.
Source Code
// Defined in /usr/src/emacs/src/gnutls.c
{
return gnutls_symmetric (false, cipher, key, iv, input, aead_auth);
}