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]

[PREV: Aead.Mac Method...]   [Contents]   [Index]   
   [NEXT: Aead.StartDecrypt Method...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.