test: add XOF dispatch tests to driver wrapper suite#773
Conversation
Signed-off-by: Yi Wu <yi.wu2@arm.com>
1ffa094 to
aa4e4a3
Compare
Signed-off-by: Yi Wu <yi.wu2@arm.com>
|
Hash values used in test are taken from TF-PSA-Crypto/tests/suites/test_suite_psa_crypto_xof.data Lines 6 to 9 in 5ed7d72 |
bjwtaylor
left a comment
There was a problem hiding this comment.
I might be worth doing a fixup on the fix commit. Though otherwise looks good.
minosgalanakis
left a comment
There was a problem hiding this comment.
This covers the setup-time dispatch/fallback path for XOF, which may be the intended scope here.
I need to be clear because the issue this PR is addressing is not. I will comment there.
I think we should probably test the scenario of unsupported XOF algorithm distinct from SHAKE128/SHAKE256.
That means testing that a value where PSA_ALG_IS_XOF(alg) is true, but neither the test driver nor builtin supports it. This would exercise “driver returns not supported, builtin returns not supported, final result is PSA_ERROR_NOT_SUPPORTED”
| depends_on:PSA_WANT_ALG_JPAKE:PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC:PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT:PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT:PSA_WANT_ECC_SECP_R1_256:PSA_WANT_ALG_SHA_256:PSA_WANT_ALG_TLS12_PSK_TO_MS:MBEDTLS_PSA_BUILTIN_ALG_JPAKE | ||
| ecjpake_rounds:PSA_ALG_JPAKE(PSA_ALG_SHA_256):PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, PSA_ECC_FAMILY_SECP_R1, 256):PSA_ALG_TLS12_PSK_TO_MS(PSA_ALG_SHA_256):"abcdef":0:0 | ||
|
|
||
| XOF dispatch: SHAKE128, computed by the driver |
There was a problem hiding this comment.
We need test cases for SHAKE256 too.
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Description
Add XOF dispatch test to
test_suite_psa_crypto_driver_wrappersIssue: #703
PR checklist