diff --git a/lib/src/crypto/util.rs b/lib/src/crypto/util.rs index d9d6ca7..ce797a7 100644 --- a/lib/src/crypto/util.rs +++ b/lib/src/crypto/util.rs @@ -14,7 +14,7 @@ pub fn format_fingerprint>(fingerprint: S) -> String { /// Check whether two fingerprints match. pub fn fingerprints_equal, T: AsRef>(a: S, b: T) -> bool { !a.as_ref().trim().is_empty() - && a.as_ref().trim().to_uppercase() == b.as_ref().trim().to_uppercase() + && a.as_ref().trim().to_uppercase().contains(&b.as_ref().trim().to_uppercase()) } /// Check whether a list of keys contains the given fingerprint.