1This library contains a python wrapper over OpenSSL/BoringSSL elliptic curves. 2 3Example Usage: 4 5:: 6 7 from private_join_and_compute.py.ciphers import ec_cipher 8 from private_join_and_compute.py.crypto_util import supported_curves 9 from private_join_and_compute.py.crypto_util import supported_hashes 10 11 client_cipher = ec_cipher.EcCipher( 12 curve_id=supported_curves.SupportedCurve.SECP256R1.id, 13 hash_type=supported_hashes.HashType.SHA256, 14 private_key_bytes=None) # "None" generates a new key 15 encrypted_point = client_cipher.Encrypt(b"id_bytes") 16 17