diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-11 11:29:21 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-11 11:29:21 +0100 |
commit | c40c2ca916df2562803f3f9ce31c1022dc56c742 (patch) | |
tree | ee2ee1a38b6dbd73496baf608d1d4ef96a4fc820 /lib/crypto-api.c | |
parent | 4639441dc6f4c45b0ba806bc708fb928bb8a64ae (diff) | |
download | gnutls-c40c2ca916df2562803f3f9ce31c1022dc56c742.tar.gz |
crypto-api: doc update
Diffstat (limited to 'lib/crypto-api.c')
-rw-r--r-- | lib/crypto-api.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/crypto-api.c b/lib/crypto-api.c index f6de124e68..3dd25e5009 100644 --- a/lib/crypto-api.c +++ b/lib/crypto-api.c @@ -221,7 +221,9 @@ gnutls_cipher_decrypt(gnutls_cipher_hd_t handle, void *ctext, * @ctext_len: the available length for encrypted data * * This function will encrypt the given data using the algorithm - * specified by the context. + * specified by the context. For block ciphers the @ptext_len must be + * a multiple of the block size. For the supported ciphers the encrypted + * data length will equal the plaintext size. * * Returns: Zero or a negative error code on error. * @@ -247,7 +249,9 @@ gnutls_cipher_encrypt2(gnutls_cipher_hd_t handle, const void *ptext, * @ptext_len: the available length for decrypted data * * This function will decrypt the given data using the algorithm - * specified by the context. + * specified by the context. For block ciphers the @ctext_len must be + * a multiple of the block size. For the supported ciphers the plaintext + * data length will equal the ciphertext size. * * Note that in AEAD ciphers, this will not check the tag. You will * need to compare the tag sent with the value returned from gnutls_cipher_tag(). |