-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.PublicKey.Operator_Compare
Andrew Lambert edited this page Jan 21, 2023
·
1 revision
Function Operator_Compare(OtherKey As libsodium.PKI.PublicKey) As Int32
Function Operator_Compare(OtherKey As String) As Int32| Name | Type | Comment |
|---|---|---|
| OtherKey | PublicKey | The PublicKey to be compared to Self. |
| Name | Type | Comment |
|---|---|---|
| OtherKey | String |
The PublicKey to be compared to Self. |
This method returns 0 if OtherKey and Self are identical.
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.
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.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication