Lines Matching refs:aead
46 ngtcp2_crypto_aead *ngtcp2_crypto_aead_aes_128_gcm(ngtcp2_crypto_aead *aead) {
47 return ngtcp2_crypto_aead_init(aead, (void *)wolfSSL_EVP_aes_128_gcm());
56 ngtcp2_crypto_aead_init(&ctx->aead, (void *)wolfSSL_EVP_aes_128_gcm());
64 ngtcp2_crypto_aead *ngtcp2_crypto_aead_init(ngtcp2_crypto_aead *aead,
66 aead->native_handle = aead_native_handle;
67 aead->max_overhead = wolfSSL_quic_get_aead_tag_len(
69 return aead;
72 ngtcp2_crypto_aead *ngtcp2_crypto_aead_retry(ngtcp2_crypto_aead *aead) {
73 return ngtcp2_crypto_aead_init(aead, (void *)wolfSSL_EVP_aes_128_gcm());
77 const WOLFSSL_EVP_CIPHER *aead = wolfSSL_quic_get_aead(ssl);
79 if (wolfSSL_quic_aead_is_gcm(aead)) {
82 if (wolfSSL_quic_aead_is_chacha20(aead)) {
85 if (wolfSSL_quic_aead_is_ccm(aead)) {
92 const WOLFSSL_EVP_CIPHER *aead = wolfSSL_quic_get_aead(ssl);
94 if (wolfSSL_quic_aead_is_gcm(aead)) {
97 if (wolfSSL_quic_aead_is_chacha20(aead)) {
100 if (wolfSSL_quic_aead_is_ccm(aead)) {
110 ngtcp2_crypto_aead_init(&ctx->aead, (void *)wolfSSL_quic_get_aead(ssl));
132 static size_t crypto_aead_keylen(const WOLFSSL_EVP_CIPHER *aead) {
133 return (size_t)wolfSSL_EVP_Cipher_key_length(aead);
136 size_t ngtcp2_crypto_aead_keylen(const ngtcp2_crypto_aead *aead) {
137 return crypto_aead_keylen(aead->native_handle);
140 static size_t crypto_aead_noncelen(const WOLFSSL_EVP_CIPHER *aead) {
141 return (size_t)wolfSSL_EVP_CIPHER_iv_length(aead);
144 size_t ngtcp2_crypto_aead_noncelen(const ngtcp2_crypto_aead *aead) {
145 return crypto_aead_noncelen(aead->native_handle);
149 const ngtcp2_crypto_aead *aead,
151 const WOLFSSL_EVP_CIPHER *cipher = aead->native_handle;
166 const ngtcp2_crypto_aead *aead,
168 const WOLFSSL_EVP_CIPHER *cipher = aead->native_handle;
241 int ngtcp2_crypto_encrypt(uint8_t *dest, const ngtcp2_crypto_aead *aead,
246 (void)aead;
257 int ngtcp2_crypto_decrypt(uint8_t *dest, const ngtcp2_crypto_aead *aead,
262 (void)aead;