By default, switches do not support the MACsec function. The MACsec function is available only when a plug-in is installed on the switch.
You can browse and obtain the MACsec plug-in and related documentation at Product & Service Support Huawei Enterprise by searching for "Plug-In Usage Guide", and selecting the Plug-In Usage Guide of the corresponding switch model and software version. If you do not have the permission, contact technical support personnel.