FD.io VPP
v20.01-48-g3e0dafb74
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | cipher_context_t |
struct | aead_crypto_context_t |
Typedefs | |
typedef void(* | quicly_do_transform_fn) (ptls_cipher_context_t *, void *, const void *, size_t) |
Functions | |
static void | quic_crypto_cipher_do_init (ptls_cipher_context_t *_ctx, const void *iv) |
static void | quic_crypto_cipher_dispose (ptls_cipher_context_t *_ctx) |
static void | quic_crypto_cipher_encrypt (ptls_cipher_context_t *_ctx, void *output, const void *input, size_t _len) |
static int | quic_crypto_cipher_setup_crypto (ptls_cipher_context_t *_ctx, int is_enc, const void *key, const EVP_CIPHER *cipher, quicly_do_transform_fn do_transform) |
static int | aes128ctr_setup_crypto (ptls_cipher_context_t *ctx, int is_enc, const void *key) |
static int | aes256ctr_setup_crypto (ptls_cipher_context_t *ctx, int is_enc, const void *key) |
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 | |
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 [] |
typedef void(* quicly_do_transform_fn) (ptls_cipher_context_t *, void *, const void *, size_t) |
Definition at line 24 of file quic_crypto.c.
|
static |
|
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 193 of file quic_crypto.c.
|
static |
size_t quic_crypto_aead_encrypt_final | ( | ptls_aead_context_t * | _ctx, |
void * | output | ||
) |
Definition at line 182 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 140 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 | ||
) |
|
static |
Definition at line 239 of file quic_crypto.c.
|
static |
|
static |
Definition at line 44 of file quic_crypto.c.
|
static |
Definition at line 76 of file quic_crypto.c.
|
static |
Definition at line 90 of file quic_crypto.c.
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 341 of file quic_crypto.c.
vnet_crypto_main_t* cm = &crypto_main |
Definition at line 41 of file quic_crypto.c.
ptls_cipher_algorithm_t quic_crypto_aes128ctr |
Definition at line 287 of file quic_crypto.c.
ptls_aead_algorithm_t quic_crypto_aes128gcm |
Definition at line 302 of file quic_crypto.c.
ptls_cipher_suite_t quic_crypto_aes128gcmsha256 |
Definition at line 322 of file quic_crypto.c.
ptls_cipher_algorithm_t quic_crypto_aes256ctr |
Definition at line 294 of file quic_crypto.c.
ptls_aead_algorithm_t quic_crypto_aes256gcm |
Definition at line 312 of file quic_crypto.c.
ptls_cipher_suite_t quic_crypto_aes256gcmsha384 |
Definition at line 328 of file quic_crypto.c.
ptls_cipher_suite_t* quic_crypto_cipher_suites[] |
Definition at line 334 of file quic_crypto.c.