#include <gnutls_int.h>
#include <gnutls_errors.h>
#include <gnutls_cipher_int.h>
#include <gnutls_datum.h>
Go to the source code of this file.
Functions | |
cipher_hd_t | 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 (cipher_hd_t handle, void *text, int textlen) |
int | MHD_gtls_cipher_decrypt (cipher_hd_t handle, void *ciphertext, int ciphertextlen) |
void | MHD_gnutls_cipher_deinit (cipher_hd_t handle) |
void MHD_gnutls_cipher_deinit | ( | cipher_hd_t | handle | ) |
Definition at line 103 of file gnutls_cipher_int.c.
References GNUTLS_CIPHER_FAILED, and MHD_gc_cipher_close().
Referenced by MHD__gnutls_deinit(), MHD_gtls_read_connection_state_init(), and MHD_gtls_write_connection_state_init().
int MHD_gtls_cipher_decrypt | ( | cipher_hd_t | handle, | |
void * | ciphertext, | |||
int | ciphertextlen | |||
) |
Definition at line 87 of file gnutls_cipher_int.c.
References GNUTLS_CIPHER_FAILED, GNUTLS_E_INTERNAL_ERROR, MHD_gc_cipher_decrypt_inline(), and MHD_gnutls_assert.
Referenced by MHD_gtls_ciphertext2compressed().
int MHD_gtls_cipher_encrypt | ( | cipher_hd_t | handle, | |
void * | text, | |||
int | textlen | |||
) |
Definition at line 73 of file gnutls_cipher_int.c.
References GNUTLS_CIPHER_FAILED, GNUTLS_E_INTERNAL_ERROR, MHD_gc_cipher_encrypt_inline(), and MHD_gnutls_assert.
Referenced by MHD_gtls_compressed2ciphertext().
cipher_hd_t 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().