From a564e865120f975e96006c9aee683d81c35620d4 Mon Sep 17 00:00:00 2001 From: Mirage Mouse Date: Tue, 27 Aug 2024 19:09:42 -0400 Subject: [PATCH] Update ConstantTimeUtility.cs - Fix typo --- src/Neo.Cryptography.BLS12_381/ConstantTimeUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Neo.Cryptography.BLS12_381/ConstantTimeUtility.cs b/src/Neo.Cryptography.BLS12_381/ConstantTimeUtility.cs index 70517edeb1..fefde72b67 100644 --- a/src/Neo.Cryptography.BLS12_381/ConstantTimeUtility.cs +++ b/src/Neo.Cryptography.BLS12_381/ConstantTimeUtility.cs @@ -26,7 +26,7 @@ public static bool ConstantTimeEq(in T a, in T b) where T : unmanaged for (int i = 0; i < a_u64.Length; i++) f |= a_u64[i] ^ b_u64[i]; for (int i = a_u64.Length * sizeof(ulong); i < a_bytes.Length; i++) - f |= (ulong)a_bytes[i] ^ a_bytes[i]; + f |= (ulong)a_bytes[i] ^ b_bytes[i]; return f == 0; }