Skip to content

Commit

Permalink
Clean up output from cipher_aead_demo
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mpg committed Feb 8, 2022
1 parent 5e6c884 commit c82504e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/cipher/cipher_aead_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit c82504e

Please sign in to comment.