PEP8: more applied
This commit is contained in:
		
							parent
							
								
									5f6a1245ff
								
							
						
					
					
						commit
						8bcc875676
					
				
					 34 changed files with 123 additions and 132 deletions
				
			
		| 
						 | 
				
			
			@ -1,8 +1,5 @@
 | 
			
		|||
#!/usr/bin/env python3
 | 
			
		||||
import hashlib
 | 
			
		||||
import shutil
 | 
			
		||||
import subprocess
 | 
			
		||||
import tempfile
 | 
			
		||||
import urllib.request
 | 
			
		||||
import json
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,7 +32,7 @@ def rsa_verify(message, signature, key):
 | 
			
		|||
    signature = signature[2:]
 | 
			
		||||
    if not b('\x00') in signature:
 | 
			
		||||
        return False
 | 
			
		||||
    signature = signature[signature.index(b('\x00'))+1:]
 | 
			
		||||
    signature = signature[signature.index(b('\x00')) +1:]
 | 
			
		||||
    if not signature.startswith(b('\x30\x31\x30\x0D\x06\x09\x60\x86\x48\x01\x65\x03\x04\x02\x01\x05\x00\x04\x20')):
 | 
			
		||||
        return False
 | 
			
		||||
    signature = signature[19:]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue