-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SecureMemoryblock.Operator_Compare
Andrew Lambert edited this page Feb 15, 2017
·
6 revisions
libsodium.SecureMemoryblock.Operator_Compare
##Method Signatures
Function Operator_Compare(OtherMB As libsodium.SecureMemoryBlock) As Int32
Function Operator_Compare(OtherMB As String) As Int32##Parameters
###Operator_Compare(SecureMemoryBlock)
| Name | Type | Comment |
|---|---|---|
| OtherMB | SecureMemoryBlock |
The data to compare to Self. |
###Operator_Compare(String)
| Name | Type | Comment |
|---|---|---|
| OtherMB | String |
The data to compare to Self. |
##Return value
This method returns 0 if OtherMB and Self are identical.
##Remarks
This method overloads the comparison operator (=) allowing direct comparisons between instances of SecureMemoryBlock or instances of SecureMemoryBlock and Strings.
The comparison operation itself is a constant-time binary comparison of password strings.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-26 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