summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-03-31 20:56:04 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-03-31 21:14:52 +0200
commitbf1b0662ae463400de33119e3020e420c788766d (patch)
tree52bcc0ae50043d3152ffadb0e08e88d5d74df4dc
parentfee9dabc9f42342c1cebf92ee788163d23255dc0 (diff)
downloadgnutls-bf1b0662ae463400de33119e3020e420c788766d.tar.gz
gnutls_cipher_get_tag_size: document behavior on non-AEAD ciphers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--lib/algorithms/ciphers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/algorithms/ciphers.c b/lib/algorithms/ciphers.c
index 95f37561d4..ea0cf51bbf 100644
--- a/lib/algorithms/ciphers.c
+++ b/lib/algorithms/ciphers.c
@@ -261,6 +261,9 @@ unsigned gnutls_cipher_get_block_size(gnutls_cipher_algorithm_t algorithm)
* gnutls_cipher_get_tag_size:
* @algorithm: is an encryption algorithm
*
+ * This function returns the tag size of an authenticated encryption
+ * algorithm. For non-AEAD algorithms, it returns zero.
+ *
* Returns: the tag size of the authenticated encryption algorithm.
*
* Since: 3.2.2