PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE macro
Sufficient output buffer size for psa_raw_key_agreement(). This macro returns a compile-time constant if its arguments are compile-time constants. \warning This macro may evaluate its arguments multiple times or zero times, so you should not pass arguments that contain side effects. See also #PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE.
Arguments
key_type
A supported key type.
key_bits
The size of the key in bits.
Return value
If the parameters are valid and supported, return a buffer size in bytes that guarantees that psa_raw_key_agreement() will not fail with #PSA_ERROR_BUFFER_TOO_SMALL. If the parameters are a valid combination that is not supported, return either a sensible size or 0. If the parameters are not valid, the return value is unspecified.
![]()
#define PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE(key_type, key_bits) \