cache rsa keys longer
This commit is contained in:
		
							parent
							
								
									1588a11868
								
							
						
					
					
						commit
						3894e7dfe7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -22,7 +22,7 @@ class PRNG(object): | ||||||
|         return result |         return result | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @cache_to_disk() | @cache_to_disk(30) | ||||||
| def _generate_deterministic_rsa_private_key(secret_bytes): | def _generate_deterministic_rsa_private_key(secret_bytes): | ||||||
|     return RSA.generate(2048, randfunc=PRNG(secret_bytes)).export_key('DER') |     return RSA.generate(2048, randfunc=PRNG(secret_bytes)).export_key('DER') | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue