Add parameter sanity checks to md5_hex_digest() and md5_hex_hmac().