Merge pull request #6878 from gilles-peskine-arm/code-style-casts-psa-headers

Don't restyle some PSA macros
This commit is contained in:
Gilles Peskine 2023-01-10 22:09:13 +01:00 committed by GitHub
commit b4ffe781ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,13 @@
* value, check with the Arm PSA framework group to pick one that other
* domains aren't already using. */
/* Tell uncrustify not to touch the constant definitions, otherwise
* it might change the spacing to something that is not PSA-compliant
* (e.g. adding a space after casts).
*
* *INDENT-OFF*
*/
/** The action was completed successfully. */
#define PSA_SUCCESS ((psa_status_t)0)
@ -328,6 +335,8 @@
*/
#define PSA_ERROR_DATA_INVALID ((psa_status_t)-153)
/* *INDENT-ON* */
/**@}*/
/** \defgroup crypto_types Key and algorithm types
@ -883,7 +892,9 @@
(alg) & PSA_ALG_KEY_DERIVATION_STRETCHING_FLAG)
/** An invalid algorithm identifier value. */
/* *INDENT-OFF* (https://github.com/ARM-software/psa-arch-tests/issues/337) */
#define PSA_ALG_NONE ((psa_algorithm_t)0)
/* *INDENT-ON* */
#define PSA_ALG_HASH_MASK ((psa_algorithm_t)0x000000ff)
/** MD5 */
@ -2378,7 +2389,9 @@
/** The null key identifier.
*/
/* *INDENT-OFF* (https://github.com/ARM-software/psa-arch-tests/issues/337) */
#define PSA_KEY_ID_NULL ((psa_key_id_t)0)
/* *INDENT-ON* */
/** The minimum value for a key identifier chosen by the application.
*/
#define PSA_KEY_ID_USER_MIN ((psa_key_id_t)0x00000001)