The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
crypto.c File Reference
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/crypto.h>
#include <openssl/md5.h>
#include <openssl/x509.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include "crypto.h"
#include "log.h"
#include "xmalloc.h"
Include dependency graph for crypto.c:

Functions

void init_crypto (void)
 
void free_crypto (void)
 
char * ssl_strerr (void)
 
RSA * genrsa (int key_bits, u_char **pub, u_int *pub_len, u_char **priv, u_int *priv_len)
 
RSA * get_rsa_pub (const u_char **pub_key, long length)
 
RSA * get_rsa_priv (const u_char **priv_key, long length)
 
u_char * hash_sha1 (u_char *msg, u_int m_len, u_char *hash)
 
u_char * hash_md5 (u_char *msg, u_int m_len, u_char *hash)
 
u_char * rsa_sign (u_char *msg, u_int m_len, RSA *priv, u_int *siglen)
 
int verify_sign (u_char *msg, u_int m_len, u_char *signature, u_int siglen, RSA *pub)
 

Function Documentation

void free_crypto ( void  )
RSA* genrsa ( int  key_bits,
u_char **  pub,
u_int *  pub_len,
u_char **  priv,
u_int *  priv_len 
)

Here is the call graph for this function:

Here is the caller graph for this function:

RSA* get_rsa_priv ( const u_char **  priv_key,
long  length 
)

Here is the caller graph for this function:

RSA* get_rsa_pub ( const u_char **  pub_key,
long  length 
)

Here is the caller graph for this function:

u_char* hash_md5 ( u_char *  msg,
u_int  m_len,
u_char *  hash 
)

Here is the caller graph for this function:

u_char* hash_sha1 ( u_char *  msg,
u_int  m_len,
u_char *  hash 
)

Here is the caller graph for this function:

void init_crypto ( void  )
u_char* rsa_sign ( u_char *  msg,
u_int  m_len,
RSA *  priv,
u_int *  siglen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char* ssl_strerr ( void  )

Here is the caller graph for this function:

int verify_sign ( u_char *  msg,
u_int  m_len,
u_char *  signature,
u_int  siglen,
RSA *  pub 
)

Here is the call graph for this function:

Here is the caller graph for this function: