aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorValerio Setti <valerio.setti@nordicsemi.no>2024-03-21 16:49:02 +0100
committerValerio Setti <valerio.setti@nordicsemi.no>2024-03-22 14:36:41 +0100
commitac81e23c33189c3d65c03233a71d6724eae03616 (patch)
treed859f0ff41818379eaf156798bdf958b2834bdc3 /include
parentf0d4c9a7e209205d2d34210e75292a8b2fd505c0 (diff)
downloadmbedtls-ac81e23c33189c3d65c03233a71d6724eae03616.zip
mbedtls-ac81e23c33189c3d65c03233a71d6724eae03616.tar.gz
mbedtls-ac81e23c33189c3d65c03233a71d6724eae03616.tar.bz2
pk: add check_pair info to mbedtls_pk_setup_opaque() documentation
This also updates use-psa-crypto.md accordingly. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Diffstat (limited to 'include')
-rw-r--r--include/mbedtls/pk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbedtls/pk.h b/include/mbedtls/pk.h
index e33702f..a3b1363 100644
--- a/include/mbedtls/pk.h
+++ b/include/mbedtls/pk.h
@@ -377,6 +377,9 @@ int mbedtls_pk_setup(mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info);
* In order for the above operations to succeed, the policy of the wrapped PSA
* key must allow the specified algorithm.
*
+ * Opaque PK contexts wrapping an EC keys also support \c mbedtls_pk_check_pair(),
+ * whereas RSA ones do not.
+ *
* \warning The PSA wrapped key must remain valid as long as the wrapping PK
* context is in use, that is at least between the point this function
* is called and the point mbedtls_pk_free() is called on this context.