#include "MHD_config.h"
#include "gc.h"
#include <stdlib.h>
#include <string.h>
#include <gcrypt.h>
#include <assert.h>
Go to the source code of this file.
typedef struct _MHD_gc_hash_ctx _MHD_gc_hash_ctx |
Gc_rc MHD_gc_cipher_close | ( | MHD_gc_cipher_handle | handle | ) |
Definition at line 203 of file gc-libgcrypt.c.
References GC_OK.
Referenced by MHD_gnutls_cipher_deinit().
Gc_rc MHD_gc_cipher_decrypt_inline | ( | MHD_gc_cipher_handle | handle, | |
size_t | len, | |||
char * | data | |||
) |
Definition at line 192 of file gc-libgcrypt.c.
References GC_INVALID_CIPHER, and GC_OK.
Referenced by MHD_gtls_cipher_decrypt().
Gc_rc MHD_gc_cipher_encrypt_inline | ( | MHD_gc_cipher_handle | handle, | |
size_t | len, | |||
char * | data | |||
) |
Definition at line 181 of file gc-libgcrypt.c.
References GC_INVALID_CIPHER, and GC_OK.
Referenced by MHD_gtls_cipher_encrypt().
Gc_rc MHD_gc_cipher_open | ( | Gc_cipher | alg, | |
Gc_cipher_mode | mode, | |||
MHD_gc_cipher_handle * | outhandle | |||
) |
Definition at line 87 of file gc-libgcrypt.c.
References GC_3DES, GC_AES128, GC_AES192, GC_AES256, GC_ARCFOUR128, GC_ARCFOUR40, GC_ARCTWO40, GC_CBC, GC_DES, GC_ECB, GC_INVALID_CIPHER, GC_OK, and GC_STREAM.
Referenced by MHD_gtls_cipher_init().
Gc_rc MHD_gc_cipher_setiv | ( | MHD_gc_cipher_handle | handle, | |
size_t | ivlen, | |||
const char * | iv | |||
) |
Definition at line 168 of file gc-libgcrypt.c.
References GC_INVALID_CIPHER, and GC_OK.
Referenced by MHD_gtls_cipher_init().
Gc_rc MHD_gc_cipher_setkey | ( | MHD_gc_cipher_handle | handle, | |
size_t | keylen, | |||
const char * | key | |||
) |
Definition at line 155 of file gc-libgcrypt.c.
References GC_INVALID_CIPHER, and GC_OK.
Referenced by MHD_gtls_cipher_init().
void MHD_gc_done | ( | void | ) |
Definition at line 57 of file gc-libgcrypt.c.
Referenced by MHD__gnutls_global_deinit().
Gc_rc MHD_gc_hash_clone | ( | MHD_gc_hash_handle | handle, | |
MHD_gc_hash_handle * | outhandle | |||
) |
Definition at line 303 of file gc-libgcrypt.c.
References GC_INVALID_HASH, GC_MALLOC_ERROR, and GC_OK.
Referenced by MHD_gnutls_hash_copy().
void MHD_gc_hash_close | ( | MHD_gc_hash_handle | handle | ) |
Definition at line 400 of file gc-libgcrypt.c.
Referenced by MHD_gnutls_hash_deinit(), and MHD_gnutls_MHD_hmac_deinit().
size_t MHD_gc_hash_digest_length | ( | Gc_hash | hash | ) |
Definition at line 326 of file gc-libgcrypt.c.
References GC_MD2, GC_MD2_DIGEST_SIZE, GC_MD4, GC_MD4_DIGEST_SIZE, GC_MD5, GC_MD5_DIGEST_SIZE, GC_RMD160, GC_RMD160_DIGEST_SIZE, GC_SHA1, GC_SHA1_DIGEST_SIZE, GC_SHA256, GC_SHA256_DIGEST_SIZE, GC_SHA384, GC_SHA384_DIGEST_SIZE, GC_SHA512, and GC_SHA512_DIGEST_SIZE.
Referenced by MHD_gnutls_hash_get_algo_len().
void MHD_gc_hash_MHD_hmac_setkey | ( | MHD_gc_hash_handle | handle, | |
size_t | len, | |||
const char * | key | |||
) |
Definition at line 372 of file gc-libgcrypt.c.
Referenced by MHD_gtls_MHD_hmac_init().
Gc_rc MHD_gc_hash_open | ( | Gc_hash | hash, | |
Gc_hash_mode | mode, | |||
MHD_gc_hash_handle * | outhandle | |||
) |
Definition at line 220 of file gc-libgcrypt.c.
References GC_HMAC, GC_INVALID_HASH, GC_MALLOC_ERROR, GC_MD2, GC_MD4, GC_MD5, GC_OK, GC_RMD160, GC_SHA1, GC_SHA256, GC_SHA384, and GC_SHA512.
Referenced by MHD_gtls_hash_init(), and MHD_gtls_MHD_hmac_init().
const char* MHD_gc_hash_read | ( | MHD_gc_hash_handle | handle | ) |
Definition at line 387 of file gc-libgcrypt.c.
Referenced by MHD_gnutls_hash_deinit(), and MHD_gnutls_MHD_hmac_deinit().
void MHD_gc_hash_write | ( | MHD_gc_hash_handle | handle, | |
size_t | len, | |||
const char * | data | |||
) |
Definition at line 380 of file gc-libgcrypt.c.
Referenced by MHD_gnutls_hash().
Gc_rc MHD_gc_init | ( | void | ) |
Definition at line 39 of file gc-libgcrypt.c.
References GC_INIT_ERROR, and GC_OK.
Referenced by MHD__gnutls_global_init().
Gc_rc MHD_gc_nonce | ( | char * | data, | |
size_t | datalen | |||
) |
Definition at line 67 of file gc-libgcrypt.c.
References GC_OK.
Referenced by calc_enc_length(), MHD__gnutls_proc_rsa_client_kx(), MHD_gtls_compressed2ciphertext(), MHD_gtls_generate_session_id(), and MHD_gtls_tls_create_random().
Gc_rc MHD_gc_pseudo_random | ( | char * | data, | |
size_t | datalen | |||
) |
Definition at line 74 of file gc-libgcrypt.c.
References GC_OK.
Referenced by MHD__gnutls_gen_rsa_client_kx(), and MHD_gtls_pkcs1_rsa_encrypt().