You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated the documentation of crypto samples.
Added sample output, cross-links to recently updated docs,
more details in the overview sections. Edited sample.yaml
for term and style consistency.
Future PRs will edit remaining crypto samples.
NCSDK-33435. Follow-up to #25032.
Signed-off-by: Grzegorz Ferenc <[email protected]>
Copy file name to clipboardExpand all lines: samples/crypto/aes_cbc/README.rst
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,14 @@ The sample :ref:`enables PSA Crypto API <psa_crypto_support_enable>` and configu
27
27
* :kconfig:option:`CONFIG_PSA_WANT_ALG_CBC_NO_PADDING` - Used to enable support for the CBC cipher mode without padding from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_cipher_modes`.
28
28
* :kconfig:option:`CONFIG_PSA_WANT_GENERATE_RANDOM` - Used to enable random number generation for key and IV generation from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_rng_algorithms`.
29
29
30
+
.. crypto_sample_overview_driver_selection_start
31
+
30
32
The sample also configures the cryptographic drivers for each board target using Kconfig options in the overlay files in the :file:`boards` directory.
31
33
32
-
These Kconfig options are then used by Oberon PSA Crypto to compile the required cryptographic PSA directives and select the cryptographic drivers.
33
-
See :ref:`crypto_drivers_driver_selection` for more information about the driver selection process.
34
+
These Kconfig options are then used by the build system to compile the required cryptographic PSA directives and make the configured cryptographic drivers available at runtime.
35
+
See :ref:`crypto_drivers_driver_selection` for more information about this process.
36
+
37
+
.. crypto_sample_overview_driver_selection_end
34
38
35
39
Once built and run, the sample performs the following operations:
36
40
@@ -64,10 +68,10 @@ Building and running
64
68
Testing
65
69
=======
66
70
67
-
After programming the sample to your development kit, complete the following steps to test it:
68
-
69
71
.. crypto_sample_testing_start
70
72
73
+
After programming the sample to your development kit, complete the following steps to test it:
74
+
71
75
1. |connect_terminal|
72
76
#. Build and program the application.
73
77
#. Observe the logs from the application using the terminal emulator.
@@ -82,7 +86,7 @@ After programming the sample to your development kit, complete the following ste
Copy file name to clipboardExpand all lines: samples/crypto/aes_ccm/README.rst
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,9 @@ The sample :ref:`enables PSA Crypto API <psa_crypto_support_enable>` and configu
28
28
* :kconfig:option:`CONFIG_PSA_WANT_ALG_CCM` - Used to enable support for the CCM AEAD algorithm from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_aead_algorithms`.
29
29
* :kconfig:option:`CONFIG_PSA_WANT_GENERATE_RANDOM` - Used to enable random number generation for key generation from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_rng_algorithms`.
30
30
31
-
The sample also configures the cryptographic drivers for each board target using Kconfig options in the overlay files in the :file:`boards` directory.
32
-
33
-
These Kconfig options are then used by Oberon PSA Crypto to compile the required cryptographic PSA directives and select the cryptographic drivers.
34
-
See :ref:`crypto_drivers_driver_selection` for more information about the driver selection process.
Copy file name to clipboardExpand all lines: samples/crypto/aes_ctr/README.rst
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,9 @@ The sample :ref:`enables PSA Crypto API <psa_crypto_support_enable>` and configu
27
27
* :kconfig:option:`CONFIG_PSA_WANT_ALG_CTR` - Used to enable support for the CTR cipher mode from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_cipher_modes`.
28
28
* :kconfig:option:`CONFIG_PSA_WANT_GENERATE_RANDOM` - Used to enable random number generation for key and IV generation from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_rng_algorithms`.
29
29
30
-
The sample also configures the cryptographic drivers for each board target using Kconfig options in the overlay files in the :file:`boards` directory.
31
-
32
-
These Kconfig options are then used by Oberon PSA Crypto to compile the required cryptographic PSA directives and select the cryptographic drivers.
33
-
See :ref:`crypto_drivers_driver_selection` for more information about the driver selection process.
Copy file name to clipboardExpand all lines: samples/crypto/aes_gcm/README.rst
+63-14Lines changed: 63 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Crypto: AES GCM
7
7
:local:
8
8
:depth: 2
9
9
10
-
The AES GCM sample shows how to perform authenticated encryption and decryption operations using the GCM algorithm and a 128-bit key.
10
+
The AES GCM sample demonstrates how to use the :ref:`PSA Crypto API <ug_psa_certified_api_overview_crypto>` to perform authenticated encryption and decryption operations using the GCM AEAD algorithm with a 128-bit AES key.
11
11
12
12
Requirements
13
13
************
@@ -21,22 +21,36 @@ The sample supports the following development kits:
21
21
Overview
22
22
********
23
23
24
-
The sample performs the following operations:
24
+
The sample :ref:`enables PSA Crypto API <psa_crypto_support_enable>` and configures the following Kconfig options for the cryptographic features:
25
+
26
+
* :kconfig:option:`CONFIG_PSA_WANT_KEY_TYPE_AES` - Used to enable support for AES key types from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_key_types`.
27
+
* :kconfig:option:`CONFIG_PSA_WANT_ALG_GCM` - Used to enable support for the GCM AEAD algorithm from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_aead_algorithms`.
28
+
* :kconfig:option:`CONFIG_PSA_WANT_GENERATE_RANDOM` - Used to enable random number generation for key and IV generation from among the supported cryptographic operations for :ref:`ug_crypto_supported_features_rng_algorithms`.
0 commit comments