Macros | Functions
dh.c File Reference
#include <openssl/dh.h>
#include <string.h>
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/digest.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include "../../internal.h"
#include "../bn/internal.h"
Include dependency graph for dh.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OPENSSL_DH_MAX_MODULUS_BITS   10000
 

Functions

static int dh_compute_key (DH *dh, BIGNUM *out_shared_key, const BIGNUM *peers_key, BN_CTX *ctx)
 
int DH_compute_key (unsigned char *out, const BIGNUM *peers_key, DH *dh)
 
int DH_compute_key_hashed (DH *dh, uint8_t *out, size_t *out_len, size_t max_out_len, const BIGNUM *peers_key, const EVP_MD *digest)
 
int DH_compute_key_padded (unsigned char *out, const BIGNUM *peers_key, DH *dh)
 
void DH_free (DH *dh)
 
int DH_generate_key (DH *dh)
 
const BIGNUMDH_get0_g (const DH *dh)
 
void DH_get0_key (const DH *dh, const BIGNUM **out_pub_key, const BIGNUM **out_priv_key)
 
const BIGNUMDH_get0_p (const DH *dh)
 
void DH_get0_pqg (const DH *dh, const BIGNUM **out_p, const BIGNUM **out_q, const BIGNUM **out_g)
 
const BIGNUMDH_get0_priv_key (const DH *dh)
 
const BIGNUMDH_get0_pub_key (const DH *dh)
 
const BIGNUMDH_get0_q (const DH *dh)
 
DHDH_get_rfc7919_2048 (void)
 
DHDH_new (void)
 
unsigned DH_num_bits (const DH *dh)
 
int DH_set0_key (DH *dh, BIGNUM *pub_key, BIGNUM *priv_key)
 
int DH_set0_pqg (DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
 
int DH_set_length (DH *dh, unsigned priv_length)
 
int DH_size (const DH *dh)
 
int DH_up_ref (DH *dh)
 

Macro Definition Documentation

◆ OPENSSL_DH_MAX_MODULUS_BITS

#define OPENSSL_DH_MAX_MODULUS_BITS   10000

Definition at line 71 of file dh.c.

Function Documentation

◆ dh_compute_key()

static int dh_compute_key ( DH dh,
BIGNUM out_shared_key,
const BIGNUM peers_key,
BN_CTX ctx 
)
static

Definition at line 275 of file dh.c.

◆ DH_compute_key()

int DH_compute_key ( unsigned char *  out,
const BIGNUM peers_key,
DH dh 
)

Definition at line 346 of file dh.c.

◆ DH_compute_key_hashed()

int DH_compute_key_hashed ( DH dh,
uint8_t out,
size_t *  out_len,
size_t  max_out_len,
const BIGNUM peers_key,
const EVP_MD digest 
)

Definition at line 364 of file dh.c.

◆ DH_compute_key_padded()

int DH_compute_key_padded ( unsigned char *  out,
const BIGNUM peers_key,
DH dh 
)

Definition at line 325 of file dh.c.

◆ DH_free()

void DH_free ( DH dh)

Definition at line 89 of file dh.c.

◆ DH_generate_key()

int DH_generate_key ( DH dh)

Definition at line 188 of file dh.c.

◆ DH_get0_g()

const BIGNUM* DH_get0_g ( const DH dh)

Definition at line 120 of file dh.c.

◆ DH_get0_key()

void DH_get0_key ( const DH dh,
const BIGNUM **  out_pub_key,
const BIGNUM **  out_priv_key 
)

Definition at line 122 of file dh.c.

◆ DH_get0_p()

const BIGNUM* DH_get0_p ( const DH dh)

Definition at line 116 of file dh.c.

◆ DH_get0_pqg()

void DH_get0_pqg ( const DH dh,
const BIGNUM **  out_p,
const BIGNUM **  out_q,
const BIGNUM **  out_g 
)

Definition at line 146 of file dh.c.

◆ DH_get0_priv_key()

const BIGNUM* DH_get0_priv_key ( const DH dh)

Definition at line 114 of file dh.c.

◆ DH_get0_pub_key()

const BIGNUM* DH_get0_pub_key ( const DH dh)

Definition at line 112 of file dh.c.

◆ DH_get0_q()

const BIGNUM* DH_get0_q ( const DH dh)

Definition at line 118 of file dh.c.

◆ DH_get_rfc7919_2048()

DH* DH_get_rfc7919_2048 ( void  )

Definition at line 408 of file dh.c.

◆ DH_new()

DH* DH_new ( void  )

Definition at line 73 of file dh.c.

◆ DH_num_bits()

unsigned DH_num_bits ( const DH dh)

Definition at line 401 of file dh.c.

◆ DH_set0_key()

int DH_set0_key ( DH dh,
BIGNUM pub_key,
BIGNUM priv_key 
)

Definition at line 132 of file dh.c.

◆ DH_set0_pqg()

int DH_set0_pqg ( DH dh,
BIGNUM p,
BIGNUM q,
BIGNUM g 
)

Definition at line 159 of file dh.c.

◆ DH_set_length()

int DH_set_length ( DH dh,
unsigned  priv_length 
)

Definition at line 183 of file dh.c.

◆ DH_size()

int DH_size ( const DH dh)

Definition at line 399 of file dh.c.

◆ DH_up_ref()

int DH_up_ref ( DH dh)

Definition at line 403 of file dh.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:10