Skip to main content
Open topic with navigation CAPL Functions » Smart Charging » SCC Modeling Libraries (Simulation Setup) » Shared Callback Functions » SCC_SignaturePreSendInd

SCC_SignaturePreSendInd

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void SCC_SignaturePreSendInd(byte SessionId[], dword MessageId, byte Signature[], dword& SigLength)

Description

This callback is called when a signature for a message has been created. It allows to peek for the signature and its length before it is sent with the indicated message. Also, both signature and length may be changed for the purpose of fault injection.

Parameters

  • SessionID: 8-byte long SessionID of SCC connection, range: 0 – 0xFF FF FF FF FF FF FF FF.
  • MessageID: Type of the message that will use the signature.
  • Signature: The signature data.
  • sigLength: The number of signature data bytes. If set to zero, the signature will be absent in the indicated message.

Return Values

Example

SCC_SignaturePreSendInd( byte SessionID[], dword MessageID, byte Signature[], dword& SignatureLength)
{
  WriteLineEx(writeTab, 1, "SCC: Signature of length %i created for message %d", SignatureLength, MessageID);
}
SCC_SignatureVerificationInd