CryptoSys API Library Manual
 
Aead.SetNonce Method
 Set the nonce (in incremental mode) 
Syntax
[C#]
public int SetNonce(
	byte[] nonce
)
[VB.NET]
Public Function SetNonce ( _
	nonce As Byte() _
) As Integer
Parameters
  - nonce
 
  - Nonce of exact length for given algorithm (currently always 12 bytes)
 
Return Value
Zero (0) if successful; otherwise it returns a nonzero 
error code 
Remarks
May be followed by zero or more calls to AddAAD() and then either StartEncrypt() or StartDecrypt().
See Also
VB6/C equivalent: AEAD_SetNonce
[Contents] [Index]