summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_rsa.c
diff options
context:
space:
mode:
authorjsing <>2017-03-18 12:58:18 +0000
committerjsing <>2017-03-18 12:58:18 +0000
commit6c55a7efb3abec4388f94455e4f9a2ddd3bc326a (patch)
tree811759f0fd76d71b0bf1418a680206a95aa2d0e3 /src/lib/libssl/ssl_rsa.c
parent0bfcc4ad1918612e366e9eb010a9013e96a59986 (diff)
downloadopenbsd-6c55a7efb3abec4388f94455e4f9a2ddd3bc326a.tar.gz
openbsd-6c55a7efb3abec4388f94455e4f9a2ddd3bc326a.tar.bz2
openbsd-6c55a7efb3abec4388f94455e4f9a2ddd3bc326a.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/libssl/ssl_rsa.c')
0 files changed, 0 insertions, 0 deletions