From 462d35dc7232913adc29d169a7fce8bf5c9077a4 Mon Sep 17 00:00:00 2001 From: James Almer Date: Thu, 3 Apr 2025 17:48:30 -0300 Subject: [PATCH] avutil/tests/aes_ctr: reindent after the previous commit Signed-off-by: James Almer --- libavutil/tests/aes_ctr.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libavutil/tests/aes_ctr.c b/libavutil/tests/aes_ctr.c index 94b0201c7b..6f21b8bda1 100644 --- a/libavutil/tests/aes_ctr.c +++ b/libavutil/tests/aes_ctr.c @@ -45,36 +45,36 @@ int main (void) const uint8_t *iv; for (int i = 0; i < 2; i++) { - ae = av_aes_ctr_alloc(); - ad = av_aes_ctr_alloc(); + ae = av_aes_ctr_alloc(); + ad = av_aes_ctr_alloc(); - if (!ae || !ad) - goto ERROR; + if (!ae || !ad) + goto ERROR; - if (av_aes_ctr_init(ae, (const uint8_t*)"0123456789abcdef") < 0) - goto ERROR; + if (av_aes_ctr_init(ae, (const uint8_t*)"0123456789abcdef") < 0) + goto ERROR; - if (av_aes_ctr_init(ad, (const uint8_t*)"0123456789abcdef") < 0) - goto ERROR; + if (av_aes_ctr_init(ad, (const uint8_t*)"0123456789abcdef") < 0) + goto ERROR; if (i) av_aes_ctr_set_iv(ae, fixed_iv); else - av_aes_ctr_set_random_iv(ae); - iv = av_aes_ctr_get_iv(ae); - av_aes_ctr_set_full_iv(ad, iv); + av_aes_ctr_set_random_iv(ae); + iv = av_aes_ctr_get_iv(ae); + av_aes_ctr_set_full_iv(ad, iv); - av_aes_ctr_crypt(ae, tmp, plain, sizeof(tmp)); + av_aes_ctr_crypt(ae, tmp, plain, sizeof(tmp)); if (i && memcmp(tmp, encrypted, sizeof(tmp)) != 0) { av_log(NULL, AV_LOG_ERROR, "test failed\n"); goto ERROR; } - av_aes_ctr_crypt(ad, tmp, tmp, sizeof(tmp)); - if (memcmp(tmp, plain, sizeof(tmp)) != 0){ - av_log(NULL, AV_LOG_ERROR, "test failed\n"); - goto ERROR; - } + av_aes_ctr_crypt(ad, tmp, tmp, sizeof(tmp)); + if (memcmp(tmp, plain, sizeof(tmp)) != 0){ + av_log(NULL, AV_LOG_ERROR, "test failed\n"); + goto ERROR; + } av_aes_ctr_free(ae); av_aes_ctr_free(ad);