Skip to content

libsodium.PKI.PublicKey.Operator_Compare

Andrew Lambert edited this page Jan 21, 2023 · 1 revision

libsodium.PKI.PublicKey.Operator_Compare

Method Signatures

 Function Operator_Compare(OtherKey As libsodium.PKI.PublicKey) As Int32
 Function Operator_Compare(OtherKey As String) As Int32

Parameters

Operator_Compare(libsodium.PKI.PublicKey)

Name Type Comment
OtherKey PublicKey The PublicKey to be compared to Self.

Operator_Compare(String)

Name Type Comment
OtherKey String The PublicKey to be compared 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 PublicKey or instances of PublicKey and Strings.

The comparison operation itself is a constant-time binary comparison.

Clone this wiki locally