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; }