#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"
Go to the source code of this file.
|
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) |
|
◆ generate_key_block()
◆ 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 |
◆ 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 |
|
) |
| |
◆ SSL_generate_key_block()
◆ SSL_get_key_block_len()
size_t SSL_get_key_block_len |
( |
const SSL * |
ssl | ) |
|
◆ tls1_change_cipher_state()
◆ tls1_configure_aead()
◆ tls1_generate_master_secret()
◆ tls1_prf()