OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
dsa_ossl.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/sha.h>
#include <openssl/dsa.h>
#include <openssl/rand.h>
#include <openssl/asn1.h>

Go to the source code of this file.

Macros

#define DSA_MOD_EXP(err_instr, dsa, rr, a1, p1, a2, p2, m, ctx, in_mont)
 
#define DSA_BN_MOD_EXP(err_instr, dsa, r, a, p, m, ctx, m_ctx)
 

Functions

const DSA_METHODDSA_OpenSSL (void)
 

Macro Definition Documentation

#define DSA_BN_MOD_EXP (   err_instr,
  dsa,
  r,
  a,
  p,
  m,
  ctx,
  m_ctx 
)
Value:
do { \
int _tmp_res53; \
if((dsa)->meth->bn_mod_exp) \
_tmp_res53 = (dsa)->meth->bn_mod_exp((dsa), (r), (a), (p), \
(m), (ctx), (m_ctx)); \
else \
_tmp_res53 = BN_mod_exp_mont((r), (a), (p), (m), (ctx), (m_ctx)); \
if(!_tmp_res53) err_instr; \
} while(0)

Definition at line 115 of file dsa_ossl.c.

#define DSA_MOD_EXP (   err_instr,
  dsa,
  rr,
  a1,
  p1,
  a2,
  p2,
  m,
  ctx,
  in_mont 
)
Value:
do { \
int _tmp_res53; \
if((dsa)->meth->dsa_mod_exp) \
_tmp_res53 = (dsa)->meth->dsa_mod_exp((dsa), (rr), (a1), (p1), \
(a2), (p2), (m), (ctx), (in_mont)); \
else \
_tmp_res53 = BN_mod_exp2_mont((rr), (a1), (p1), (a2), (p2), \
(m), (ctx), (in_mont)); \
if(!_tmp_res53) err_instr; \
} while(0)

Definition at line 104 of file dsa_ossl.c.

Function Documentation

const DSA_METHOD* DSA_OpenSSL ( void  )

Definition at line 126 of file dsa_ossl.c.