]> granicus.if.org Git - openssl/commit
Add sanity check to PRF
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 14:37:26 +0000 (14:37 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Mar 2015 13:39:53 +0000 (13:39 +0000)
commit668f6f08c62177ab5893fc26ebb67053aafdffc8
tree4850441d3a7d103b37914516fa7e7c1893697f98
parent7132ac830fa08d9a936e011d7c541b0c52115b33
Add sanity check to PRF

The function tls1_PRF counts the number of digests in use and partitions
security evenly between them. There always needs to be at least one digest
in use, otherwise this is an internal error. Add a sanity check for this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/t1_enc.c