Utility provides nonce operations.
More...
|
static byte[] | IncreaseNonce (byte[] startNonce, byte[] endNonce) |
| Increase the sequential NONCE by a value of 1. This implementation assumes that the NONCE length is 8 bytes or fewer so it can fit in a long.
|
|
static byte[] | SplitNonceRange (byte[] startNonce, byte[] endNonce) |
| Returns the middle nonce in the provided range. Note: This assumes the nonce is 8 bytes, if you need to increase the nonce length then the long transient variables will not hold. In that case you will need to override with your own implementation.
|
|
Utility provides nonce operations.
◆ IncreaseNonce()
static byte[] Mku.Salmon.SalmonNonce.IncreaseNonce |
( |
byte[] | startNonce, |
|
|
byte[] | endNonce ) |
|
static |
Increase the sequential NONCE by a value of 1. This implementation assumes that the NONCE length is 8 bytes or fewer so it can fit in a long.
- Parameters
-
startNonce | The starting nonce |
endNonce | The ending nonce |
- Returns
- The nonce after increasing
- Exceptions
-
◆ SplitNonceRange()
static byte[] Mku.Salmon.SalmonNonce.SplitNonceRange |
( |
byte[] | startNonce, |
|
|
byte[] | endNonce ) |
|
static |
Returns the middle nonce in the provided range. Note: This assumes the nonce is 8 bytes, if you need to increase the nonce length then the long transient variables will not hold. In that case you will need to override with your own implementation.
- Parameters
-
startNonce | The starting nonce. |
endNonce | The ending nonce in the sequence. |
- Returns
- The byte array with the middle nonce.
- Exceptions
-
The documentation for this class was generated from the following file: