Fixes to hint error dectection. Fix public key decode to fail when DER length is zero for the public key data.