[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/tzz/nettle 675941f: WIP: GnuTLS: factor extract_da
From: |
Teodor Zlatanov |
Subject: |
[Emacs-diffs] scratch/tzz/nettle 675941f: WIP: GnuTLS: factor extract_data_from_object() out from secure_hash().docs |
Date: |
Mon, 17 Apr 2017 16:44:07 -0400 (EDT) |
branch: scratch/tzz/nettle
commit 675941f6d25b45c6017efcb0a6f5102f5a107565
Author: Ted Zlatanov <address@hidden>
Commit: Ted Zlatanov <address@hidden>
WIP: GnuTLS: factor extract_data_from_object() out from secure_hash().docs
---
src/gnutls.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/gnutls.c b/src/gnutls.c
index 7836b1e..e867a2c 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -2052,11 +2052,15 @@ gnutls_symmetric (bool encrypting, Lisp_Object cipher,
DEFUN ("gnutls-symmetric-encrypt", Fgnutls_symmetric_encrypt,
Sgnutls_symmetric_encrypt, 4, 5, 0,
doc: /* Encrypt INPUT string with symmetric CIPHER and KEY+AEAD_AUTH
and IV strings into a unibyte string.
-Returns nil on error. INPUT, KEY, and IV should be unibyte
-strings.
+Returns nil on error. INPUT, KEY, and IV can be strings or buffers or
+lists.
IV, KEY, and AEAD_AUTH will be wiped by the function.
+INPUT and KEY and IV and AEAD_AUTH can be a list in the format
+(BUFFER-OR-STRING INPUT-START INPUT-END CODING-SYSTEM NOERROR) and
+those elements are extracted and used as in `secure-hash' which see.
+
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.
@@ -2081,7 +2085,7 @@ lists.
IV, KEY, and AEAD_AUTH will be wiped by the function if they are
strings.
-INPUT and KEY and AEAD_AUTH can be a list in the format
+INPUT and KEY and IV and AEAD_AUTH can be a list in the format
(BUFFER-OR-STRING INPUT-START INPUT-END CODING-SYSTEM NOERROR) and
those elements are extracted and used as in `secure-hash' which see.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] scratch/tzz/nettle 675941f: WIP: GnuTLS: factor extract_data_from_object() out from secure_hash().docs,
Teodor Zlatanov <=