summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2021-12-22 09:37:01 +0000
committerDaiki Ueno <ueno@gnu.org>2021-12-22 09:37:01 +0000
commit3b1c2f859d7158d8c998f7c98e487af691e24844 (patch)
tree3fb532e10d22b516fdc86a7a3b8155652e2703fa /lib
parent1e9580fa3d0bc21939a5d726604fadd782ed280d (diff)
parent3d5e876692da2f6fac59221653d8131177da259e (diff)
downloadgnutls-3b1c2f859d7158d8c998f7c98e487af691e24844.tar.gz
Merge branch 'wip/dueno/hash-copy-doc' into 'master'
gnutls_{hash,hmac}_copy: mention the functions do not always work See merge request gnutls/gnutls!1502
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto-api.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/crypto-api.c b/lib/crypto-api.c
index bd600ef166..a43aaf9b89 100644
--- a/lib/crypto-api.c
+++ b/lib/crypto-api.c
@@ -543,7 +543,9 @@ gnutls_hmac_fast(gnutls_mac_algorithm_t algorithm,
* This function will create a copy of MAC context, containing all its current
* state. Copying contexts for MACs registered using
* gnutls_crypto_register_mac() is not supported and will always result in an
- * error.
+ * error. In addition to that, some of the MAC implementations do not support
+ * this operation. Applications should check the return value and provide a
+ * proper fallback.
*
* Returns: new MAC context or NULL in case of an error.
*
@@ -697,7 +699,9 @@ gnutls_hash_fast(gnutls_digest_algorithm_t algorithm,
* This function will create a copy of Message Digest context, containing all
* its current state. Copying contexts for Message Digests registered using
* gnutls_crypto_register_digest() is not supported and will always result in
- * an error.
+ * an error. In addition to that, some of the Message Digest implementations do
+ * not support this operation. Applications should check the return value and
+ * provide a proper fallback.
*
* Returns: new Message Digest context or NULL in case of an error.
*