Argon2FixedTimeEquals Method

Compare two ZeroedBuffers without leaking timing information.

Definition

Namespace: Gemstone.Security.Cryptography.Argon2Hash
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.175 -- Release Build+146c7e07986c58ce53bef2ac3da53d5efdf9e69c
public static bool FixedTimeEquals(
	ZeroedBuffer<byte> left,
	ZeroedBuffer<byte> right
)

Parameters

left  ZeroedBufferByte
The first ZeroedBuffer to compare.
right  ZeroedBufferByte
The second ZeroedBuffer to compare.

Return Value

Boolean
true if left and right have the same values for Length and the same contents; otherwise, false.

Remarks

Uses System.Security.Cryptography.CryptographicOperations.FixedTimeEquals() when available; otherwise implements a similar algorithm.

See Also