Compute Message Authentication Code (tag) over input data
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static byte[] Mac(
byte[] key,
byte[] nonce,
byte[] aad,
AeadAlgorithm alg
)
Public Shared Function Mac (
key As Byte(),
nonce As Byte(),
aad As Byte(),
alg As AeadAlgorithm
) As Byte()
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
- alg AeadAlgorithm
- AEAD algorithm to use
Return Value
ByteTag value in byte array, or empty array on error
Remarks
See Also