cache rsa keys longer

This commit is contained in:
cronekorkn 2022-10-19 00:36:20 +02:00
parent 1588a11868
commit 3894e7dfe7
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -22,7 +22,7 @@ class PRNG(object):
return result
@cache_to_disk()
@cache_to_disk(30)
def _generate_deterministic_rsa_private_key(secret_bytes):
return RSA.generate(2048, randfunc=PRNG(secret_bytes)).export_key('DER')