tuweni / org.apache.tuweni.crypto.sodium / AES256GCM / Nonce / increment

increment

fun increment(): Nonce! (source)

Increment this nonce.

Note that this is not synchronized. If multiple threads are creating encrypted messages and incrementing this nonce, then external synchronization is required to ensure no two encrypt operations use the same nonce.

Return
Nonce!: A new Nonce.