diff options
author | jsing <> | 2021-05-05 10:05:27 +0000 |
---|---|---|
committer | jsing <> | 2021-05-05 10:05:27 +0000 |
commit | 1a056896b1f8722603712ec9956a081ee5b6c651 (patch) | |
tree | 07f64696b23229ab3deb8b5ecb2d4da5b3116265 /src/lib/libssl/d1_both.c | |
parent | 568e2c6ba016944c98856861863d8334abad11d5 (diff) | |
download | openbsd-1a056896b1f8722603712ec9956a081ee5b6c651.tar.gz openbsd-1a056896b1f8722603712ec9956a081ee5b6c651.tar.bz2 openbsd-1a056896b1f8722603712ec9956a081ee5b6c651.zip |
Rewrite TLSv1.2 key block handling.
For TLSv1.2 a single key block is generated, then partitioned into
individual secrets for use as IVs and keys. The previous implementation
splits this across two functions tls1_setup_key_block() and
tls1_change_cipher_state(), which means that the IV and key sizes have to
be known in multiple places.
This implementation generates and partitions the key block in a single
step, meaning that the secrets are then simply handed out when requested.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/d1_both.c')
0 files changed, 0 insertions, 0 deletions