Authenticate additional data using tag
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static bool Authenticate(
byte[] key,
byte[] nonce,
byte[] aad,
byte[] tag,
AeadAlgorithm alg
)
Public Shared Function Authenticate (
key As Byte(),
nonce As Byte(),
aad As Byte(),
tag As Byte(),
alg As AeadAlgorithm
) As Boolean
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
BooleanTrue if authentication is valid; false if failed or an error occurred.
Remarks
See Also