Add missing unused arguments
No algorithm defined case generally doesn't use the operation. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
40ef3a9454
commit
bc94978d8c
1 changed files with 8 additions and 5 deletions
|
@ -397,7 +397,7 @@ psa_status_t mbedtls_psa_aead_set_nonce(
|
||||||
{
|
{
|
||||||
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM)
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM)
|
||||||
if( operation->alg == PSA_ALG_GCM )
|
if( operation->alg == PSA_ALG_GCM )
|
||||||
{
|
{
|
||||||
status = mbedtls_to_psa_error(
|
status = mbedtls_to_psa_error(
|
||||||
|
@ -427,6 +427,7 @@ psa_status_t mbedtls_psa_aead_set_nonce(
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
||||||
{
|
{
|
||||||
|
( void ) operation;
|
||||||
( void ) nonce;
|
( void ) nonce;
|
||||||
( void ) nonce_length;
|
( void ) nonce_length;
|
||||||
|
|
||||||
|
@ -474,6 +475,7 @@ psa_status_t mbedtls_psa_aead_set_lengths(
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
||||||
{
|
{
|
||||||
|
( void ) operation;
|
||||||
( void ) ad_length;
|
( void ) ad_length;
|
||||||
( void ) plaintext_length;
|
( void ) plaintext_length;
|
||||||
|
|
||||||
|
@ -510,8 +512,9 @@ psa_status_t mbedtls_psa_aead_update_ad(
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
||||||
{
|
{
|
||||||
(void) input;
|
( void ) operation;
|
||||||
(void) input_length;
|
( void ) input;
|
||||||
|
( void ) input_length;
|
||||||
|
|
||||||
return ( PSA_ERROR_NOT_SUPPORTED );
|
return ( PSA_ERROR_NOT_SUPPORTED );
|
||||||
}
|
}
|
||||||
|
@ -561,8 +564,8 @@ psa_status_t mbedtls_psa_aead_update(
|
||||||
else
|
else
|
||||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
|
||||||
{
|
{
|
||||||
(void) input;
|
( void ) input;
|
||||||
(void) input_length;
|
( void ) input_length;
|
||||||
|
|
||||||
return ( PSA_ERROR_NOT_SUPPORTED );
|
return ( PSA_ERROR_NOT_SUPPORTED );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue