remove unused parameter in psa_cipher_finish.

This commit is contained in:
Moran Peker 2018-03-25 15:44:12 +03:00 committed by itayzafrir
parent 3205a6592b
commit e1210dcac3
3 changed files with 0 additions and 5 deletions

View file

@ -1064,7 +1064,6 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation, psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
uint8_t *output, uint8_t *output,
size_t output_size,
size_t *output_length); size_t *output_length);
psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation); psa_status_t psa_cipher_abort(psa_cipher_operation_t *operation);

View file

@ -1471,7 +1471,6 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation, psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
uint8_t *output, uint8_t *output,
size_t output_size,
size_t *output_length) size_t *output_length)
{ {
int ret = MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE; int ret = MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE;

View file

@ -571,7 +571,6 @@ void cipher_test_positive( int alg_arg, int key_type_arg,
output, output_size, output, output_size,
&output_length) == PSA_SUCCESS ); &output_length) == PSA_SUCCESS );
TEST_ASSERT( psa_cipher_finish( &operation, output + output_length, TEST_ASSERT( psa_cipher_finish( &operation, output + output_length,
output_size,
&output_length) == PSA_SUCCESS ); &output_length) == PSA_SUCCESS );
TEST_ASSERT( psa_cipher_abort( &operation ) == PSA_SUCCESS ); TEST_ASSERT( psa_cipher_abort( &operation ) == PSA_SUCCESS );
@ -631,7 +630,6 @@ void cipher_test_verify_output( int alg_arg, int key_type_arg,
output1, output1_size, output1, output1_size,
&output1_length) == PSA_SUCCESS ); &output1_length) == PSA_SUCCESS );
TEST_ASSERT( psa_cipher_finish( &operation1, output1 + output1_length, TEST_ASSERT( psa_cipher_finish( &operation1, output1 + output1_length,
output1_size - output1_length,
&tmp_output_length) == PSA_SUCCESS ); &tmp_output_length) == PSA_SUCCESS );
output1_length += tmp_output_length; output1_length += tmp_output_length;
@ -647,7 +645,6 @@ void cipher_test_verify_output( int alg_arg, int key_type_arg,
output2, output2_size, &output2_length) == PSA_SUCCESS ); output2, output2_size, &output2_length) == PSA_SUCCESS );
tmp_output_length = 0; tmp_output_length = 0;
TEST_ASSERT( psa_cipher_finish( &operation2, output2 + output2_length, TEST_ASSERT( psa_cipher_finish( &operation2, output2 + output2_length,
output2_size - output2_length,
&tmp_output_length) == PSA_SUCCESS ); &tmp_output_length) == PSA_SUCCESS );
output2_length += tmp_output_length; output2_length += tmp_output_length;