# null

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/IP/Methods/CAPLfunctionInitMacsec.md)

[CAPL Functions](../../CAPLfunctions.md) » [Ethernet](../CAPLEthernetStartPage.md) » [Function Overview](../CAPLfunctionsIPOverview.md) » EthernetMacsecSecureEntity::InitMacsec

# EthernetMacsecSecureEntity::InitMacsec

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

## Method Syntax

[Method](../../../Shared/CAPL/General/ClassesAndObjects.md) Syntax

```
byte EthernetMacsecSecureEntity.InitMacsec();
```

## Description

Initializes the secure entity. This function must be called before any secure channels can be created.

## Parameters

—

## Return Values

* **byte**: 1 if the call succeeded, 0 otherwise.

## Example

—
