More robustly validate signature inputs & allow 1 byte R/S as per comments.