Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_protection.h @ 9126:29a6c0e11f75
QUIC: a new constant for AEAD tag length.
Previously used constant EVP_GCM_TLS_TAG_LEN had misleading name since it was
used not only with GCM, but also with CHACHAPOLY. Now a new constant
NGX_QUIC_TAG_LEN introduced. Luckily all AEAD algorithms used by QUIC have
the same tag length of 16.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 09 Jun 2023 10:25:54 +0400 |
parents | 7da4791e0264 |
children | 756ab66de10e |
comparison
equal
deleted
inserted
replaced
9125:31c8c1a713bc | 9126:29a6c0e11f75 |
---|---|
14 #include <ngx_event_quic_transport.h> | 14 #include <ngx_event_quic_transport.h> |
15 | 15 |
16 | 16 |
17 #define NGX_QUIC_ENCRYPTION_LAST ((ssl_encryption_application) + 1) | 17 #define NGX_QUIC_ENCRYPTION_LAST ((ssl_encryption_application) + 1) |
18 | 18 |
19 /* RFC 5116, 5.1 and RFC 8439, 2.3 for all supported ciphers */ | 19 /* RFC 5116, 5.1 and RFC 8439, 2.3/2.5 for all supported ciphers */ |
20 #define NGX_QUIC_IV_LEN 12 | 20 #define NGX_QUIC_IV_LEN 12 |
21 #define NGX_QUIC_TAG_LEN 16 | |
21 | 22 |
22 /* largest hash used in TLS is SHA-384 */ | 23 /* largest hash used in TLS is SHA-384 */ |
23 #define NGX_QUIC_MAX_MD_SIZE 48 | 24 #define NGX_QUIC_MAX_MD_SIZE 48 |
24 | 25 |
25 | 26 |