** API and ABI modifications:
gnutls_certificate_set_trust_list: Added
+gnutls_cipher_get_tag_size: Added
* Version 3.2.1 (released 2013-06-01)
* gnutls_cipher_get_block_size:
* @algorithm: is an encryption algorithm
*
- * Get block size for encryption algorithm.
- *
- * Returns: block size for encryption algorithm.
+ * Returns: the block size of the encryption algorithm.
*
* Since: 2.10.0
**/
}
+/**
+ * gnutls_cipher_get_tag_size:
+ * @algorithm: is an encryption algorithm
+ *
+ * Returns: the tag size of the authenticated encryption algorithm.
+ *
+ * Since: 3.2.2
+ **/
+int
+gnutls_cipher_get_tag_size (gnutls_cipher_algorithm_t algorithm)
+{
+ return _gnutls_cipher_get_tag_size(cipher_to_entry(algorithm));
+}
+
/**
* gnutls_cipher_get_iv_size:
* @algorithm: is an encryption algorithm
void gnutls_cipher_deinit (gnutls_cipher_hd_t handle);
int gnutls_cipher_get_block_size (gnutls_cipher_algorithm_t algorithm);
int gnutls_cipher_get_iv_size (gnutls_cipher_algorithm_t algorithm);
-
+ int gnutls_cipher_get_tag_size (gnutls_cipher_algorithm_t algorithm);
typedef struct hash_hd_st *gnutls_hash_hd_t;
typedef struct hmac_hd_st *gnutls_hmac_hd_t;