[−][src]Function tox_crypto::increment_nonce
pub fn increment_nonce(nonce: &mut Nonce)
Inrement given nonce by 1.
Treats Nonce
as BE number.
If nonce can't be incremented (all bits are 1
), nonce is zeroed.
Note that behaviour of this function might change to not increment supplied nonces, but rather, return an increased nonce.
Spec: https://zetok.github.io/tox-spec#nonce-2