Skip to main content
Open topic with navigation CAPL Functions » Ethernet » Function Overview » EthernetMacsecSecureEntity::CreateRxSA

EthernetMacsecSecureEntity::CreateRxSA

Valid for: CANoe DE

Method Syntax

byte EthernetMacsecSecureEntity.CreateRxSA(EthernetMacsecSCI sci, byte AN, EthernetMacsecKeyId ki);

Description

Creates a secure association for receiving.

Parameters

  • sci: The secure channel id of the secure channel where this SA shall be created.
  • AN: The secure association number for the SA to be created.
  • ki: The id of a key previously installed using InstallKey.

Return Values

  • byte: 1 if the call succeeded, 0 otherwise.
The call will fail if:
  • The secure channel referred to by the sci does not exist.
  • The AN is not in range 0..3.
  • The key referred to by the specified key id has not been installed.
  • The SA already exists.

Example