Task7_3.py 230 B

123456789
  1. def generatePrivateKey(size):
  2. start=timer()
  3. private_key = dsa.generate_private_key(key_size=size,backend=default_backend())
  4. end=timer()
  5. print("Time Taken to generate key is ",(end-start))
  6. return private_key