Functions
t1_enc.cc File Reference
#include <openssl/ssl.h>
#include <assert.h>
#include <string.h>
#include <utility>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/md5.h>
#include <openssl/mem.h>
#include <openssl/nid.h>
#include <openssl/rand.h>
#include "../crypto/fipsmodule/tls/internal.h"
#include "../crypto/internal.h"
#include "internal.h"
Include dependency graph for t1_enc.cc:

Go to the source code of this file.

Functions

static bool generate_key_block (const SSL *ssl, Span< uint8_t > out, const SSL_SESSION *session)
 
static bool get_key_block_lengths (const SSL *ssl, size_t *out_mac_secret_len, size_t *out_key_len, size_t *out_iv_len, const SSL_CIPHER *cipher)
 
int SSL_export_keying_material (SSL *ssl, uint8_t *out, size_t out_len, const char *label, size_t label_len, const uint8_t *context, size_t context_len, int use_context)
 
int SSL_generate_key_block (const SSL *ssl, uint8_t *out, size_t out_len)
 
size_t SSL_get_key_block_len (const SSL *ssl)
 
bool tls1_change_cipher_state (SSL_HANDSHAKE *hs, evp_aead_direction_t direction)
 
bool tls1_configure_aead (SSL *ssl, evp_aead_direction_t direction, Array< uint8_t > *key_block_cache, const SSL_SESSION *session, Span< const uint8_t > iv_override)
 
int tls1_generate_master_secret (SSL_HANDSHAKE *hs, uint8_t *out, Span< const uint8_t > premaster)
 
BSSL_NAMESPACE_BEGIN bool tls1_prf (const EVP_MD *digest, Span< uint8_t > out, Span< const uint8_t > secret, Span< const char > label, Span< const uint8_t > seed1, Span< const uint8_t > seed2)
 

Function Documentation

◆ generate_key_block()

static bool generate_key_block ( const SSL ssl,
Span< uint8_t out,
const SSL_SESSION session 
)
static

Definition at line 192 of file t1_enc.cc.

◆ get_key_block_lengths()

static bool get_key_block_lengths ( const SSL ssl,
size_t *  out_mac_secret_len,
size_t *  out_key_len,
size_t *  out_iv_len,
const SSL_CIPHER cipher 
)
static

Definition at line 167 of file t1_enc.cc.

◆ SSL_export_keying_material()

int SSL_export_keying_material ( SSL ssl,
uint8_t out,
size_t  out_len,
const char *  label,
size_t  label_len,
const uint8_t context,
size_t  context_len,
int  use_context 
)

Definition at line 332 of file t1_enc.cc.

◆ SSL_generate_key_block()

int SSL_generate_key_block ( const SSL ssl,
uint8_t out,
size_t  out_len 
)

Definition at line 319 of file t1_enc.cc.

◆ SSL_get_key_block_len()

size_t SSL_get_key_block_len ( const SSL ssl)

Definition at line 303 of file t1_enc.cc.

◆ tls1_change_cipher_state()

bool tls1_change_cipher_state ( SSL_HANDSHAKE hs,
evp_aead_direction_t  direction 
)

Definition at line 264 of file t1_enc.cc.

◆ tls1_configure_aead()

bool tls1_configure_aead ( SSL ssl,
evp_aead_direction_t  direction,
Array< uint8_t > *  key_block_cache,
const SSL_SESSION session,
Span< const uint8_t iv_override 
)

Definition at line 205 of file t1_enc.cc.

◆ tls1_generate_master_secret()

int tls1_generate_master_secret ( SSL_HANDSHAKE hs,
uint8_t out,
Span< const uint8_t premaster 
)

Definition at line 270 of file t1_enc.cc.

◆ tls1_prf()

BSSL_NAMESPACE_BEGIN bool tls1_prf ( const EVP_MD digest,
Span< uint8_t out,
Span< const uint8_t secret,
Span< const char >  label,
Span< const uint8_t seed1,
Span< const uint8_t seed2 
)

Definition at line 158 of file t1_enc.cc.



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