From dde1abd5724edd5ef5bd915a3d191b69a3ab25ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 9 Apr 2024 12:12:48 +0200 Subject: [PATCH] Update of opaque asymmetric encrypt/decrypt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/Mbed-TLS/mbedtls/pull/8700 merged in the meantime. Signed-off-by: Manuel Pégourié-Gonnard --- .../testing/driver-interface-test-strategy.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/architecture/testing/driver-interface-test-strategy.md b/docs/architecture/testing/driver-interface-test-strategy.md index f4f224b85e..dfec4b3781 100644 --- a/docs/architecture/testing/driver-interface-test-strategy.md +++ b/docs/architecture/testing/driver-interface-test-strategy.md @@ -384,8 +384,10 @@ The following entry points are declared (transparent and opaque): The transparent driver fully implements the declared entry points, and can use any backend: internal or libtestdriver1. -The opaque driver is not implemented at all, neither instumentation nor the -operation: entry points always return `NOT_SUPPORTED`. +The opaque driver implements the declared entry points, and can use any +backend: internal or libtestdriver1. However it does not implement the +instrumentation (hits, forced output/status), as this [was not an immediate +priority](https://github.com/Mbed-TLS/mbedtls/pull/8700#issuecomment-1892466159). Note: the instrumentation also allows forcing a specific output and output length. @@ -528,7 +530,6 @@ we thought about something when writing the test driver, but not when writing test functions/data. Key management: -- `mbedtls_test_opaque_unwrap_key()` is never called. - `mbedtls_test_transparent_generate_key()` is not tested with RSA keys. - `mbedtls_test_transparent_import_key()` is not tested with DH keys. - `mbedtls_test_opaque_import_key()` is not tested with unstructured keys nor @@ -571,9 +572,6 @@ Signature: - `sign_hash()` is not tested with RSA-PSS - No opaque entry point is tested (they're not implemented either). -Asymmetric encryption: -- No opaque entry point is tested (they're not implemented either). - Key agreement: - `mbedtls_test_transparent_key_agreement()` is not tested with FFDH. - No opaque entry point is tested (they're not implemented either).