#include <string.h>
#include <openssl/rand.h>
#include <openssl/bn.h>
#include <openssl/dsa.h>
#include <openssl/evp.h>
#include "gost_params.h"
#include "gost_lcl.h"
#include "e_gost_err.h"
Go to the source code of this file.
Macros | |
#define | dump_signature(a, b, c) |
#define | dump_dsa_sig(a, b) |
#define | dump_signature(a, b, c) |
Functions | |
DSA_SIG * | gost_do_sign (const unsigned char *dgst, int dlen, DSA *dsa) |
int | pack_sign_cp (DSA_SIG *s, int order, unsigned char *sig, size_t *siglen) |
int | gost_do_verify (const unsigned char *dgst, int dgst_len, DSA_SIG *sig, DSA *dsa) |
int | gost94_compute_public (DSA *dsa) |
int | fill_GOST94_params (DSA *dsa, int nid) |
int | gost_sign_keygen (DSA *dsa) |
DSA_SIG * | unpack_cp_signature (const unsigned char *sig, size_t siglen) |
BIGNUM * | hashsum2bn (const unsigned char *dgst) |
BIGNUM * | getbnfrombuf (const unsigned char *buf, size_t len) |
int | store_bignum (BIGNUM *bn, unsigned char *buf, int len) |
Definition at line 45 of file gost_sign.c.
Definition at line 44 of file gost_sign.c.
Definition at line 44 of file gost_sign.c.
int fill_GOST94_params | ( | DSA * | dsa, |
int | nid | ||
) |
Definition at line 215 of file gost_sign.c.
BIGNUM* getbnfrombuf | ( | const unsigned char * | buf, |
size_t | len | ||
) |
Definition at line 294 of file gost_sign.c.
int gost94_compute_public | ( | DSA * | dsa | ) |
Definition at line 194 of file gost_sign.c.
Definition at line 51 of file gost_sign.c.
Definition at line 135 of file gost_sign.c.
int gost_sign_keygen | ( | DSA * | dsa | ) |
Definition at line 242 of file gost_sign.c.
BIGNUM* hashsum2bn | ( | const unsigned char * | dgst | ) |
Definition at line 282 of file gost_sign.c.
int pack_sign_cp | ( | DSA_SIG * | s, |
int | order, | ||
unsigned char * | sig, | ||
size_t * | siglen | ||
) |
Definition at line 119 of file gost_sign.c.
int store_bignum | ( | BIGNUM * | bn, |
unsigned char * | buf, | ||
int | len | ||
) |
Definition at line 314 of file gost_sign.c.
DSA_SIG* unpack_cp_signature | ( | const unsigned char * | sig, |
size_t | siglen | ||
) |
Definition at line 266 of file gost_sign.c.