Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
ciphers/ | H | 25-Apr-2025 | - | 251 | 175 | |
crypto_util/ | H | 25-Apr-2025 | - | 2,488 | 1,921 | |
BUILD | H A D | 25-Apr-2025 | 1.6 KiB | 44 | 40 | |
README | H A D | 25-Apr-2025 | 553 | 17 | 11 | |
__init__.py | H A D | 25-Apr-2025 | 576 | 14 | 0 |
README
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