@subsubheading Overriding the cryptographic library
In some systems, that might contain a broad acceleration engine, it
might be desirable to override big parts of the cryptographic backend,
-or even all of them. T following functions are provided for this reason.
+or even all of them. The following functions are provided for this reason.
@itemize
/* This file contains prototypes about the OpenSSL compatibility layer
* in GnuTLS. GnuTLS is not a complete replacement of OPENSSL so this
- * compatibility layer only support limited OpenSSL functionality.
+ * compatibility layer only supports limited OpenSSL functionality.
*
* New programs should avoid using this compatibility layer, and use
* the native GnuTLS API directly.
#include <gnutls/gnutls.h>
-/* Extra definitions that do not longer exist in gnutls.
+/* Extra definitions that no longer exist in gnutls.
*/
#define GNUTLS_X509_CN_SIZE 256
#define GNUTLS_X509_C_SIZE 3
*
*/
-/* This file provides is the backend hash/mac API for libgcrypt.
+/* This file provides the backend hash/mac implementation for
+ * VIA Padlock hardware acceleration.
*/
#include <gnutls_int.h>
int (*bigint_prime_check) (const bigint_t pp);
int (*bigint_generate_group) (gnutls_group_st * gg, unsigned int bits);
- /* reads an bigint from a buffer */
- /* stores an bigint into the buffer. returns
+ /* reads a bigint from a buffer */
+ /* stores a bigint into the buffer. returns
* GNUTLS_E_SHORT_MEMORY_BUFFER if buf_size is not sufficient to
* store this integer, and updates the buf_size;
*/
*/
/* auth_info_t structures SHOULD NOT contain malloced
* elements. Check gnutls_session_pack.c, and gnutls_auth.c.
- * Rememember that this should be calloced!
+ * Remember that this should be calloced!
*/
void *auth_info;
gnutls_credentials_type_t auth_info_type;
*/
gnutls_openpgp_recv_key_func openpgp_recv_key_func;
- /* If non zero the server will not advertize the CA's he
+ /* If non zero the server will not advertise the CA's he
* trusts (do not send an RDN sequence).
*/
int ignore_rdn_sequence;
*/
void _gnutls_free_auth_info (gnutls_session_t session);
-/* These two macros return the advertized TLS version of
+/* These two macros return the advertised TLS version of
* the peer.
*/
#define _gnutls_get_adv_version_major( session) \
*/
/* This file contains the types and prototypes for all the
- * high level functionality of gnutls main library. For the
- * extra functionality (which is under the GNU GPL license) check
- * the gnutls/extra.h header. The openssl compatibility layer is
- * in gnutls/openssl.h.
+ * high level functionality of the gnutls main library.
*
- * The low level cipher functionality is in libgcrypt. Check
- * gcrypt.h
+ * If the optional C++ binding was built, it is available in
+ * gnutls/gnutlsxx.h.
+ *
+ * The openssl compatibility layer (which is under the GNU GPL
+ * license) is in gnutls/openssl.h.
+ *
+ * The low level cipher functionality is in gnutls/crypto.h.
*/
#include <nettle/cbc.h>
#include <nettle/gcm.h>
-/* Functions that refer to the libgcrypt library.
+/* Functions that refer to the nettle library.
*/
#define MAX_BLOCK_SIZE 32
#include <gnutls_num.h>
#include <gnutls_mpi.h>
-/* Functions that refer to the initialization of the libgcrypt library.
+/* Functions that refer to the initialization of the nettle library.
*/
int
*
*/
-/* This file provides is the backend hash/mac API for libgcrypt.
+/* This file provides the backend hash/mac API for nettle.
*/
#include <gnutls_int.h>