OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
gost_sign.c File Reference
#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_SIGgost_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_SIGunpack_cp_signature (const unsigned char *sig, size_t siglen)
 
BIGNUMhashsum2bn (const unsigned char *dgst)
 
BIGNUMgetbnfrombuf (const unsigned char *buf, size_t len)
 
int store_bignum (BIGNUM *bn, unsigned char *buf, int len)
 

Macro Definition Documentation

#define dump_dsa_sig (   a,
  b 
)

Definition at line 45 of file gost_sign.c.

#define dump_signature (   a,
  b,
  c 
)

Definition at line 44 of file gost_sign.c.

#define dump_signature (   a,
  b,
  c 
)

Definition at line 44 of file gost_sign.c.

Function Documentation

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.

DSA_SIG* gost_do_sign ( const unsigned char *  dgst,
int  dlen,
DSA dsa 
)

Definition at line 51 of file gost_sign.c.

int gost_do_verify ( const unsigned char *  dgst,
int  dgst_len,
DSA_SIG sig,
DSA dsa 
)

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.