More error handling to HKDF and one more case in TLS1-PRF