mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-12 09:29:40 +00:00
39 lines
1011 B
C
39 lines
1011 B
C
|
/*
|
||
|
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
||
|
*
|
||
|
* Licensed under the OpenSSL licenses, (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
* https://www.openssl.org/source/license.html
|
||
|
* or in the file LICENSE in the source distribution.
|
||
|
*/
|
||
|
|
||
|
#include <openssl/dh.h>
|
||
|
|
||
|
struct dh_st {
|
||
|
/*
|
||
|
* This first argument is used to pick up errors when a DH is passed
|
||
|
* instead of a EVP_PKEY
|
||
|
*/
|
||
|
int pad;
|
||
|
int version;
|
||
|
BIGNUM *p;
|
||
|
BIGNUM *g;
|
||
|
long length; /* optional */
|
||
|
BIGNUM *pub_key; /* g^x % p */
|
||
|
BIGNUM *priv_key; /* x */
|
||
|
int flags;
|
||
|
BN_MONT_CTX *method_mont_p;
|
||
|
/* Place holders if we want to do X9.42 DH */
|
||
|
BIGNUM *q;
|
||
|
BIGNUM *j;
|
||
|
unsigned char *seed;
|
||
|
int seedlen;
|
||
|
BIGNUM *counter;
|
||
|
int references;
|
||
|
CRYPTO_EX_DATA ex_data;
|
||
|
const DH_METHOD *meth;
|
||
|
ENGINE *engine;
|
||
|
CRYPTO_RWLOCK *lock;
|
||
|
};
|