mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix formatting of PSA_PAKE_OUTPUT_SIZE & PSA_PAKE_INPUT_SIZE macros
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
@ -1760,13 +1760,16 @@ psa_status_t psa_pake_abort( psa_pake_operation_t * operation );
|
|||||||
* recognized, or the parameters are incompatible,
|
* recognized, or the parameters are incompatible,
|
||||||
* return 0.
|
* return 0.
|
||||||
*/
|
*/
|
||||||
#define PSA_PAKE_OUTPUT_SIZE(alg, primitive, output_step) \
|
#define PSA_PAKE_OUTPUT_SIZE(alg, primitive, output_step) \
|
||||||
( alg == PSA_ALG_JPAKE && \
|
( alg == PSA_ALG_JPAKE && \
|
||||||
primitive == PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, \
|
primitive == PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, \
|
||||||
PSA_ECC_FAMILY_SECP_R1, 256) ? \
|
PSA_ECC_FAMILY_SECP_R1, 256) ? \
|
||||||
( output_step == PSA_PAKE_STEP_KEY_SHARE ? 69 : \
|
( \
|
||||||
( output_step == PSA_PAKE_STEP_ZK_PUBLIC ? 66 : 33 ) ) : 0 )
|
output_step == PSA_PAKE_STEP_KEY_SHARE ? 69 : \
|
||||||
|
output_step == PSA_PAKE_STEP_ZK_PUBLIC ? 66 : \
|
||||||
|
33 \
|
||||||
|
) : \
|
||||||
|
0 )
|
||||||
|
|
||||||
/** A sufficient input buffer size for psa_pake_input().
|
/** A sufficient input buffer size for psa_pake_input().
|
||||||
*
|
*
|
||||||
@ -1787,12 +1790,16 @@ psa_status_t psa_pake_abort( psa_pake_operation_t * operation );
|
|||||||
* the input type or PAKE algorithm is not recognized, or
|
* the input type or PAKE algorithm is not recognized, or
|
||||||
* the parameters are incompatible, return 0.
|
* the parameters are incompatible, return 0.
|
||||||
*/
|
*/
|
||||||
#define PSA_PAKE_INPUT_SIZE(alg, primitive, input_step) \
|
#define PSA_PAKE_INPUT_SIZE(alg, primitive, input_step) \
|
||||||
( alg == PSA_ALG_JPAKE && \
|
( alg == PSA_ALG_JPAKE && \
|
||||||
primitive == PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, \
|
primitive == PSA_PAKE_PRIMITIVE(PSA_PAKE_PRIMITIVE_TYPE_ECC, \
|
||||||
PSA_ECC_FAMILY_SECP_R1, 256) ? \
|
PSA_ECC_FAMILY_SECP_R1, 256) ? \
|
||||||
( input_step == PSA_PAKE_STEP_KEY_SHARE ? 69 : \
|
( \
|
||||||
( input_step == PSA_PAKE_STEP_ZK_PUBLIC ? 66 : 33 ) ) : 0 )
|
input_step == PSA_PAKE_STEP_KEY_SHARE ? 69 : \
|
||||||
|
input_step == PSA_PAKE_STEP_ZK_PUBLIC ? 66 : \
|
||||||
|
33 \
|
||||||
|
) : \
|
||||||
|
0 )
|
||||||
|
|
||||||
/** Output buffer size for psa_pake_output() for any of the supported PAKE
|
/** Output buffer size for psa_pake_output() for any of the supported PAKE
|
||||||
* algorithm and primitive suites and output step.
|
* algorithm and primitive suites and output step.
|
||||||
|
Reference in New Issue
Block a user