Loading...
Searching...
No Matches
sizes.h File Reference

Asymmetric encryption size definitions for the PSA Crypto API. More...

Detailed Description

Asymmetric encryption 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_ASYMMETRIC_DECRYPT_OUTPUT_MAX_SIZE   /* implementation-defined value */
 A sufficient output buffer size for psa_asymmetric_decrypt(), for any of the supported key types and asymmetric encryption algorithms.
 
#define PSA_ASYMMETRIC_DECRYPT_OUTPUT_SIZE(key_type, key_bits, alg)
 Sufficient output buffer size for psa_asymmetric_decrypt().
 
#define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_MAX_SIZE   /* implementation-defined value */
 A sufficient output buffer size for psa_asymmetric_encrypt(), for any of the supported key types and asymmetric encryption algorithms.
 
#define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE(key_type, key_bits, alg)
 Sufficient output buffer size for psa_asymmetric_encrypt().
 

Macro Definition Documentation

◆ PSA_ASYMMETRIC_DECRYPT_OUTPUT_MAX_SIZE

#define PSA_ASYMMETRIC_DECRYPT_OUTPUT_MAX_SIZE   /* implementation-defined value */

A sufficient output buffer size for psa_asymmetric_decrypt(), for any of the supported key types and asymmetric encryption algorithms.

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

See also PSA_ASYMMETRIC_DECRYPT_OUTPUT_SIZE().

Definition at line 37 of file sizes.h.

◆ PSA_ASYMMETRIC_DECRYPT_OUTPUT_SIZE

#define PSA_ASYMMETRIC_DECRYPT_OUTPUT_SIZE ( key_type,
key_bits,
alg )
Value:
/* implementation-defined value */

Sufficient output buffer size for psa_asymmetric_decrypt().

If the size of the output buffer is at least this large, it is guaranteed that psa_asymmetric_decrypt() 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_ASYMMETRIC_DECRYPT_OUTPUT_MAX_SIZE.

Parameters
key_typeAn asymmetric key type, either a key pair or a public key.
key_bitsThe size of the key in bits.
algAn asymmetric encryption algorithm: a value of type psa_algorithm_t such that PSA_ALG_IS_ASYMMETRIC_ENCRYPTION(alg) is true.
Returns
A sufficient output buffer size for the specified asymmetric encryption algorithm and key parameters. 0 if the asymmetric encryption algorithm and key parameters are not supported. Unspecified if the parameters are not valid.

Definition at line 59 of file sizes.h.

◆ PSA_ASYMMETRIC_ENCRYPT_OUTPUT_MAX_SIZE

#define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_MAX_SIZE   /* implementation-defined value */

A sufficient output buffer size for psa_asymmetric_encrypt(), for any of the supported key types and asymmetric encryption algorithms.

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

See also PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE().

Definition at line 71 of file sizes.h.

◆ PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE

#define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE ( key_type,
key_bits,
alg )
Value:
/* implementation-defined value */

Sufficient output buffer size for psa_asymmetric_encrypt().

If the size of the output buffer is at least this large, it is guaranteed that psa_asymmetric_encrypt() 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_ASYMMETRIC_ENCRYPT_OUTPUT_MAX_SIZE.

Parameters
key_typeAn asymmetric key type, either a key pair or a public key.
key_bitsThe size of the key in bits.
algAn asymmetric encryption algorithm: a value of type psa_algorithm_t such that PSA_ALG_IS_ASYMMETRIC_ENCRYPTION(alg) is true.
Returns
A sufficient output buffer size for the specified asymmetric encryption algorithm and key parameters. 0 if the asymmetric encryption algorithm and key parameters are not supported. Unspecified if the parameters are not valid.

Definition at line 92 of file sizes.h.