Skip to content

libsodium.SKI.SecretKey.Operator_Compare

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

libsodium.SKI.SecretKey.Operator_Compare

Method Signature

Function Operator_Compare(OtherKey As libsodium.SKI.SecretKey) As Int32

Parameters

Name Type Comment
OtherKey SecretKey The key to compare to Self.

Return value

This method returns 0 if OtherKey and Self are identical.

Remarks

This method overloads the comparison operator (=) allowing direct comparisons between instances of SecretKey.

The comparison operation itself is a constant-time binary comparison of the key data.

If libsodium is not available at runtime, a PlatformNotSupportedException will be raised.

Clone this wiki locally