sizes.h File Reference

Key agreement size definitions for the PSA Crypto API. More...

Detailed Description

Key agreement size definitions for the PSA Crypto API.

Author
Armin Wolf wolf..nosp@m.armi.nosp@m.n@mai.nosp@m.lbox.nosp@m..tu-d.nosp@m.resd.nosp@m.en.de
Lena Boeckmann lena..nosp@m.boec.nosp@m.kmann.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file sizes.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE   /* implementation-defined value */
 Sufficient output buffer size for psa_raw_key_agreement(), for any of the supported key types and key agreement algorithms. More...
 
#define PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE(key_type, key_bits)   /* implementation-defined value */
 Sufficient output buffer size for psa_raw_key_agreement(). More...
 

Macro Definition Documentation

◆ PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE

#define PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE   /* implementation-defined value */

Sufficient output buffer size for psa_raw_key_agreement(), for any of the supported key types and key agreement algorithms.

If the size of the output buffer is at least this large, it is guaranteed that psa_raw_key_agreement() will not fail due to an insufficient buffer size.

See also PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE().

Definition at line 37 of file sizes.h.

◆ PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE

#define PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE (   key_type,
  key_bits 
)    /* implementation-defined value */

Sufficient output buffer size for psa_raw_key_agreement().

If the size of the output buffer is at least this large, it is guaranteed that psa_raw_key_agreement() will not fail due to an insufficient buffer size. The actual size of the output might be smaller in any given call.

See also PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE.

Parameters
key_typeA supported key type.
key_bitsThe size of the key in bits.
Returns
A sufficient output buffer size for the specified key type and size. 0 if key type is not supported. If the parameters are not valid, the return value is unspecified.

Definition at line 56 of file sizes.h.