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.171 -- Release Build+9bbaecd83e44e0973a7b18ef958272cfb4d67729
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