Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions docs/source/api_ref/hlapiv1/port/tg/macsec/rxsc_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_comm

.. code-block:: python

await rxsc_obj.config.sci.set(sci=Hex("0102030405060001"))
await rxsc_obj.config.sci.set(sci=Hex("0102030405060002"))

resp = await rxsc_obj.config.sci.get()
resp.sci
Expand Down Expand Up @@ -115,4 +115,32 @@ Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_comm

# For GCM_AES_256 and GCM_AES_256_XPN
await rxsc_obj.access_sak_value(0).set(sak_key_value=Hex("0001020304050607000102030405060700010203040506070001020304050607"))
await rxsc_obj.access_sak_value(1).set(sak_key_value=Hex("0001020304050607000102030405060700010203040506070001020304050607"))
await rxsc_obj.access_sak_value(1).set(sak_key_value=Hex("0001020304050607000102030405060700010203040506070001020304050607"))

XPN SSCI Value
--------------

The XPN SSCI of the port’s RX SC.

Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_commands.P_MACSEC_RXSC_XPN_SSCI`

.. code-block:: python

await rxsc_obj.config.xpn_ssci.set(sci=Hex("00000000"))

resp = await rxsc_obj.config.xpn_ssci.get()
resp.ssci

XPN Salt Value
--------------

The XPN Salt of the port’s RX SC.

Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_commands.P_MACSEC_RXSC_XPN_SALT`

.. code-block:: python

await rxsc_obj.config.xpn_salt.set(sci=Hex("000000000000000000000000"))

resp = await rxsc_obj.config.xpn_salt.get()
resp.salt
35 changes: 32 additions & 3 deletions docs/source/api_ref/hlapiv1/port/tg/macsec/txsc_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_comm

.. code-block:: python

await txsc_obj.config.sci_mode.set(mode=enums.MACSecSCIMode.NO_SCI)
await txsc_obj.config.sci_mode.set(mode=enums.MACSecSCIMode.END_STATION)
await txsc_obj.config.sci_mode.set(mode=enums.MACSecSCIMode.WITH_SCI)
await txsc_obj.config.sci_mode.set(mode=enums.MACSecSCIMode.NO_SCI)

resp = await txsc_obj.config.sci_mode.get()
resp.mode
Expand All @@ -42,7 +43,7 @@ Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_comm

.. code-block:: python

await txsc_obj.config.sci.set(sci=Hex("0102030405060001"))
await txsc_obj.config.sci.set(sci=Hex("0102030405060002"))

resp = await txsc_obj.config.sci.get()
resp.sci
Expand Down Expand Up @@ -176,4 +177,32 @@ Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_comm

# For GCM_AES_256 and GCM_AES_256_XPN
await txsc_obj.access_sak_value(0).set(sak_key_value=Hex("0001020304050607000102030405060700010203040506070001020304050607"))
await txsc_obj.access_sak_value(1).set(sak_key_value=Hex("0001020304050607000102030405060700010203040506070001020304050607"))
await txsc_obj.access_sak_value(1).set(sak_key_value=Hex("0001020304050607000102030405060700010203040506070001020304050607"))

XPN SSCI Value
--------------

The XPN SSCI of the port’s TX SC.

Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_commands.P_MACSEC_TXSC_XPN_SSCI`

.. code-block:: python

await txsc_obj.config.xpn_ssci.set(sci=Hex("00000000"))

resp = await txsc_obj.config.xpn_ssci.get()
resp.ssci

XPN Salt Value
--------------

The XPN Salt of the port’s TX SC.

Corresponding low-level API class: :class:`~xoa_driver.internals.commands.p_commands.P_MACSEC_TXSC_XPN_SALT`

.. code-block:: python

await txsc_obj.config.xpn_salt.set(sci=Hex("000000000000000000000000"))

resp = await txsc_obj.config.xpn_salt.get()
resp.salt