comparison src/event/quic/ngx_event_quic_protection.c @ 9131:f73dfa6c0696

QUIC: removed TLS1_3_CK_* macros wrap up. They were preserved in 172705615d04 to ease transition from older BoringSSL.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 16 Jun 2023 17:13:29 +0400
parents 0f23488a9f5a
children 2880f60a80c3
comparison
equal deleted inserted replaced
9130:0f23488a9f5a 9131:f73dfa6c0696
12 12
13 /* RFC 9001, 5.4.1. Header Protection Application: 5-byte mask */ 13 /* RFC 9001, 5.4.1. Header Protection Application: 5-byte mask */
14 #define NGX_QUIC_HP_LEN 5 14 #define NGX_QUIC_HP_LEN 5
15 15
16 #define NGX_QUIC_AES_128_KEY_LEN 16 16 #define NGX_QUIC_AES_128_KEY_LEN 16
17
18 #ifndef TLS1_3_CK_AES_128_GCM_SHA256
19 #define TLS1_3_CK_AES_128_GCM_SHA256 0x03001301
20 #define TLS1_3_CK_AES_256_GCM_SHA384 0x03001302
21 #define TLS1_3_CK_CHACHA20_POLY1305_SHA256 \
22 0x03001303
23 #endif
24 17
25 18
26 static ngx_int_t ngx_hkdf_expand(u_char *out_key, size_t out_len, 19 static ngx_int_t ngx_hkdf_expand(u_char *out_key, size_t out_len,
27 const EVP_MD *digest, const u_char *prk, size_t prk_len, 20 const EVP_MD *digest, const u_char *prk, size_t prk_len,
28 const u_char *info, size_t info_len); 21 const u_char *info, size_t info_len);