SCC_CreateCM_Set_Key_Req
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Creates a CM_Set_Key.Req message for sending.Parameters
- SourceMac: Source address of the Ethernet packet.
- TargetMac: Destination address of the Ethernet packet.
- NID: Network ID given by the CCo (EVSE) (7 byte).
- NMK: NMK to be set (16 byte).
Additional Parameters
-
KeyType (dword):
- 0x00 = DAK (AES-128)
- 0x01 = NMK (AES-128)
- 0x02 = NEK (AES-128)
- 0x03 = TEK (AES-128)
- 0x04 = Hash Key (Random-3072)
- 0x05 = Nonce Only (no key)
- 0x06-0xFF = Reserved
- MyNonce (byte[]): 4 byte random number.
- YourNonce (byte[]): Last received nonce (4 byte).
- PID (dword): Protocol ID.
- PRN (byte[]): Protocol Run Number (2 byte).
- PMN (dword): Protocol Message Number.
- CCoCapability (dword): STA’s CCo Capability.
- NewEKS (dword): PEKS or EKS.