mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	PK rsa_verify: check signature length
This commit is contained in:
		
							parent
							
								
									15699380e5
								
							
						
					
					
						commit
						ac4cd36297
					
				@ -62,7 +62,8 @@ static int rsa_verify_wrap( void *ctx,
 | 
			
		||||
                   const unsigned char *hash, const md_info_t *md_info,
 | 
			
		||||
                   const unsigned char *sig, size_t sig_len )
 | 
			
		||||
{
 | 
			
		||||
    ((void) sig_len);
 | 
			
		||||
    if( sig_len != ((rsa_context *) ctx)->len )
 | 
			
		||||
        return( POLARSSL_ERR_RSA_VERIFY_FAILED );
 | 
			
		||||
 | 
			
		||||
    return( rsa_pkcs1_verify( (rsa_context *) ctx,
 | 
			
		||||
                RSA_PUBLIC, md_info->type, 0, hash, sig ) );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user