#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | zencod_number_s |
struct | ZEN_data_st |
Macros | |
#define | ZENBRIDGE_MAX_KEYSIZE_RSA 2048 |
#define | ZENBRIDGE_MAX_KEYSIZE_RSA_CRT 1024 |
#define | ZENBRIDGE_MAX_KEYSIZE_DSA_SIGN 1024 |
#define | ZENBRIDGE_MAX_KEYSIZE_DSA_VRFY 1024 |
#define | ZENBRIDGE_VERSION_MAJOR(x) (((x) >> 16) | 0xff) |
#define | ZENBRIDGE_VERSION_MINOR(x) (((x) >> 8) | 0xff) |
#define | ZENBRIDGE_VERSION_PATCH(x) (((x) >> 0) | 0xff) |
#define | ZENBRIDGE_VERSION(x, y, z) ((x) << 16 | (y) << 8 | (z)) |
#define | KEY zen_nb_t |
#define | ZENBRIDGE_RNG_DIRECT 0 |
#define | ZENBRIDGE_RNG_SHA1 1 |
Typedefs | |
typedef struct zencod_number_s | zen_nb_t |
typedef int | t_zencod_lib_version (void) |
typedef int | t_zencod_hw_version (void) |
typedef int | t_zencod_test (void) |
typedef int | t_zencod_dump_key (FILE *stream, char *msg, KEY *key) |
typedef KEY * | t_zencod_new_number (unsigned long len, unsigned char *data) |
typedef int | t_zencod_init_number (KEY *n, unsigned long len, unsigned char *data) |
typedef unsigned long | t_zencod_bytes2bits (unsigned char *n, unsigned long bytes) |
typedef unsigned long | t_zencod_bits2bytes (unsigned long bits) |
typedef int | t_zencod_rsa_mod_exp (KEY *y, KEY *x, KEY *n, KEY *e) |
typedef int | t_zencod_rsa_mod_exp_crt (KEY *y, KEY *x, KEY *p, KEY *q, KEY *edp, KEY *edq, KEY *qinv) |
typedef int | t_zencod_dsa_do_sign (unsigned int hash, KEY *data, KEY *random, KEY *p, KEY *q, KEY *g, KEY *x, KEY *r, KEY *s) |
typedef int | t_zencod_dsa_do_verify (unsigned int hash, KEY *data, KEY *p, KEY *q, KEY *g, KEY *y, KEY *r, KEY *s, KEY *v) |
typedef int | t_zencod_dh_generate_key (KEY *y, KEY *x, KEY *g, KEY *n, int gen_x) |
typedef int | t_zencod_dh_compute_key (KEY *k, KEY *y, KEY *x, KEY *n) |
typedef int | t_zencod_rand_bytes (KEY *rand, unsigned int flags) |
typedef int | t_zencod_math_mod_exp (KEY *r, KEY *a, KEY *e, KEY *n) |
typedef struct ZEN_data_st | ZEN_MD_DATA |
typedef int | t_zencod_md5_init (ZEN_MD_DATA *data) |
typedef int | t_zencod_md5_update (ZEN_MD_DATA *data, const KEY *input) |
typedef int | t_zencod_md5_do_final (ZEN_MD_DATA *data, KEY *output) |
typedef int | t_zencod_sha1_init (ZEN_MD_DATA *data) |
typedef int | t_zencod_sha1_update (ZEN_MD_DATA *data, const KEY *input) |
typedef int | t_zencod_sha1_do_final (ZEN_MD_DATA *data, KEY *output) |
typedef int | t_zencod_rc4_cipher (KEY *output, const KEY *input, const KEY *key, unsigned char *index_1, unsigned char *index_2, int mode) |
typedef int | t_zencod_xdes_cipher (KEY *output, const KEY *input, const KEY *key_1, const KEY *key_2, const KEY *key_3, const KEY *iv, int mode) |
#define KEY zen_nb_t |
Definition at line 36 of file hw_zencod.h.
#define ZENBRIDGE_MAX_KEYSIZE_DSA_SIGN 1024 |
Definition at line 19 of file hw_zencod.h.
#define ZENBRIDGE_MAX_KEYSIZE_DSA_VRFY 1024 |
Definition at line 20 of file hw_zencod.h.
#define ZENBRIDGE_MAX_KEYSIZE_RSA 2048 |
Definition at line 17 of file hw_zencod.h.
#define ZENBRIDGE_MAX_KEYSIZE_RSA_CRT 1024 |
Definition at line 18 of file hw_zencod.h.
#define ZENBRIDGE_RNG_DIRECT 0 |
Definition at line 88 of file hw_zencod.h.
#define ZENBRIDGE_RNG_SHA1 1 |
Definition at line 89 of file hw_zencod.h.
#define ZENBRIDGE_VERSION | ( | x, | |
y, | |||
z | |||
) | ((x) << 16 | (y) << 8 | (z)) |
Definition at line 26 of file hw_zencod.h.
#define ZENBRIDGE_VERSION_MAJOR | ( | x | ) | (((x) >> 16) | 0xff) |
Definition at line 23 of file hw_zencod.h.
#define ZENBRIDGE_VERSION_MINOR | ( | x | ) | (((x) >> 8) | 0xff) |
Definition at line 24 of file hw_zencod.h.
#define ZENBRIDGE_VERSION_PATCH | ( | x | ) | (((x) >> 0) | 0xff) |
Definition at line 25 of file hw_zencod.h.
typedef unsigned long t_zencod_bits2bytes(unsigned long bits) |
Definition at line 54 of file hw_zencod.h.
typedef unsigned long t_zencod_bytes2bits(unsigned char *n, unsigned long bytes) |
Definition at line 53 of file hw_zencod.h.
Definition at line 82 of file hw_zencod.h.
Definition at line 81 of file hw_zencod.h.
typedef int t_zencod_dsa_do_sign(unsigned int hash, KEY *data, KEY *random, KEY *p, KEY *q, KEY *g, KEY *x, KEY *r, KEY *s) |
Definition at line 70 of file hw_zencod.h.
typedef int t_zencod_dsa_do_verify(unsigned int hash, KEY *data, KEY *p, KEY *q, KEY *g, KEY *y, KEY *r, KEY *s, KEY *v) |
Definition at line 72 of file hw_zencod.h.
Definition at line 45 of file hw_zencod.h.
typedef int t_zencod_hw_version(void) |
Definition at line 43 of file hw_zencod.h.
Definition at line 52 of file hw_zencod.h.
typedef int t_zencod_lib_version(void) |
Definition at line 42 of file hw_zencod.h.
Definition at line 96 of file hw_zencod.h.
typedef int t_zencod_md5_do_final(ZEN_MD_DATA *data, KEY *output) |
Definition at line 123 of file hw_zencod.h.
typedef int t_zencod_md5_init(ZEN_MD_DATA *data) |
Definition at line 121 of file hw_zencod.h.
typedef int t_zencod_md5_update(ZEN_MD_DATA *data, const KEY *input) |
Definition at line 122 of file hw_zencod.h.
Definition at line 51 of file hw_zencod.h.
Definition at line 90 of file hw_zencod.h.
typedef int t_zencod_rc4_cipher(KEY *output, const KEY *input, const KEY *key, unsigned char *index_1, unsigned char *index_2, int mode) |
Definition at line 139 of file hw_zencod.h.
Definition at line 61 of file hw_zencod.h.
Definition at line 63 of file hw_zencod.h.
typedef int t_zencod_sha1_do_final(ZEN_MD_DATA *data, KEY *output) |
Definition at line 127 of file hw_zencod.h.
typedef int t_zencod_sha1_init(ZEN_MD_DATA *data) |
Definition at line 125 of file hw_zencod.h.
typedef int t_zencod_sha1_update(ZEN_MD_DATA *data, const KEY *input) |
Definition at line 126 of file hw_zencod.h.
typedef int t_zencod_test(void) |
Definition at line 44 of file hw_zencod.h.
typedef int t_zencod_xdes_cipher(KEY *output, const KEY *input, const KEY *key_1, const KEY *key_2, const KEY *key_3, const KEY *iv, int mode) |
Definition at line 150 of file hw_zencod.h.
typedef struct ZEN_data_st ZEN_MD_DATA |
typedef struct zencod_number_s zen_nb_t |