fn check_public_with_max_size( public_key: &impl PublicKeyParts, max_size: Option<usize>, ) -> Result<()>
Check that the public key is well formed and has an exponent within acceptable bounds.