From 23b9d149a2841a2d69c97df60c75e9a77b209133 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 2 Aug 2018 15:08:46 +0200 Subject: [PATCH] Fix indentation in generated C file The indentation now complies with Emacs's "k&r" style. --- scripts/generate_psa_constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate_psa_constants.py b/scripts/generate_psa_constants.py index bc2302aff..5a5d2e5cf 100755 --- a/scripts/generate_psa_constants.py +++ b/scripts/generate_psa_constants.py @@ -71,8 +71,8 @@ static int psa_snprint_algorithm(char *buffer, size_t buffer_size, psa_algorithm_t padding_mode = -1; psa_algorithm_t alg_without_padding = alg; if (PSA_ALG_IS_CIPHER(alg) && PSA_ALG_IS_BLOCK_CIPHER(alg)) { - padding_mode = alg & PSA_ALG_BLOCK_CIPHER_PADDING_MASK; - alg_without_padding = alg & ~PSA_ALG_BLOCK_CIPHER_PADDING_MASK; + padding_mode = alg & PSA_ALG_BLOCK_CIPHER_PADDING_MASK; + alg_without_padding = alg & ~PSA_ALG_BLOCK_CIPHER_PADDING_MASK; } switch (alg_without_padding) { %(algorithm_cases)s