SecurityLocalGenerateCMAC
Valid for: CANoe DE • CANoe4SW DE NoteReplaces
LocalSecurityGenerateCMAC.
Function Syntax
Description
Generates a hash for the given data and key. The generated hash is a CMAC.Parameters
- byte key[]: The key to be used.
- dword keyLength: 16 or 32 (bytes).
- byte data[]: The data for which the CMAC should be computed.
- dword dataLength: The length of the data for which the CMAC should be computed.
- byte cmac[] [Out]: The generated CMAC.
- dword cmacLength [In/Out]: The length of the generated CMAC (16 bytes).
Return Values
- 1: Success
A Value of 1 means that the action was successful. - ≤ 0: Error
A value less than or equal to 0 means error.