Key.opEquals

bool opEquals(const Key other) const;

Equality comparison based on key material.

Two keys are considered equal if they have the same algorithm and the same encoded bytes (compared in constant time).

Note

Implementations must ensure consistency with toHash: if two keys

compare equal, they must produce the same hash value. The implementation should use constant-time comparison (e.g., safeEqual) for the encoded bytes to prevent timing attacks, but this means the comparison time will vary with key length.

Parameters

otherThe key to compare against.

Returns

true if the keys are equal, false otherwise.