mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-24 15:02:55 +00:00
PSA PAKE: Add dummy operation context
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
508afeca67
commit
8a09ca9d94
@ -494,6 +494,25 @@ static inline struct psa_pake_cipher_suite_s psa_pake_cipher_suite(
|
|||||||
|
|
||||||
return cipher_suite;
|
return cipher_suite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct psa_pake_operation_s
|
||||||
|
{
|
||||||
|
psa_algorithm_t alg;
|
||||||
|
union
|
||||||
|
{
|
||||||
|
/* Make the union non-empty even with no supported algorithms. */
|
||||||
|
uint8_t dummy;
|
||||||
|
} ctx;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* This only zeroes out the first byte in the union, the rest is unspecified. */
|
||||||
|
#define PSA_PAKE_OPERATION_INIT {0, {0}}
|
||||||
|
static inline struct psa_pake_operation_s psa_pake_operation_init( void )
|
||||||
|
{
|
||||||
|
const struct psa_pake_operation_s v = PSA_PAKE_OPERATION_INIT;
|
||||||
|
return( v );
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user