FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | cipher_context_t |
struct | aead_crypto_context_t |
Macros | |
#define | QUICLY_EPOCH_1RTT 3 |
Typedefs | |
typedef void(* | quicly_do_transform_fn) (ptls_cipher_context_t *, void *, const void *, size_t) |
Functions | |
quic_ctx_t * | quic_get_conn_ctx (quicly_conn_t *conn) |
static size_t | quic_crypto_offload_aead_decrypt (quic_ctx_t *qctx, ptls_aead_context_t *_ctx, void *_output, const void *input, size_t inlen, uint64_t decrypted_pn, const void *aad, size_t aadlen) |
void | quic_crypto_batch_tx_packets (quic_crypto_batch_ctx_t *batch_ctx) |
void | quic_crypto_batch_rx_packets (quic_crypto_batch_ctx_t *batch_ctx) |
void | build_iv (ptls_aead_context_t *ctx, uint8_t *iv, uint64_t seq) |
static void | do_finalize_send_packet (ptls_cipher_context_t *hp, quicly_datagram_t *packet, size_t first_byte_at, size_t payload_from) |
void | quic_crypto_finalize_send_packet (quicly_datagram_t *packet) |
static int | quic_crypto_setup_cipher (quicly_crypto_engine_t *engine, quicly_conn_t *conn, size_t epoch, int is_enc, ptls_cipher_context_t **hp_ctx, ptls_aead_context_t **aead_ctx, ptls_aead_algorithm_t *aead, ptls_hash_algorithm_t *hash, const void *secret) |
void | quic_crypto_finalize_send_packet_cb (struct st_quicly_crypto_engine_t *engine, quicly_conn_t *conn, ptls_cipher_context_t *hp, ptls_aead_context_t *aead, quicly_datagram_t *packet, size_t first_byte_at, size_t payload_from, int coalesced) |
void | quic_crypto_decrypt_packet (quic_ctx_t *qctx, quic_rx_packet_ctx_t *pctx) |
void | quic_crypto_aead_encrypt_init (ptls_aead_context_t *_ctx, const void *iv, const void *aad, size_t aadlen) |
size_t | quic_crypto_aead_encrypt_update (ptls_aead_context_t *_ctx, void *output, const void *input, size_t inlen) |
size_t | quic_crypto_aead_encrypt_final (ptls_aead_context_t *_ctx, void *output) |
size_t | quic_crypto_aead_decrypt (ptls_aead_context_t *_ctx, void *_output, const void *input, size_t inlen, const void *iv, const void *aad, size_t aadlen) |
static void | quic_crypto_aead_dispose_crypto (ptls_aead_context_t *_ctx) |
static int | quic_crypto_aead_setup_crypto (ptls_aead_context_t *_ctx, int is_enc, const void *key, const EVP_CIPHER *cipher) |
static int | quic_crypto_aead_aes128gcm_setup_crypto (ptls_aead_context_t *ctx, int is_enc, const void *key) |
static int | quic_crypto_aead_aes256gcm_setup_crypto (ptls_aead_context_t *ctx, int is_enc, const void *key) |
int | quic_encrypt_ticket_cb (ptls_encrypt_ticket_t *_self, ptls_t *tls, int is_encrypt, ptls_buffer_t *dst, ptls_iovec_t src) |
Variables | |
quic_main_t | quic_main |
vnet_crypto_main_t * | cm = &crypto_main |
ptls_aead_algorithm_t | quic_crypto_aes128gcm |
ptls_aead_algorithm_t | quic_crypto_aes256gcm |
ptls_cipher_suite_t | quic_crypto_aes128gcmsha256 |
ptls_cipher_suite_t | quic_crypto_aes256gcmsha384 |
ptls_cipher_suite_t * | quic_crypto_cipher_suites [] |
quicly_crypto_engine_t | quic_crypto_engine |
#define QUICLY_EPOCH_1RTT 3 |
Definition at line 24 of file quic_crypto.c.
typedef void(* quicly_do_transform_fn) (ptls_cipher_context_t *, void *, const void *, size_t) |
Definition at line 29 of file quic_crypto.c.
void build_iv | ( | ptls_aead_context_t * | ctx, |
uint8_t * | iv, | ||
uint64_t | seq | ||
) |
|
static |
|
static |
|
static |
size_t quic_crypto_aead_decrypt | ( | ptls_aead_context_t * | _ctx, |
void * | _output, | ||
const void * | input, | ||
size_t | inlen, | ||
const void * | iv, | ||
const void * | aad, | ||
size_t | aadlen | ||
) |
Definition at line 510 of file quic_crypto.c.
|
static |
size_t quic_crypto_aead_encrypt_final | ( | ptls_aead_context_t * | _ctx, |
void * | output | ||
) |
Definition at line 495 of file quic_crypto.c.
void quic_crypto_aead_encrypt_init | ( | ptls_aead_context_t * | _ctx, |
const void * | iv, | ||
const void * | aad, | ||
size_t | aadlen | ||
) |
Definition at line 434 of file quic_crypto.c.
size_t quic_crypto_aead_encrypt_update | ( | ptls_aead_context_t * | _ctx, |
void * | output, | ||
const void * | input, | ||
size_t | inlen | ||
) |
Definition at line 471 of file quic_crypto.c.
|
static |
Definition at line 604 of file quic_crypto.c.
void quic_crypto_batch_rx_packets | ( | quic_crypto_batch_ctx_t * | batch_ctx | ) |
Definition at line 75 of file quic_crypto.c.
void quic_crypto_batch_tx_packets | ( | quic_crypto_batch_ctx_t * | batch_ctx | ) |
Definition at line 56 of file quic_crypto.c.
void quic_crypto_decrypt_packet | ( | quic_ctx_t * | qctx, |
quic_rx_packet_ctx_t * | pctx | ||
) |
Definition at line 247 of file quic_crypto.c.
void quic_crypto_finalize_send_packet | ( | quicly_datagram_t * | packet | ) |
Definition at line 137 of file quic_crypto.c.
void quic_crypto_finalize_send_packet_cb | ( | struct st_quicly_crypto_engine_t * | engine, |
quicly_conn_t * | conn, | ||
ptls_cipher_context_t * | hp, | ||
ptls_aead_context_t * | aead, | ||
quicly_datagram_t * | packet, | ||
size_t | first_byte_at, | ||
size_t | payload_from, | ||
int | coalesced | ||
) |
Definition at line 227 of file quic_crypto.c.
|
static |
Definition at line 553 of file quic_crypto.c.
|
static |
int quic_encrypt_ticket_cb | ( | ptls_encrypt_ticket_t * | _self, |
ptls_t * | tls, | ||
int | is_encrypt, | ||
ptls_buffer_t * | dst, | ||
ptls_iovec_t | src | ||
) |
Definition at line 728 of file quic_crypto.c.
quic_ctx_t* quic_get_conn_ctx | ( | quicly_conn_t * | conn | ) |
vnet_crypto_main_t* cm = &crypto_main |
Definition at line 53 of file quic_crypto.c.
ptls_aead_algorithm_t quic_crypto_aes128gcm |
Definition at line 679 of file quic_crypto.c.
ptls_cipher_suite_t quic_crypto_aes128gcmsha256 |
Definition at line 709 of file quic_crypto.c.
ptls_aead_algorithm_t quic_crypto_aes256gcm |
Definition at line 694 of file quic_crypto.c.
ptls_cipher_suite_t quic_crypto_aes256gcmsha384 |
Definition at line 714 of file quic_crypto.c.
ptls_cipher_suite_t* quic_crypto_cipher_suites[] |
Definition at line 719 of file quic_crypto.c.
quicly_crypto_engine_t quic_crypto_engine |
Definition at line 723 of file quic_crypto.c.
quic_main_t quic_main |