FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | crypto_key_ |
struct | cipher_context_t |
struct | aead_crypto_context_t |
Macros | |
#define | QUICLY_EPOCH_1RTT 3 |
Typedefs | |
typedef struct crypto_key_ | crypto_key_t |
Functions | |
quic_ctx_t * | quic_get_conn_ctx (quicly_conn_t *conn) |
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 **header_protect_ctx, ptls_aead_context_t **packet_protect_ctx, ptls_aead_algorithm_t *aead, ptls_hash_algorithm_t *hash, const void *secret) |
static u32 | quic_crypto_set_key (crypto_key_t *key) |
static size_t | quic_crypto_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_decrypt_packet (quic_ctx_t *qctx, quic_rx_packet_ctx_t *pctx) |
void | quic_crypto_encrypt_packet (struct st_quicly_crypto_engine_t *engine, quicly_conn_t *conn, ptls_cipher_context_t *header_protect_ctx, ptls_aead_context_t *packet_protect_ctx, ptls_iovec_t datagram, size_t first_byte_at, size_t payload_from, uint64_t packet_number, int coalesced) |
static int | quic_crypto_cipher_setup_crypto (ptls_cipher_context_t *_ctx, int is_enc, const void *key, const EVP_CIPHER *cipher) |
static int | quic_crypto_aes128ctr_setup_crypto (ptls_cipher_context_t *ctx, int is_enc, const void *key) |
static int | quic_crypto_aes256ctr_setup_crypto (ptls_cipher_context_t *ctx, int is_enc, const void *key) |
static int | quic_crypto_aead_setup_crypto (ptls_aead_context_t *_ctx, int is_enc, const void *key, const void *iv, const EVP_CIPHER *cipher) |
static int | quic_crypto_aead_aes128gcm_setup_crypto (ptls_aead_context_t *ctx, int is_enc, const void *key, const void *iv) |
static int | quic_crypto_aead_aes256gcm_setup_crypto (ptls_aead_context_t *ctx, int is_enc, const void *key, const void *iv) |
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_cipher_algorithm_t | quic_crypto_aes128ctr |
ptls_cipher_algorithm_t | quic_crypto_aes256ctr |
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 struct crypto_key_ crypto_key_t |
|
static |
|
static |
|
static |
Definition at line 151 of file quic_crypto.c.
|
static |
|
static |
|
static |
|
static |
void quic_crypto_decrypt_packet | ( | quic_ctx_t * | qctx, |
quic_rx_packet_ctx_t * | pctx | ||
) |
Definition at line 179 of file quic_crypto.c.
void quic_crypto_encrypt_packet | ( | struct st_quicly_crypto_engine_t * | engine, |
quicly_conn_t * | conn, | ||
ptls_cipher_context_t * | header_protect_ctx, | ||
ptls_aead_context_t * | packet_protect_ctx, | ||
ptls_iovec_t | datagram, | ||
size_t | first_byte_at, | ||
size_t | payload_from, | ||
uint64_t | packet_number, | ||
int | coalesced | ||
) |
|
static |
Definition at line 128 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 447 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 28 of file quic_crypto.c.
ptls_cipher_algorithm_t quic_crypto_aes128ctr |
Definition at line 489 of file quic_crypto.c.
ptls_aead_algorithm_t quic_crypto_aes128gcm |
Definition at line 507 of file quic_crypto.c.
ptls_cipher_suite_t quic_crypto_aes128gcmsha256 |
Definition at line 533 of file quic_crypto.c.
ptls_cipher_algorithm_t quic_crypto_aes256ctr |
Definition at line 498 of file quic_crypto.c.
ptls_aead_algorithm_t quic_crypto_aes256gcm |
Definition at line 520 of file quic_crypto.c.
ptls_cipher_suite_t quic_crypto_aes256gcmsha384 |
Definition at line 538 of file quic_crypto.c.
ptls_cipher_suite_t* quic_crypto_cipher_suites[] |
Definition at line 543 of file quic_crypto.c.
quicly_crypto_engine_t quic_crypto_engine |
Definition at line 547 of file quic_crypto.c.
quic_main_t quic_main |