Known-answer tests of the hardware accelerators.
More...
Known-answer tests of the hardware accelerators.
Feeds the FIPS 180-4 and FIPS 197 examples through the hardware hooks (see Crypto). An algorithm that fails stays in software from then on. Built with CONFIG_CRYPTO_SELFTEST, which also checks each algorithm before its first hardware use.
◆ pbl_crypto_alg
Algorithm.
| Enumerator |
|---|
| PBL_CRYPTO_ALG_SHA256 | SHA-256.
|
| PBL_CRYPTO_ALG_AES | AES, every key size, both ways.
|
◆ pbl_crypto_selftest()
Check the accelerator of an algorithm.
- Parameters
-
- Return values
-
| 0 | if the accelerator returned the expected results. |
| -ENODEV | if there is no accelerator for alg, or it is not ready. |
| -EIO | if it returned a wrong result; the algorithm stays in software from then on. |