From 0568decc0c1d96546178ad16985da0d3913437e2 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 2 Feb 2023 12:05:41 +0100 Subject: [PATCH] ecdsa: add comment for ecdsa_context Signed-off-by: Valerio Setti --- include/mbedtls/ecdsa.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/mbedtls/ecdsa.h b/include/mbedtls/ecdsa.h index 0a420400d..9847a6836 100644 --- a/include/mbedtls/ecdsa.h +++ b/include/mbedtls/ecdsa.h @@ -71,6 +71,11 @@ extern "C" { * \warning Performing multiple operations concurrently on the same * ECDSA context is not supported; objects of this type * should not be shared between multiple threads. + * + * \note pk_wrap module assumes that "ecdsa_context" is identical + * to "ecp_keypair" (see for example structure + * "mbedtls_eckey_info" where ECDSA sign/verify functions + * are used also for EC key) */ typedef mbedtls_ecp_keypair mbedtls_ecdsa_context;