dh.h (160814) | dh.h (162911) |
---|---|
1/* crypto/dh/dh.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 * --- 59 unchanged lines hidden (view full) --- 68#ifndef OPENSSL_NO_BIO 69#include <openssl/bio.h> 70#endif 71#include <openssl/ossl_typ.h> 72#ifndef OPENSSL_NO_DEPRECATED 73#include <openssl/bn.h> 74#endif 75 | 1/* crypto/dh/dh.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 * --- 59 unchanged lines hidden (view full) --- 68#ifndef OPENSSL_NO_BIO 69#include <openssl/bio.h> 70#endif 71#include <openssl/ossl_typ.h> 72#ifndef OPENSSL_NO_DEPRECATED 73#include <openssl/bn.h> 74#endif 75 |
76#ifndef OPENSSL_DH_MAX_MODULUS_BITS 77# define OPENSSL_DH_MAX_MODULUS_BITS 10000 78#endif 79 |
|
76#define DH_FLAG_CACHE_MONT_P 0x01 77#define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 78 * implementation now uses constant time 79 * modular exponentiation for secret exponents 80 * by default. This flag causes the 81 * faster variable sliding window method to 82 * be used for all exponents. 83 */ --- 132 unchanged lines hidden (view full) --- 216#define DH_F_DH_BUILTIN_GENPARAMS 106 217#define DH_F_DH_NEW_METHOD 105 218#define DH_F_GENERATE_KEY 103 219#define DH_F_GENERATE_PARAMETERS 104 220 221/* Reason codes. */ 222#define DH_R_BAD_GENERATOR 101 223#define DH_R_INVALID_PUBKEY 102 | 80#define DH_FLAG_CACHE_MONT_P 0x01 81#define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 82 * implementation now uses constant time 83 * modular exponentiation for secret exponents 84 * by default. This flag causes the 85 * faster variable sliding window method to 86 * be used for all exponents. 87 */ --- 132 unchanged lines hidden (view full) --- 220#define DH_F_DH_BUILTIN_GENPARAMS 106 221#define DH_F_DH_NEW_METHOD 105 222#define DH_F_GENERATE_KEY 103 223#define DH_F_GENERATE_PARAMETERS 104 224 225/* Reason codes. */ 226#define DH_R_BAD_GENERATOR 101 227#define DH_R_INVALID_PUBKEY 102 |
228#define DH_R_MODULUS_TOO_LARGE 103 |
|
224#define DH_R_NO_PRIVATE_VALUE 100 225 226#ifdef __cplusplus 227} 228#endif 229#endif | 229#define DH_R_NO_PRIVATE_VALUE 100 230 231#ifdef __cplusplus 232} 233#endif 234#endif |