mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Remove superfluous check
mac size is previously checked to not be less than 4, so it can't be zero anymore at this point. Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
		
							parent
							
								
									cd64093222
								
							
						
					
					
						commit
						1fb691aea9
					
				@ -3022,8 +3022,7 @@ static psa_status_t psa_mac_setup( psa_mac_operation_t *operation,
 | 
			
		||||
    if( PSA_ALG_IS_HMAC( alg ) )
 | 
			
		||||
    {
 | 
			
		||||
        /* Sanity check. This shouldn't fail on a valid configuration. */
 | 
			
		||||
        if( operation->mac_size == 0 ||
 | 
			
		||||
            operation->mac_size > sizeof( operation->ctx.hmac.opad ) )
 | 
			
		||||
        if( operation->mac_size > sizeof( operation->ctx.hmac.opad ) )
 | 
			
		||||
        {
 | 
			
		||||
            status = PSA_ERROR_NOT_SUPPORTED;
 | 
			
		||||
            goto exit;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user