]> git.eshelyaron.com Git - emacs.git/commit
GnuTLS HMAC and symmetric cipher support
authorTed Zlatanov <tzz@lifelogs.com>
Fri, 14 Jul 2017 15:04:19 +0000 (11:04 -0400)
committerTed Zlatanov <tzz@lifelogs.com>
Fri, 14 Jul 2017 15:06:16 +0000 (11:06 -0400)
commit583995c62dd424775dda33d5134ce04bee2ae685
tree732251c7c468b20a70d20578b778946cf49f77fe
parent0f3cc0b8245dfd7a9f6fcc95ec148be03fde8931
GnuTLS HMAC and symmetric cipher support

    * etc/NEWS: Add news for new feature.

    * doc/lispref/text.texi (GnuTLS Cryptography): Add
    documentation.

    * configure.ac: Add macros HAVE_GNUTLS3_DIGEST,
    HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_AEAD, HAVE_GNUTLS3_HMAC.

    * src/fns.c (Fsecure_hash_algorithms): Add function to list
    supported `secure-hash' algorithms.
    (extract_data_from_object): Add data extraction function that
    can operate on buffers and strings.
    (secure_hash): Use it.
    (Fsecure_hash): Mention `secure-hash-algorithms'.

    * src/gnutls.h: Include gnutls/crypto.h.

    * src/gnutls.c (Fgnutls_ciphers, gnutls_symmetric_aead)
    (gnutls_symmetric, Fgnutls_symmetric_encrypt, Fgnutls_symmetric_decrypt)
    (Fgnutls_macs, Fgnutls_digests, Fgnutls_hash_mac, Fgnutls_hash_digest)
    (Fgnutls_available_p): Implement GnuTLS cryptographic integration.

    * test/lisp/net/gnutls-tests.el: Add tests.
configure.ac
doc/lispref/text.texi
etc/NEWS
src/fns.c
src/gnutls.c
src/gnutls.h
src/lisp.h
test/lisp/net/gnutls-tests.el [new file with mode: 0644]