From c82504e22cca38f1c5e0ba6430eec3698d778703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 8 Feb 2022 11:31:36 +0100 Subject: [PATCH] Clean up output from cipher_aead_demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Used to print "cipher:" when it was the cipher part of a program that had both cipher and PSA. Now it doesn't really make sense. Align the output to match the PSA version of this program. Signed-off-by: Manuel Pégourié-Gonnard --- programs/cipher/cipher_aead_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cipher/cipher_aead_demo.c b/programs/cipher/cipher_aead_demo.c index c92eab09d..366b9a3ec 100644 --- a/programs/cipher/cipher_aead_demo.c +++ b/programs/cipher/cipher_aead_demo.c @@ -177,7 +177,7 @@ static void aead_info( const mbedtls_cipher_context_t *ctx, size_t tag_len ) : mode == MBEDTLS_MODE_CHACHAPOLY ? "ChachaPoly" : "???"; - printf( "cipher: %s, %d, %s, %u\n", + printf( "%s, %d, %s, %u\n", ciph, key_bits, mode_str, (unsigned) tag_len ); } @@ -208,7 +208,7 @@ static int aead_encrypt( mbedtls_cipher_context_t *ctx, size_t tag_len, p += tag_len; olen = p - out; - print_buf( "cipher", out, olen ); + print_buf( "out", out, olen ); exit: return( ret );