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.172 -- Release Build+e1d54149784e85c054df1142e76e10e30c46c26f
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