P_MACSEC_TXSC_SAK_LIST

code: 516

# set
<module-index>/<port-index> P_MACSEC_TXSC_SAK_LIST [<tx_sc_index_index>] <type> <count> [<key_value>]

# get
<module-index>/<port-index> P_MACSEC_TXSC_SAK_LIST [<tx_sc_index_index>] ?

Description

The SAK list of the port’s TX SC.

  • Up to 4 x 128-bit keys for GCM-AES-128 and GCM-AES-XPN-128

  • Up to 2 x 256-bit keys for GCM-AES-256 and GCM-AES-XPN-256

Actions

set, get

Indices

tx_sc_index_index: integer, TX SC index.

Parameters

  1. type: byte, describes the type of SAK key length.

    • SHORT = 1, 128-bit keys.

    • LONG = 2, 256-bit keys.

  2. count: integer, the number of keys in the list. 0 means the list is empty.

  3. [<key_value>]: list of hex, list of SAK keys. If the list is empty, it means remove all the keys or there is no key configured.

Example

# set
input:  0/1 P_MACSEC_TXSC_SAK_LIST [0] LONG 2 0x00000000000000000000000000000000000102030405060708090A0B0C0D0E0F 0x00000000000000000000000000000000000102030405060708090A0B0C0D0E0F
input:  0/1 P_MACSEC_TXSC_SAK_LIST [0] SHORT 4 0x0102030405060708090A0B0C0D0E0F 0x0102030405060708090A0B0C0D0E0F 0x0102030405060708090A0B0C0D0E0F 0x0102030405060708090A0B0C0D0E0F
output: <OK>

# get
input:  0/1 P_MACSEC_TXSC_SAK_LIST [0] ?
output: 0/1 P_MACSEC_TXSC_SAK_LIST [0] SHORT 4 0x0102030405060708090A0B0C0D0E0F 0x0102030405060708090A0B0C0D0E0F 0x0102030405060708090A0B0C0D0E0F 0x0102030405060708090A0B0C0D0E0F
# set
input:  0/1 P_MACSEC_TXSC_SAK_LIST [0] LONG 0
output: <OK>

# get
input:  0/1 P_MACSEC_TXSC_SAK_LIST [0] ?
output: 0/1 P_MACSEC_TXSC_SAK_LIST [0] LONG 0