Test: Add independent condition for SHA-384

Add independent condition for SHA-384 since mbedtls-3.1.0
has supported independent config for SHA-384.

Signed-off-by: Summer Qin <summer.qin@arm.com>
Change-Id: I6815b166d88faff33656d755b4ef66b92a11eca1
diff --git a/docs/technical_references/design_docs/profiles/tfm_profile_large.rst b/docs/technical_references/design_docs/profiles/tfm_profile_large.rst
index 12149e1..fcab211 100644
--- a/docs/technical_references/design_docs/profiles/tfm_profile_large.rst
+++ b/docs/technical_references/design_docs/profiles/tfm_profile_large.rst
@@ -386,6 +386,8 @@
    +--------------------------------------------+---------------+-----------------------------------------+
    | ``TFM_CRYPTO_TEST_ALG_GCM``                | ``ON``        | Test GCM cryptography mode              |
    +--------------------------------------------+---------------+-----------------------------------------+
+   | ``TFM_CRYPTO_TEST_ALG_SHA_384``            | ``OFF``       | Test SHA-384 cryptography algorithm     |
+   +--------------------------------------------+---------------+-----------------------------------------+
    | ``TFM_CRYPTO_TEST_ALG_SHA_512``            | ``ON``        | Test SHA-512 cryptography algorithm     |
    +--------------------------------------------+---------------+-----------------------------------------+
    | ``TFM_CRYPTO_TEST_HKDF``                   | ``ON``        | Test HMAC-based key derivation function |
diff --git a/docs/technical_references/design_docs/profiles/tfm_profile_medium.rst b/docs/technical_references/design_docs/profiles/tfm_profile_medium.rst
index fb75a58..92289d0 100644
--- a/docs/technical_references/design_docs/profiles/tfm_profile_medium.rst
+++ b/docs/technical_references/design_docs/profiles/tfm_profile_medium.rst
@@ -315,6 +315,8 @@
    +--------------------------------------------+---------------+-----------------------------------------------+
    | ``TFM_CRYPTO_TEST_ALG_GCM``                | ``OFF``       | Disable GCM mode test                         |
    +--------------------------------------------+---------------+-----------------------------------------------+
+   | ``TFM_CRYPTO_TEST_ALG_SHA_384``            | ``OFF``       | Disable SHA-384 algorithm test                |
+   +--------------------------------------------+---------------+-----------------------------------------------+
    | ``TFM_CRYPTO_TEST_ALG_SHA_512``            | ``OFF``       | Disable SHA-512 algorithm test                |
    +--------------------------------------------+---------------+-----------------------------------------------+
    | ``TFM_CRYPTO_TEST_HKDF``                   | ``OFF``       | Disable HKDF algorithm test                   |
diff --git a/docs/technical_references/design_docs/profiles/tfm_profile_small.rst b/docs/technical_references/design_docs/profiles/tfm_profile_small.rst
index b311694..7e26268 100644
--- a/docs/technical_references/design_docs/profiles/tfm_profile_small.rst
+++ b/docs/technical_references/design_docs/profiles/tfm_profile_small.rst
@@ -499,6 +499,8 @@
    +--------------------------------------------+---------------+----------------------------------------+
    | ``TFM_CRYPTO_TEST_ALG_GCM``                | ``OFF``       | Test GCM cryptography mode             |
    +--------------------------------------------+---------------+----------------------------------------+
+   | ``TFM_CRYPTO_TEST_ALG_SHA_384``            | ``OFF``       | Test SHA-384 cryptography algorithm    |
+   +--------------------------------------------+---------------+----------------------------------------+
    | ``TFM_CRYPTO_TEST_ALG_SHA_512``            | ``OFF``       | Test SHA-512 cryptography algorithm    |
    +--------------------------------------------+---------------+----------------------------------------+
    | ``TFM_CRYPTO_TEST_HKDF``                   | ``OFF``       | Test HKDF key derivation algorithm     |
diff --git a/docs/technical_references/instructions/tfm_build_instruction.rst b/docs/technical_references/instructions/tfm_build_instruction.rst
index 3db54c4..de2744e 100644
--- a/docs/technical_references/instructions/tfm_build_instruction.rst
+++ b/docs/technical_references/instructions/tfm_build_instruction.rst
@@ -216,29 +216,35 @@
 false failures from being reported when a smaller Mbed Crypto config is being
 used which does not support all features.
 
-+-----------------------------+-------------------------------------+---------------+
-| Parameter                   | Description                         | Default value |
-+=============================+=====================================+===============+
-| TFM_CRYPTO_TEST_ALG_CBC     | Test CBC cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_CCM     | Test CCM cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_CFB     | Test CFB cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_ECB     | Test ECB cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_CTR     | Test CTR cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_OFB     | Test OFB cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_GCM     | Test GCM cryptography mode          | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ALG_SHA_512 | Test SHA-512 cryptography algorithm | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_HKDF        | Test HKDF key derivation algorithm  | ON            |
-+-----------------------------+-------------------------------------+---------------+
-| TFM_CRYPTO_TEST_ECDH        | Test ECDH key agreement algorithm   | ON            |
-+-----------------------------+-------------------------------------+---------------+
++---------------------------------------+---------------------------------------+---------------+
+| Parameter                             | Description                           | Default value |
++=======================================+=======================================+===============+
+| TFM_CRYPTO_TEST_ALG_CBC               | Test CBC cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_CCM               | Test CCM cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_CFB               | Test CFB cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_ECB               | Test ECB cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_CTR               | Test CTR cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_OFB               | Test OFB cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_GCM               | Test GCM cryptography mode            | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_SHA_384           | Test SHA-384 cryptography algorithm   | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_SHA_512           | Test SHA-512 cryptography algorithm   | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_HKDF                  | Test HKDF key derivation algorithm    | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ECDH                  | Test ECDH key agreement algorithm     | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_CHACHA20              | Test ChaCha20 stream cipher           | ON            |
++---------------------------------------+---------------------------------------+---------------+
+| TFM_CRYPTO_TEST_ALG_CHACHA20_POLY1305 | Test ChaCha20-Poly1305 AEAD algorithm | ON            |
++---------------------------------------+---------------------------------------+---------------+
 
 TF-M Profiles
 -------------