Skip to content

Commit

Permalink
Update ConstantTimeUtility.cs (#3472)
Browse files Browse the repository at this point in the history
- Fix typo

Co-authored-by: Shargon <[email protected]>
Co-authored-by: Jimmy <[email protected]>
Co-authored-by: NGD Admin <[email protected]>
  • Loading branch information
4 people authored Sep 6, 2024
1 parent da193e9 commit 3d663f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neo.Cryptography.BLS12_381/ConstantTimeUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static bool ConstantTimeEq<T>(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;
}

Expand Down

0 comments on commit 3d663f2

Please sign in to comment.