-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.CompareNonce
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
libsodium.CompareNonce
Protected Function CompareNonce(Nonce1 As MemoryBlock, Nonce2 As MemoryBlock) As Int32
Name | Type | Comment |
---|---|---|
Nonce1 | MemoryBlock | The nonce to compare to Nonce2
|
Nonce2 | MemoryBlock | The nonce to compare to Nonce1
|
Returns 0 if the nonces are equal, +1 if Nonce1
is greater, or -1 if Nonce2
is greater.
This method compares Nonce1
to Nonce2
in constant time.
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.