Asymmetric encryption size definitions for the PSA Crypto API. More...
Asymmetric encryption size definitions for the PSA Crypto API.
Definition in file sizes.h.
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(). | |
#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().
#define PSA_ASYMMETRIC_DECRYPT_OUTPUT_SIZE | ( | key_type, | |
key_bits, | |||
alg ) |
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.
key_type | An asymmetric key type, either a key pair or a public key. |
key_bits | The size of the key in bits. |
alg | An asymmetric encryption algorithm: a value of type psa_algorithm_t such that PSA_ALG_IS_ASYMMETRIC_ENCRYPTION(alg ) is true. |
#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().
#define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE | ( | key_type, | |
key_bits, | |||
alg ) |
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.
key_type | An asymmetric key type, either a key pair or a public key. |
key_bits | The size of the key in bits. |
alg | An asymmetric encryption algorithm: a value of type psa_algorithm_t such that PSA_ALG_IS_ASYMMETRIC_ENCRYPTION(alg ) is true. |