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

EthernetMacsecSecureEntity::CreateTxSA

Valid for: CANoe DE

Method Syntax

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

Description

Creates a secure association for transmitting.

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