Clean up output from cipher_aead_demo

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 <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-02-08 11:31:36 +01:00
parent 5e6c884315
commit c82504e22c

View file

@ -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 );