gc-libgcrypt.c File Reference

#include "MHD_config.h"
#include "gc.h"
#include <stdlib.h>
#include <string.h>
#include <gcrypt.h>
#include <assert.h>
Include dependency graph for gc-libgcrypt.c:

Go to the source code of this file.

Functions

Gc_rc MHD_gc_init (void)
void MHD_gc_done (void)
Gc_rc MHD_gc_nonce (char *data, size_t datalen)
Gc_rc MHD_gc_pseudo_random (char *data, size_t datalen)
Gc_rc MHD_gc_cipher_open (Gc_cipher alg, Gc_cipher_mode mode, MHD_gc_cipher_handle *outhandle)
Gc_rc MHD_gc_cipher_setkey (MHD_gc_cipher_handle handle, size_t keylen, const char *key)
Gc_rc MHD_gc_cipher_setiv (MHD_gc_cipher_handle handle, size_t ivlen, const char *iv)
Gc_rc MHD_gc_cipher_encrypt_inline (MHD_gc_cipher_handle handle, size_t len, char *data)
Gc_rc MHD_gc_cipher_decrypt_inline (MHD_gc_cipher_handle handle, size_t len, char *data)
Gc_rc MHD_gc_cipher_close (MHD_gc_cipher_handle handle)
Gc_rc MHD_gc_hash_open (Gc_hash hash, Gc_hash_mode mode, MHD_gc_hash_handle *outhandle)
Gc_rc MHD_gc_hash_clone (MHD_gc_hash_handle handle, MHD_gc_hash_handle *outhandle)
size_t MHD_gc_hash_digest_length (Gc_hash hash)
void MHD_gc_hash_MHD_hmac_setkey (MHD_gc_hash_handle handle, size_t len, const char *key)
void MHD_gc_hash_write (MHD_gc_hash_handle handle, size_t len, const char *data)
const char * MHD_gc_hash_read (MHD_gc_hash_handle handle)
void MHD_gc_hash_close (MHD_gc_hash_handle handle)

Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void MHD_gc_done ( void   ) 

Definition at line 57 of file gc-libgcrypt.c.

Referenced by MHD__gnutls_global_deinit().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

size_t MHD_gc_hash_digest_length ( Gc_hash  hash  ) 
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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Generated by  doxygen 1.6.2