Go to the source code of this file.
Defines | |
#define | cipher_hd_t MHD_gc_cipher_handle |
#define | GNUTLS_CIPHER_FAILED NULL |
Functions | |
void * | MHD_gtls_cipher_init (enum MHD_GNUTLS_CipherAlgorithm cipher, const MHD_gnutls_datum_t *key, const MHD_gnutls_datum_t *iv) |
int | MHD_gtls_cipher_encrypt (void *handle, void *text, int textlen) |
int | MHD_gtls_cipher_decrypt (void *handle, void *ciphertext, int ciphertextlen) |
void | MHD_gnutls_cipher_deinit (void *handle) |
#define cipher_hd_t MHD_gc_cipher_handle |
Definition at line 28 of file gnutls_cipher_int.h.
Referenced by MHD_gtls_cipher_init().
#define GNUTLS_CIPHER_FAILED NULL |
Definition at line 29 of file gnutls_cipher_int.h.
Referenced by MHD_gnutls_cipher_deinit(), MHD_gtls_cipher_decrypt(), MHD_gtls_cipher_encrypt(), MHD_gtls_read_connection_state_init(), and MHD_gtls_write_connection_state_init().
void MHD_gnutls_cipher_deinit | ( | void * | handle | ) |
int MHD_gtls_cipher_decrypt | ( | void * | handle, | |
void * | ciphertext, | |||
int | ciphertextlen | |||
) |
int MHD_gtls_cipher_encrypt | ( | void * | handle, | |
void * | text, | |||
int | textlen | |||
) |
void* MHD_gtls_cipher_init | ( | enum MHD_GNUTLS_CipherAlgorithm | cipher, | |
const MHD_gnutls_datum_t * | key, | |||
const MHD_gnutls_datum_t * | iv | |||
) |
Definition at line 31 of file gnutls_cipher_int.c.
References cipher_hd_t, MHD_gnutls_datum_t::data, GC_3DES, GC_AES128, GC_AES256, GC_ARCFOUR128, GC_CBC, GC_INVALID_CIPHER, GC_STREAM, MHD__gnutls_x509_log, MHD_gc_cipher_open(), MHD_gc_cipher_setiv(), MHD_gc_cipher_setkey(), MHD_gnutls_assert, MHD_GNUTLS_CIPHER_3DES_CBC, MHD_GNUTLS_CIPHER_AES_128_CBC, MHD_GNUTLS_CIPHER_AES_256_CBC, MHD_GNUTLS_CIPHER_ARCFOUR_128, MHD_GNUTLS_CIPHER_NULL, and MHD_gnutls_datum_t::size.
Referenced by MHD_gtls_read_connection_state_init(), and MHD_gtls_write_connection_state_init().