Go to the source code of this file.
|
static void | vpp_crypto_cipher_do_init (ptls_cipher_context_t *_ctx, const void *iv) |
|
static void | vpp_crypto_cipher_dispose (ptls_cipher_context_t *_ctx) |
|
static void | vpp_crypto_cipher_encrypt (ptls_cipher_context_t *_ctx, void *output, const void *input, size_t _len) |
|
static int | vpp_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) |
|
size_t | vpp_crypto_aead_encrypt (ptls_aead_context_t *_ctx, void *output, const void *input, size_t inlen, uint64_t seq, const void *iv, const void *aad, size_t aadlen) |
|
size_t | vpp_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 | vpp_crypto_aead_dispose_crypto (ptls_aead_context_t *_ctx) |
|
static int | vpp_crypto_aead_setup_crypto (ptls_aead_context_t *_ctx, int is_enc, const void *key, const EVP_CIPHER *cipher) |
|
static int | vpp_crypto_aead_aes128gcm_setup_crypto (ptls_aead_context_t *ctx, int is_enc, const void *key) |
|
static int | vpp_crypto_aead_aes256gcm_setup_crypto (ptls_aead_context_t *ctx, int is_enc, const void *key) |
|
typedef void(* quicly_do_transform_fn) (ptls_cipher_context_t *, void *, const void *, size_t) |
static int aes128ctr_setup_crypto |
( |
ptls_cipher_context_t * |
ctx, |
|
|
int |
is_enc, |
|
|
const void * |
key |
|
) |
| |
|
static |
static int aes256ctr_setup_crypto |
( |
ptls_cipher_context_t * |
ctx, |
|
|
int |
is_enc, |
|
|
const void * |
key |
|
) |
| |
|
static |
static int vpp_crypto_aead_aes128gcm_setup_crypto |
( |
ptls_aead_context_t * |
ctx, |
|
|
int |
is_enc, |
|
|
const void * |
key |
|
) |
| |
|
static |
static int vpp_crypto_aead_aes256gcm_setup_crypto |
( |
ptls_aead_context_t * |
ctx, |
|
|
int |
is_enc, |
|
|
const void * |
key |
|
) |
| |
|
static |
size_t vpp_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 vpp_crypto_aead_dispose_crypto |
( |
ptls_aead_context_t * |
_ctx | ) |
|
|
static |
size_t vpp_crypto_aead_encrypt |
( |
ptls_aead_context_t * |
_ctx, |
|
|
void * |
output, |
|
|
const void * |
input, |
|
|
size_t |
inlen, |
|
|
uint64_t |
seq, |
|
|
const void * |
iv, |
|
|
const void * |
aad, |
|
|
size_t |
aadlen |
|
) |
| |
static int vpp_crypto_aead_setup_crypto |
( |
ptls_aead_context_t * |
_ctx, |
|
|
int |
is_enc, |
|
|
const void * |
key, |
|
|
const EVP_CIPHER * |
cipher |
|
) |
| |
|
static |
static void vpp_crypto_cipher_dispose |
( |
ptls_cipher_context_t * |
_ctx | ) |
|
|
static |
static void vpp_crypto_cipher_do_init |
( |
ptls_cipher_context_t * |
_ctx, |
|
|
const void * |
iv |
|
) |
| |
|
static |
static void vpp_crypto_cipher_encrypt |
( |
ptls_cipher_context_t * |
_ctx, |
|
|
void * |
output, |
|
|
const void * |
input, |
|
|
size_t |
_len |
|
) |
| |
|
static |
static int vpp_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 |
ptls_cipher_algorithm_t vpp_crypto_aes128ctr |
Initial value:= { "AES128-CTR",
PTLS_AES128_KEY_SIZE,
1, PTLS_AES_IV_SIZE,
}
static int aes128ctr_setup_crypto(ptls_cipher_context_t *ctx, int is_enc, const void *key)
Definition at line 277 of file quic_crypto.c.
ptls_aead_algorithm_t vpp_crypto_aes128gcm |
Initial value:= { "AES128-GCM",
PTLS_AES128_KEY_SIZE,
PTLS_AESGCM_IV_SIZE,
PTLS_AESGCM_TAG_SIZE,
}
static int vpp_crypto_aead_aes128gcm_setup_crypto(ptls_aead_context_t *ctx, int is_enc, const void *key)
ptls_cipher_algorithm_t vpp_crypto_aes128ctr
Definition at line 292 of file quic_crypto.c.
ptls_cipher_suite_t vpp_crypto_aes128gcmsha256 |
Initial value:=
{ PTLS_CIPHER_SUITE_AES_128_GCM_SHA256,
&ptls_openssl_sha256
}
ptls_aead_algorithm_t vpp_crypto_aes128gcm
Definition at line 312 of file quic_crypto.c.
ptls_cipher_algorithm_t vpp_crypto_aes256ctr |
Initial value:= { "AES256-CTR",
PTLS_AES256_KEY_SIZE,
1 ,
PTLS_AES_IV_SIZE,
}
static int aes256ctr_setup_crypto(ptls_cipher_context_t *ctx, int is_enc, const void *key)
Definition at line 284 of file quic_crypto.c.
ptls_aead_algorithm_t vpp_crypto_aes256gcm |
Initial value:= { "AES256-GCM",
PTLS_AES256_KEY_SIZE,
PTLS_AESGCM_IV_SIZE,
PTLS_AESGCM_TAG_SIZE,
}
static int vpp_crypto_aead_aes256gcm_setup_crypto(ptls_aead_context_t *ctx, int is_enc, const void *key)
ptls_cipher_algorithm_t vpp_crypto_aes256ctr
Definition at line 302 of file quic_crypto.c.
ptls_cipher_suite_t vpp_crypto_aes256gcmsha384 |
Initial value:=
{ PTLS_CIPHER_SUITE_AES_256_GCM_SHA384,
&ptls_openssl_sha384
}
ptls_aead_algorithm_t vpp_crypto_aes256gcm
Definition at line 318 of file quic_crypto.c.
ptls_cipher_suite_t* vpp_crypto_cipher_suites[] |
Initial value:=
}
ptls_cipher_suite_t vpp_crypto_aes256gcmsha384
ptls_cipher_suite_t vpp_crypto_aes128gcmsha256
Definition at line 324 of file quic_crypto.c.