Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix: implement StrongEq for Vec<u8> (#4795)

Kartikeya Hegdeb812e596a1be
diff --git a/crates/masking/src/strong_secret.rs b/crates/masking/src/strong_secret.rs
index fd1335f699..51c0f2cb3f 100644
--- a/crates/masking/src/strong_secret.rs
+++ b/crates/masking/src/strong_secret.rs
@@ -117,3 +117,12 @@ impl StrongEq for String {
bool::from(lhs.ct_eq(rhs))
}
}
+
+impl StrongEq for Vec<u8> {
+ fn strong_eq(&self, other: &Self) -> bool {
+ let lhs = &self;
+ let rhs = &other;
+
+ bool::from(lhs.ct_eq(rhs))
+ }
+}