1gnutls_cipher_encrypt2(3) gnutls gnutls_cipher_encrypt2(3)
2
3
4
6 gnutls_cipher_encrypt2 - API function
7
9 #include <gnutls/crypto.h>
10
11 int gnutls_cipher_encrypt2(gnutls_cipher_hd_t handle, const void *
12 text, size_t textlen, void * ciphertext, size_t ciphertextlen);
13
15 gnutls_cipher_hd_t handle
16 is a gnutls_cipher_hd_t structure.
17
18 const void * text
19 the data to encrypt
20
21 size_t textlen
22 The length of data to encrypt
23
24 void * ciphertext
25 the encrypted data
26
27 size_t ciphertextlen
28 The available length for encrypted data
29
31 This function will encrypt the given data using the algorithm specified
32 by the context.
33
35 Zero or a negative error code on error.
36
38 2.12.0
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: http://www.gnutls.org
43
44
46 Copyright © 2001-2014 Free Software Foundation, Inc..
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 http://www.gnutls.org/manual/
57
58gnutls 3.3.29 gnutls_cipher_encrypt2(3)