This gets rid of a couple FIXMEs and allows reusing the logic of validating this field between different algorithms. While we're here, expand its logic to match the constraints as outlined in RFC 7517.