Fixed tls_prf() to handle keys with odd length
authorJouni Malinen <j@w1.fi>
Mon, 14 Apr 2008 17:11:49 +0000 (20:11 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 14 Apr 2008 17:11:49 +0000 (20:11 +0300)
commit1c156e783d3510e07d59bfc34f860061e5552a30
treeab7b110ad177d3263883faaeed0013dc6b16901a
parent0d5822999428e7257b7b41e720342bd334c3a90d
Fixed tls_prf() to handle keys with odd length

The middle byte of the secret (key for PRF) is shared with key halfs in
case the key length is odd. This does not happen in any of the current
tls_prf() uses, but it's better to fix this function to avoid future issues
should someone end up defining a use that uses an odd length for the key.
src/crypto/sha1.c