Asymmetric signature size definitions for the PSA Crypto API. More...
Asymmetric signature size definitions for the PSA Crypto API.
Definition in file sizes.h.
 Include dependency graph for sizes.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| #define | PSA_SIGNATURE_MAX_SIZE /* implementation-defined value */ | 
| A sufficient signature buffer size for psa_sign_message() and psa_sign_hash(), for any of the supported key types and asymmetric signature algorithms.  More... | |
| #define | PSA_ECDSA_SIGNATURE_SIZE(curve_bits) ((size_t)(PSA_BITS_TO_BYTES(curve_bits) * 2)) | 
| ECDSA signature size for a given curve bit size.  More... | |
| #define | PSA_SIGN_OUTPUT_SIZE(key_type, key_bits, alg) | 
| Sufficient signature buffer size for psa_sign_message() and psa_sign_hash().  More... | |
| #define PSA_ECDSA_SIGNATURE_SIZE | ( | curve_bits | ) | ((size_t)(PSA_BITS_TO_BYTES(curve_bits) * 2)) | 
| #define PSA_SIGN_OUTPUT_SIZE | ( | key_type, | |
| key_bits, | |||
| alg | |||
| ) | 
Sufficient signature buffer size for psa_sign_message() and psa_sign_hash().
If the size of the signature buffer is at least this large, it is guaranteed that psa_sign_message() and psa_sign_hash() 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_SIGNATURE_MAX_SIZE.
| key_type | An asymmetric key type. This can be a key pair type or a public key type. | 
| key_bits | The size of the key in bits. | 
| alg | The signature algorithm. | 
| #define PSA_SIGNATURE_MAX_SIZE /* implementation-defined value */ | 
A sufficient signature buffer size for psa_sign_message() and psa_sign_hash(), for any of the supported key types and asymmetric signature algorithms.
If the size of the signature buffer is at least this large, it is guaranteed that psa_sign_message() and psa_sign_hash() will not fail due to an insufficient buffer size.
See also PSA_SIGN_OUTPUT_SIZE().