mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Fix minor issues
Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
		
							parent
							
								
									ff0da72d52
								
							
						
					
					
						commit
						00e54f1133
					
				@ -392,7 +392,7 @@ static psa_status_t cipher_update( mbedtls_psa_cipher_operation_t *operation,
 | 
				
			|||||||
                                   input_length, output, output_length ) );
 | 
					                                   input_length, output, output_length ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if( *output_length > output_size )
 | 
					        if( *output_length > output_size )
 | 
				
			||||||
            return PSA_ERROR_CORRUPTION_DETECTED;
 | 
					            return( PSA_ERROR_CORRUPTION_DETECTED );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return( status );
 | 
					    return( status );
 | 
				
			||||||
@ -492,8 +492,7 @@ static psa_status_t cipher_encrypt( const psa_key_attributes_t *attributes,
 | 
				
			|||||||
    if( status != PSA_SUCCESS )
 | 
					    if( status != PSA_SUCCESS )
 | 
				
			||||||
        goto exit;
 | 
					        goto exit;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    accumulated_length += olength;
 | 
					    *output_length = accumulated_length + olength;
 | 
				
			||||||
    *output_length = accumulated_length;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
exit:
 | 
					exit:
 | 
				
			||||||
    if( status == PSA_SUCCESS )
 | 
					    if( status == PSA_SUCCESS )
 | 
				
			||||||
@ -542,8 +541,7 @@ static psa_status_t cipher_decrypt( const psa_key_attributes_t *attributes,
 | 
				
			|||||||
    if( status != PSA_SUCCESS )
 | 
					    if( status != PSA_SUCCESS )
 | 
				
			||||||
        goto exit;
 | 
					        goto exit;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    accumulated_length += olength;
 | 
					    *output_length = accumulated_length + olength;
 | 
				
			||||||
    *output_length = accumulated_length;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
exit:
 | 
					exit:
 | 
				
			||||||
    if ( status == PSA_SUCCESS )
 | 
					    if ( status == PSA_SUCCESS )
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user