Skip to content

Commit a23a6e8

Browse files
committed
Update ticket callback docs.
1 parent f111298 commit a23a6e8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

doc/ssl/SSL_CTX_set_tlsext_ticket_key_cb.pod

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ the callback function will be called with I<enc> equal to 1. The OpenSSL
4949
library expects that the function will set an arbitary I<name>, initialize
5050
I<iv>, and set the cipher context I<ctx> and the hash context I<hctx>.
5151

52-
The I<name> is only 16 characters long. The I<iv> is of length
53-
L<EVP_MAX_IV_LENGTH> defined in B<evp.h>.
52+
The I<name> is 16 characters long and is used as a key identifier.
53+
54+
The I<iv> length is the length of the IV of the corresponding cipher. The
55+
maximum IV length is L<EVP_MAX_IV_LENGTH> bytes defined in B<evp.h>.
5456

5557
The initialization vector I<iv> should be a random value. The cipher context
5658
I<ctx> should use the initialisation vector I<iv>. The cipher context can be
@@ -110,6 +112,17 @@ an all other negotiated state information encrypted within the ticket. In a
110112
resumed session the applications will have all this state information available
111113
exactly as if a full negiotation had occured.
112114

115+
If an attacker can obtain the key used to encrypt a session ticket, they can
116+
obtain the master secret for any ticket using that key and decrypt any traffic
117+
using that session: even if the ciphersuite supports forward secrecy. As
118+
a result applications may wish to use multiple keys and avoid using long term
119+
keys stored in files.
120+
121+
Applications can use longer keys to maintain a consistent level of security.
122+
For example if a ciphersuite uses 256 bit ciphers but only a 128 bit ticket key
123+
the overall security is only 128 bits because breaking the ticket key will
124+
enable an attacker to obtain the session keys.
125+
113126
=head1 EXAMPLES
114127

115128
Reference Implemention:

0 commit comments

Comments
 (0)