# QCLI sub-group: Crypto

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html)

The command in the Crypto sub-group test the PKA module.

## unittest

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html)

This command runs unit-test cases of PKA modules.

The command is available only if both CONFIG\_MBEDTLS\_USE\_PKA and CONFIG\_MBEDTLS\_PKA\_TEST
            are configured to `y`.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| Module | String | PKA modules to run:<ul class="ul" id="pka_unittest__ul_b4f_ynj_kdc"><br>                                <li class="li"><code class="ph codeph">mpi</code></li><br><br>                                <li class="li"><code class="ph codeph">rsa</code></li><br><br>                                <li class="li"><code class="ph codeph">dh</code></li><br><br>                                <li class="li"><code class="ph codeph">ecp</code></li><br><br>                                <li class="li"><code class="ph codeph">ecp</code></li><br><br>                                <li class="li"><code class="ph codeph">ecdsa</code></li><br><br>                                <li class="li"><code class="ph codeph">all</code></li><br><br>                            </ul> |
| verbose | 0, 1 | Enable verbose log or not. |

## kdftest

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html)

This command runs KDF driver test, which generates hardware key with user input.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| user\_input | String | Software user input for KDF operation. It must be exactly 32 hexadecimal characters. |

## kdfcryptotest

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_crypto.html)

This command verifies the hardware key, which is generated by the KDF driver.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| kdf\_key\_input | String | Software user input for KDF operation. It must be exactly 32 hexadecimal characters. |
| sw\_key | String | Software key to compare. It must be exactly 32 hexadecimal characters. |
| plaintext\_length | Number | Length of plain text in bytes. It must be a multiple of 16. If the command doesn't include the parameter, the default length is 16 bytes. |

Last Published: Jun 03, 2026

[Previous Topic
QCLI sub-group: QCC](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_qcc.md) [Next Topic
QCLI sub-group: SecureFs](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_securefs.md)