Merge "Make NONEwithECDSA truncate input when necessary." into mnc-dev