#include <stddef.h>
Go to the source code of this file.
#define GC_MD2_DIGEST_SIZE 16 |
#define GC_MD4_DIGEST_SIZE 16 |
#define GC_MD5_DIGEST_SIZE 16 |
#define GC_RMD160_DIGEST_SIZE 20 |
#define GC_SHA1_DIGEST_SIZE 20 |
#define GC_SHA256_DIGEST_SIZE 32 |
#define GC_SHA384_DIGEST_SIZE 48 |
#define GC_SHA512_DIGEST_SIZE 64 |
typedef enum Gc_cipher_mode Gc_cipher_mode |
typedef enum Gc_hash_mode Gc_hash_mode |
typedef void* MHD_gc_cipher_handle |
typedef void(* MHD_gc_free_t)(void *) |
typedef void* MHD_gc_hash_handle |
typedef void*(* MHD_gc_malloc_t)(size_t n) |
typedef void*(* MHD_gc_realloc_t)(void *p, size_t n) |
typedef int(* MHD_gc_secure_check_t)(const void *) |
enum Gc_cipher |
enum Gc_cipher_mode |
enum Gc_hash |
enum Gc_hash_mode |
enum Gc_rc |
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 | cipher, | |
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_md2 | ( | const void * | in, | |
size_t | inlen, | |||
void * | resbuf | |||
) |
Gc_rc MHD_gc_md4 | ( | const void * | in, | |
size_t | inlen, | |||
void * | resbuf | |||
) |
Gc_rc MHD_gc_md5 | ( | const void * | in, | |
size_t | inlen, | |||
void * | resbuf | |||
) |
Gc_rc MHD_gc_MHD_hmac_md5 | ( | const void * | key, | |
size_t | keylen, | |||
const void * | in, | |||
size_t | inlen, | |||
char * | resbuf | |||
) |
Gc_rc MHD_gc_MHD_hmac_sha1 | ( | const void * | key, | |
size_t | keylen, | |||
const void * | in, | |||
size_t | inlen, | |||
char * | resbuf | |||
) |
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_pbkdf2_sha1 | ( | const char * | P, | |
size_t | Plen, | |||
const char * | S, | |||
size_t | Slen, | |||
unsigned int | c, | |||
char * | DK, | |||
size_t | dkLen | |||
) |
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(), MHD__gnutls_global_init(), and MHD_gtls_pkcs1_rsa_encrypt().
Gc_rc MHD_gc_sha1 | ( | const void * | in, | |
size_t | inlen, | |||
void * | resbuf | |||
) |