pub fn validate_key_version(
    version: u32,
    max_expected: u32
) -> Result<(), TinkError>
Expand description

Check whether the given version is valid. The version is valid only if it is the range [0..max_expected].