diff options
author | jsing <> | 2017-03-18 12:58:18 +0000 |
---|---|---|
committer | jsing <> | 2017-03-18 12:58:18 +0000 |
commit | def63193c2b83eaf0fcd62a1c4d85970ea9f15ed (patch) | |
tree | 811759f0fd76d71b0bf1418a680206a95aa2d0e3 /src/lib/libc/stdlib | |
parent | e544d3375a158284535329d0e6e1f7e1151f6e7b (diff) | |
download | openbsd-def63193c2b83eaf0fcd62a1c4d85970ea9f15ed.tar.gz openbsd-def63193c2b83eaf0fcd62a1c4d85970ea9f15ed.tar.bz2 openbsd-def63193c2b83eaf0fcd62a1c4d85970ea9f15ed.zip |
Currently tls1_PRF() requires that a temporary buffer be provided, that
matches the size of the output buffer. This is used in the case where
there are multiple hashes - tls_P_hash() is called with the temporary
buffer and the result is then xored into the output buffer.
Avoid this by simply using a local buffer in tls_P_hash() and then xoring
the result into the output buffer. Overall this makes the code cleaner
and simplifies all of the tls_PRF() callers.
Similar to BoringSSL.
ok inoguchi@
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions