Skip to content

Instantly share code, notes, and snippets.

@obiyankenobi
obiyankenobi / signature_test.py
Created April 3, 2020 11:43
Measure the number of operations per second involving digital signatures
""" Measure the number of operations per second involving digital signatures.
"""
import timeit
# cryptography library uses OpenSSL under the hood
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec