CryptoSys API Library Manual
Gcm.Gmac Method
Compute GMAC using AES-GCM in one-off operation
Syntax
[C#]
public static byte[] Gmac(
byte[] key,
byte[] iv,
byte[] msg
)
[VB.NET]
Public Shared Function Gmac ( _
key As Byte(), _
iv As Byte(), _
msg As Byte() _
) As Byte()
Parameters
- key
- Key: must be exactly 16, 24 or 32 bytes long.
- iv
- Initialization vector
- msg
- Message data
Return Value
GMAC value in 16-byte array, or empty array on error
Remarks
Use General.ErrorCode to find the code of the last error.
[Contents] [Index]