MengYX
					
					6 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: E63F9C7303E8F604
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/decrypt/qmcMask.js
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -158,14 +158,14 @@ export function QmcMaskCreate58(matrix, superA, superB) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 */ | 
					 | 
					 | 
					 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					function getMaskConfidenceResult(confidence) { | 
					 | 
					 | 
					function getMaskConfidenceResult(confidence) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if (confidence.length === 0) throw "can not match at least one key"; | 
					 | 
					 | 
					    if (confidence.length === 0) throw "can not match at least one key"; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    let result = 0, conf = 0; | 
					 | 
					 | 
					    let result, conf = 0; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    for (let idx in confidence) { | 
					 | 
					 | 
					    for (let idx in confidence) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (confidence[idx] > conf) { | 
					 | 
					 | 
					        if (confidence[idx] > conf) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            result = idx; | 
					 | 
					 | 
					            result = idx; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            conf = confidence[idx]; | 
					 | 
					 | 
					            conf = confidence[idx]; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    return result | 
					 | 
					 | 
					    return parseInt(result) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					/** | 
					 | 
					 | 
					/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |