pub fn validate(&self, data: &[u8]) -> bool {
        match self.validator() {
            Some(mut validator) => {
                validator.input(data);
                validator.validate()
            }
            None => false,
        }
    }
/// Convenience method to validate a one-off slice of data.
///
/// Guaranteed to return false if the algorithm is not recognized.
Convenience method to validate a one-off slice of data.
Guaranteed to return false if the algorithm is not recognized.
Convenience method to validate a one - off slice of data . Guaranteed to return false if the algorithm is not recognized .
pub fn validate(&self, data: &[u8]) -> bool {
        match self.validator() {
            Some(mut validator) => {
                validator.input(data);
                validator.validate()
            }
            None => false,
        }
    }
pub fn validate ( & self , data : & [ u8 ] ) -> bool { match self . validator ( ) { Some ( mut validator ) => { validator . input ( data ) ; validator . validate ( ) } None => false , } }
Convenience method to validate a one-off slice of data.
Convenience method to validate a one - off slice of data .
&self
data
&[u8]
&self
data
&[u8]