Fix OAEP key size check during encoding, and an array over-read when
decoding a message that was so large we decided it was invalid and
truncated it.
Refuse to make RSA/RW keys under 1024 bits
merge of 'c55938af0026b98297194116c1553d467104b41a'
     and 'd0c532af92ea0940685dd0e99d2946329efbc917'
Add missing header for FreeBSD 10