]> git.kaiwu.me - nginx.git/commit
SSL: support AES256 encryption of tickets.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 23 Dec 2016 14:28:20 +0000 (17:28 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 23 Dec 2016 14:28:20 +0000 (17:28 +0300)
commitc2d3d82ccbea18f0504fbaceeee6efb62da8d1d8
treefe6b284e2cbd1532bb6862602bdbf5dfe9112974
parentf02170672926e6afe273340fefb44bd1cc1d6ed4
SSL: support AES256 encryption of tickets.

This implies ticket key size of 80 bytes instead of previously used 48,
as both HMAC and AES keys are 32 bytes now.  When an old 48-byte ticket key
is provided, we fall back to using backward-compatible AES128 encryption.

OpenSSL switched to using AES256 in 1.1.0, and we are providing equivalent
security.  While here, order of HMAC and AES keys was reverted to make
the implementation compatible with keys used by OpenSSL with
SSL_CTX_set_tlsext_ticket_keys().

Prodded by Christian Klinger.
src/event/ngx_event_openssl.c
src/event/ngx_event_openssl.h