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:
parent
5e6c884315
commit
c82504e22c
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ static void aead_info( const mbedtls_cipher_context_t *ctx, size_t tag_len )
|
||||||
: mode == MBEDTLS_MODE_CHACHAPOLY ? "ChachaPoly"
|
: 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 );
|
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;
|
p += tag_len;
|
||||||
|
|
||||||
olen = p - out;
|
olen = p - out;
|
||||||
print_buf( "cipher", out, olen );
|
print_buf( "out", out, olen );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
Loading…
Reference in a new issue