diff --git a/csharp/Svix/Utils.cs b/csharp/Svix/Utils.cs index 39931a564..4cf0a7c86 100644 --- a/csharp/Svix/Utils.cs +++ b/csharp/Svix/Utils.cs @@ -25,7 +25,7 @@ public static bool SecureCompare(ReadOnlySpan a, ReadOnlySpan b) var result = 0; for (var i = 0; i < a.Length; i++) { - result |= a[i] ^b[i]; + result |= a[i] ^ b[i]; } return result == 0; diff --git a/csharp/Svix/Webhook.cs b/csharp/Svix/Webhook.cs index 126ccab72..49182dfb3 100644 --- a/csharp/Svix/Webhook.cs +++ b/csharp/Svix/Webhook.cs @@ -94,8 +94,6 @@ public void Verify(ReadOnlySpan payload, WebHeaderCollection headers) throw new WebhookVerificationException("No matching signature found"); } - - private static void VerifyTimestamp(ReadOnlySpan timestampHeader) { DateTimeOffset timestamp;