Task7_5.py 263 B

1234567891011
  1. def verify(signature,private_key,fileName):
  2. data=getData(fileName)
  3. data=data.encode("utf-8")
  4. start=timer()
  5. public_key = private_key.public_key()
  6. public_key.verify(
  7. signature,
  8. data,
  9. hashes.SHA256()
  10. )
  11. end=timer()