Click or drag to resize

AeadAuthenticate Method

Authenticate additional data using tag

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static bool Authenticate(
	byte[] key,
	byte[] nonce,
	byte[] aad,
	byte[] tag,
	AeadAlgorithm alg
)

Parameters

key  Byte
Key of exact length for given algorithm (16 or 32 bytes).
nonce  Byte
Nonce of exact length for given algorithm (currently always 12 bytes)
aad  Byte
Data to be authenticated
tag  Byte
Tag value
alg  AeadAlgorithm
AEAD algorithm to use

Return Value

Boolean
True if authentication is valid; false if failed or an error occurred.
Remarks
Use General.ErrorCode to find the code of the last error. This is equivalent to Aead.Decrypt with a zero-length ciphertext input.
See Also