]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
lib: document gnutls_hmac_fast vs nonce relationship
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 28 Jun 2019 13:54:30 +0000 (16:54 +0300)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 28 Jun 2019 13:54:30 +0000 (16:54 +0300)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
lib/crypto-api.c
lib/includes/gnutls/gnutls.h.in

index 0cd3d21723a8b84de640faa40f69820d8859754c..8af3f3b7dc193faeb94e11c1223e7ae8308c0aaf 100644 (file)
@@ -464,7 +464,8 @@ unsigned gnutls_hmac_get_len(gnutls_mac_algorithm_t algorithm)
  * @digest: is the output value of the hash
  *
  * This convenience function will hash the given data and return output
- * on a single call.
+ * on a single call. Note, this call will not work for MAC algorithms
+ * that require nonce (like UMAC or GMAC).
  *
  * Returns: Zero or a negative error code on error.
  *
index 074967603a096918b6cda5b557565087aae1327a..11652a8c2bebe394367cba63c3d03964bf22d252 100644 (file)
@@ -278,13 +278,13 @@ typedef enum {
  * @GNUTLS_MAC_STREEBOG_256: HMAC GOST R 34.11-2001 (Streebog) algorithm, 256 bit.
  * @GNUTLS_MAC_STREEBOG_512: HMAC GOST R 34.11-2001 (Streebog) algorithm, 512 bit.
  * @GNUTLS_MAC_AEAD: MAC implicit through AEAD cipher.
- * @GNUTLS_MAC_UMAC_96: The UMAC-96 MAC algorithm.
- * @GNUTLS_MAC_UMAC_128: The UMAC-128 MAC algorithm.
+ * @GNUTLS_MAC_UMAC_96: The UMAC-96 MAC algorithm (requires nonce).
+ * @GNUTLS_MAC_UMAC_128: The UMAC-128 MAC algorithm (requires nonce).
  * @GNUTLS_MAC_AES_CMAC_128: The AES-CMAC-128 MAC algorithm.
  * @GNUTLS_MAC_AES_CMAC_256: The AES-CMAC-256 MAC algorithm.
- * @GNUTLS_MAC_AES_GMAC_128: The AES-GMAC-128 MAC algorithm.
- * @GNUTLS_MAC_AES_GMAC_192: The AES-GMAC-192 MAC algorithm.
- * @GNUTLS_MAC_AES_GMAC_256: The AES-GMAC-256 MAC algorithm.
+ * @GNUTLS_MAC_AES_GMAC_128: The AES-GMAC-128 MAC algorithm (requires nonce).
+ * @GNUTLS_MAC_AES_GMAC_192: The AES-GMAC-192 MAC algorithm (requires nonce).
+ * @GNUTLS_MAC_AES_GMAC_256: The AES-GMAC-256 MAC algorithm (requires nonce).
  * @GNUTLS_MAC_SHA3_224: Reserved; unimplemented.
  * @GNUTLS_MAC_SHA3_256: Reserved; unimplemented.
  * @GNUTLS_MAC_SHA3_384: Reserved; unimplemented.