![]() |
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Include dependency graph for quic_crypto.c: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 |
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 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 22 of file quic_crypto.c.
|
static |
|
static |
|
static |
Definition at line 118 of file quic_crypto.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 353 of file quic_crypto.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
Definition at line 299 of file quic_crypto.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void quic_crypto_decrypt_packet | ( | quic_ctx_t * | qctx, |
| quic_rx_packet_ctx_t * | pctx | ||
| ) |
Definition at line 146 of file quic_crypto.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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_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 412 of file quic_crypto.c.
Here is the call graph for this function:
Here is the caller graph for this function:| quic_ctx_t* quic_get_conn_ctx | ( | quicly_conn_t * | conn | ) |
| vnet_crypto_main_t* cm = &crypto_main |
Definition at line 26 of file quic_crypto.c.
| ptls_cipher_algorithm_t quic_crypto_aes128ctr |
Definition at line 454 of file quic_crypto.c.
| ptls_aead_algorithm_t quic_crypto_aes128gcm |
Definition at line 472 of file quic_crypto.c.
| ptls_cipher_suite_t quic_crypto_aes128gcmsha256 |
Definition at line 498 of file quic_crypto.c.
| ptls_cipher_algorithm_t quic_crypto_aes256ctr |
Definition at line 463 of file quic_crypto.c.
| ptls_aead_algorithm_t quic_crypto_aes256gcm |
Definition at line 485 of file quic_crypto.c.
| ptls_cipher_suite_t quic_crypto_aes256gcmsha384 |
Definition at line 503 of file quic_crypto.c.
| ptls_cipher_suite_t* quic_crypto_cipher_suites[] |
Definition at line 508 of file quic_crypto.c.
| quicly_crypto_engine_t quic_crypto_engine |
Definition at line 512 of file quic_crypto.c.
| quic_main_t quic_main |