dsa.h (59191) | dsa.h (68651) |
---|---|
1/* crypto/dsa/dsa.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 51 unchanged lines hidden (view full) --- 60 * The DSS routines are based on patches supplied by 61 * Steven Schoch <schoch@sheba.arc.nasa.gov>. He basically did the 62 * work and I have just tweaked them a little to fit into my 63 * stylistic vision for SSLeay :-) */ 64 65#ifndef HEADER_DSA_H 66#define HEADER_DSA_H 67 | 1/* crypto/dsa/dsa.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 51 unchanged lines hidden (view full) --- 60 * The DSS routines are based on patches supplied by 61 * Steven Schoch <schoch@sheba.arc.nasa.gov>. He basically did the 62 * work and I have just tweaked them a little to fit into my 63 * stylistic vision for SSLeay :-) */ 64 65#ifndef HEADER_DSA_H 66#define HEADER_DSA_H 67 |
68#ifdef __cplusplus 69extern "C" { 70#endif 71 | |
72#ifdef NO_DSA 73#error DSA is disabled. 74#endif 75 | 68#ifdef NO_DSA 69#error DSA is disabled. 70#endif 71 |
72#ifndef NO_BIO 73#include <openssl/bio.h> 74#endif |
|
76#include <openssl/bn.h> 77#include <openssl/crypto.h> 78#ifndef NO_DH 79# include <openssl/dh.h> 80#endif 81 82#define DSA_FLAG_CACHE_MONT_P 0x01 83 | 75#include <openssl/bn.h> 76#include <openssl/crypto.h> 77#ifndef NO_DH 78# include <openssl/dh.h> 79#endif 80 81#define DSA_FLAG_CACHE_MONT_P 0x01 82 |
83#ifdef __cplusplus 84extern "C" { 85#endif 86 |
|
84typedef struct dsa_st DSA; 85 86typedef struct DSA_SIG_st 87 { 88 BIGNUM *r; 89 BIGNUM *s; 90 } DSA_SIG; 91 --- 91 unchanged lines hidden (view full) --- 183DSA * DSA_generate_parameters(int bits, unsigned char *seed,int seed_len, 184 int *counter_ret, unsigned long *h_ret,void 185 (*callback)(int, int, void *),void *cb_arg); 186int DSA_generate_key(DSA *a); 187int i2d_DSAPublicKey(DSA *a, unsigned char **pp); 188int i2d_DSAPrivateKey(DSA *a, unsigned char **pp); 189int i2d_DSAparams(DSA *a,unsigned char **pp); 190 | 87typedef struct dsa_st DSA; 88 89typedef struct DSA_SIG_st 90 { 91 BIGNUM *r; 92 BIGNUM *s; 93 } DSA_SIG; 94 --- 91 unchanged lines hidden (view full) --- 186DSA * DSA_generate_parameters(int bits, unsigned char *seed,int seed_len, 187 int *counter_ret, unsigned long *h_ret,void 188 (*callback)(int, int, void *),void *cb_arg); 189int DSA_generate_key(DSA *a); 190int i2d_DSAPublicKey(DSA *a, unsigned char **pp); 191int i2d_DSAPrivateKey(DSA *a, unsigned char **pp); 192int i2d_DSAparams(DSA *a,unsigned char **pp); 193 |
191#ifdef HEADER_BIO_H | 194#ifndef NO_BIO |
192int DSAparams_print(BIO *bp, DSA *x); 193int DSA_print(BIO *bp, DSA *x, int off); 194#endif 195#ifndef NO_FP_API 196int DSAparams_print_fp(FILE *fp, DSA *x); 197int DSA_print_fp(FILE *bp, DSA *x, int off); 198#endif 199 --- 42 unchanged lines hidden --- | 195int DSAparams_print(BIO *bp, DSA *x); 196int DSA_print(BIO *bp, DSA *x, int off); 197#endif 198#ifndef NO_FP_API 199int DSAparams_print_fp(FILE *fp, DSA *x); 200int DSA_print_fp(FILE *bp, DSA *x, int off); 201#endif 202 --- 42 unchanged lines hidden --- |