mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	psa: Fix unused variable warnings
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
		
							parent
							
								
									89b4aa7efc
								
							
						
					
					
						commit
						7a55deb5a8
					
				@ -119,6 +119,8 @@ static psa_status_t psa_aead_setup(
 | 
			
		||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
 | 
			
		||||
 | 
			
		||||
        default:
 | 
			
		||||
            (void) status;
 | 
			
		||||
            (void) key_buffer;
 | 
			
		||||
            return( PSA_ERROR_NOT_SUPPORTED );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -214,6 +216,11 @@ psa_status_t mbedtls_psa_aead_encrypt(
 | 
			
		||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
 | 
			
		||||
    {
 | 
			
		||||
        (void) tag;
 | 
			
		||||
        (void) nonce;
 | 
			
		||||
        (void) nonce_length;
 | 
			
		||||
        (void) additional_data;
 | 
			
		||||
        (void) additional_data_length;
 | 
			
		||||
        (void) plaintext;
 | 
			
		||||
        return( PSA_ERROR_NOT_SUPPORTED );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -321,6 +328,11 @@ psa_status_t mbedtls_psa_aead_decrypt(
 | 
			
		||||
    else
 | 
			
		||||
#endif /* MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305 */
 | 
			
		||||
    {
 | 
			
		||||
        (void) nonce;
 | 
			
		||||
        (void) nonce_length;
 | 
			
		||||
        (void) additional_data;
 | 
			
		||||
        (void) additional_data_length;
 | 
			
		||||
        (void) plaintext;
 | 
			
		||||
        return( PSA_ERROR_NOT_SUPPORTED );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1059,6 +1059,7 @@ psa_status_t psa_driver_wrapper_cipher_encrypt_setup(
 | 
			
		||||
        default:
 | 
			
		||||
            /* Key is declared with a lifetime not known to us */
 | 
			
		||||
            (void)status;
 | 
			
		||||
            (void)operation;
 | 
			
		||||
            (void)key_buffer;
 | 
			
		||||
            (void)key_buffer_size;
 | 
			
		||||
            (void)alg;
 | 
			
		||||
@ -2077,6 +2078,7 @@ psa_status_t psa_driver_wrapper_mac_sign_setup(
 | 
			
		||||
        default:
 | 
			
		||||
            /* Key is declared with a lifetime not known to us */
 | 
			
		||||
            (void) status;
 | 
			
		||||
            (void) operation;
 | 
			
		||||
            (void) key_buffer;
 | 
			
		||||
            (void) key_buffer_size;
 | 
			
		||||
            (void) alg;
 | 
			
		||||
@ -2148,6 +2150,7 @@ psa_status_t psa_driver_wrapper_mac_verify_setup(
 | 
			
		||||
        default:
 | 
			
		||||
            /* Key is declared with a lifetime not known to us */
 | 
			
		||||
            (void) status;
 | 
			
		||||
            (void) operation;
 | 
			
		||||
            (void) key_buffer;
 | 
			
		||||
            (void) key_buffer_size;
 | 
			
		||||
            (void) alg;
 | 
			
		||||
 | 
			
		||||
@ -236,6 +236,7 @@ static psa_status_t mac_init(
 | 
			
		||||
    else
 | 
			
		||||
#endif /* BUILTIN_ALG_HMAC */
 | 
			
		||||
    {
 | 
			
		||||
        (void) operation;
 | 
			
		||||
        status = PSA_ERROR_NOT_SUPPORTED;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user