-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.EncryptionKey.Operator_Compare
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
libsodium.PKI.EncryptionKey.Operator_Compare
Function Operator_Compare(OtherKey As libsodium.PKI.EncryptionKey) As Integer
Name | Type | Comment |
---|---|---|
OtherKey | EncryptionKey | The key to compare to Self . |
This method returns 0
if OtherKey
and Self
are identical.
This method overloads the comparison operator (=
) allowing direct comparisons between instances of EncryptionKey
.
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.
If libsodium is not available at runtime, a PlatformNotSupportedException
will be raised.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.