Skip to main content

C2xSecCertificateGetHashedId8

Valid for: CANoe DE

Function Syntax

long C2xSecCertificateGetHashedId8( long certificateHandle, byte hashedId8[] );

Description

Gets HashedId8 digest of a certificate.

Parameters

  • certificateHandle: Handle of the certificate
  • hashedId8: Buffer in which the digest is copied, size must be 8 bytes. In some protocols this parameter is called certId8.

Return Values

  • Any number: Number of bytes copied.
  • 8: Success
  • 0: Failure

Example

void OnC2xPacket( long channel, long dir, long radioChannel, long signalStrength, long signalQuality, long rxPacketHandle )
{
  long certificateHandle;
  byte hashedId8[8];
  certificateHandle = C2xSecPacketGetSignerHandle(rxPacketHandle);
  C2xSecCertificateGetHashedId8(certificateHandle, hashedId8);
}