From ff8ddd1cb5ad6a2d38e8e07632875512b6b35d73 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Wed, 21 Feb 2018 05:28:12 -0500 Subject: [PATCH] Documentation fix Added a description of what "same engines" mean --- include/mbedtls/pk_info.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/mbedtls/pk_info.h b/include/mbedtls/pk_info.h index 002dd4cd7..89752cea9 100644 --- a/include/mbedtls/pk_info.h +++ b/include/mbedtls/pk_info.h @@ -228,10 +228,10 @@ struct mbedtls_pk_info_t * type does not match the semantic type of \c prv (RSA, ECC or other), * then \c check_pair_func must return #MBEDTLS_ERR_PK_TYPE_MISMATCH. * - * If \c pub and \c prv are opaque keys from the same engines (i.e. ''), - * then \c check_pair_func must return 0, #MBEDTLS_ERR_PK_TYPE_MISMATCH, or - * #MBEDTLS_ERR_RSA_KEY_CHECK_FAILED or #MBEDTLS_ERR_ECP_BAD_INPUT_DATA - * as in the case of transparent keys. + * If \c pub and \c prv are opaque keys from the same engines (i.e. their + * pk_info fields are equal), then \c check_pair_func must return 0, + * #MBEDTLS_ERR_PK_TYPE_MISMATCH, or #MBEDTLS_ERR_RSA_KEY_CHECK_FAILED + * or #MBEDTLS_ERR_ECP_BAD_INPUT_DATA as in the case of transparent keys. * * If \c pub is an opaque key which is not from the same engine as \c prv, * then \c check_pair_func may either return a semantically correct status