![]() |
The Netsukuku Project
0.0.9
An Alternative routing method
|
#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"
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) |
| void free_crypto | ( | void | ) |
| RSA* genrsa | ( | int | key_bits, |
| u_char ** | pub, | ||
| u_int * | pub_len, | ||
| u_char ** | priv, | ||
| u_int * | priv_len | ||
| ) |


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

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

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

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

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


| char* ssl_strerr | ( | void | ) |

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

