summaryrefslogtreecommitdiff
path: root/lib/includes/gnutls/crypto.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-03 10:37:45 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-03 10:38:15 +0200
commitba349b1a8751d6830fdeace466909d2cc6178cd1 (patch)
tree514725e560a65931aabbdeef7413fafc4d705d23 /lib/includes/gnutls/crypto.h
parent82e5b85de5ee9ac86cfb4f90a2e77c72a685df86 (diff)
downloadgnutls-ba349b1a8751d6830fdeace466909d2cc6178cd1.tar.gz
Allow encryption and decryption that are not in-place only.
Diffstat (limited to 'lib/includes/gnutls/crypto.h')
-rw-r--r--lib/includes/gnutls/crypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/includes/gnutls/crypto.h b/lib/includes/gnutls/crypto.h
index 31352dd534..d121490f0d 100644
--- a/lib/includes/gnutls/crypto.h
+++ b/lib/includes/gnutls/crypto.h
@@ -35,6 +35,11 @@ int gnutls_cipher_encrypt (const gnutls_cipher_hd_t handle,
void *text, size_t textlen);
int gnutls_cipher_decrypt (const gnutls_cipher_hd_t handle,
void *ciphertext, size_t ciphertextlen);
+int gnutls_cipher_decrypt2 (gnutls_cipher_hd_t handle, const void *ciphertext,
+ size_t ciphertextlen, void* text, size_t textlen);
+int gnutls_cipher_encrypt2 (gnutls_cipher_hd_t handle, void *text, size_t textlen,
+ void* ciphertext, size_t ciphertextlen);
+
void gnutls_cipher_deinit (gnutls_cipher_hd_t handle);
int gnutls_cipher_get_block_size (gnutls_cipher_algorithm_t algorithm);