Skip to content

libsodium.PKI.KeyPair.Operator_Compare

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

libsodium.PKI.KeyPair.Operator_Compare

Method Signature

Function Operator_Compare(OtherKey As libsodium.PKI.KeyPair) As Int32

Parameters

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

Remarks

This method overloads the comparison operator (=) allowing direct comparisons between instances of KeyPair. The comparison operation itself is a constant-time binary comparison of the private key halves of both key pairs; the public halves are not compared.

Clone this wiki locally