Merge pull request #4137 from stevew817/fix/unused_argument_warnings

Fix/unused argument warnings
This commit is contained in:
Gilles Peskine 2021-02-15 11:20:58 +01:00 committed by GitHub
commit 9d5abfed8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -470,6 +470,8 @@ static int ecdsa_sign_det_restartable( mbedtls_ecp_group *grp,
sign:
#endif
#if defined(MBEDTLS_ECDSA_SIGN_ALT)
(void) f_rng_blind;
(void) p_rng_blind;
ret = mbedtls_ecdsa_sign( grp, r, s, d, buf, blen,
mbedtls_hmac_drbg_random, p_rng );
#else

View File

@ -4535,6 +4535,7 @@ psa_status_t psa_aead_encrypt( mbedtls_svc_key_id_t key,
else
#endif /* MBEDTLS_CHACHAPOLY_C */
{
(void) tag;
return( PSA_ERROR_NOT_SUPPORTED );
}
@ -5041,6 +5042,7 @@ psa_status_t psa_key_derivation_output_bytes(
#endif /* MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF ||
* MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS */
{
(void) kdf_alg;
return( PSA_ERROR_BAD_STATE );
}
@ -5525,6 +5527,9 @@ static psa_status_t psa_key_derivation_input_internal(
#endif /* MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS */
{
/* This can't happen unless the operation object was not initialized */
(void) data;
(void) data_length;
(void) kdf_alg;
return( PSA_ERROR_BAD_STATE );
}