Hi,
I am trying to implement private set intersection using the cryptography
library, and I would like to take the bytes of a private key and do a
hash(key_material, message).
1) How do I get the bytes for an instance of
cryptography.hazmat.backends.openssl.ec._EllipticCurvePrivateKey
2) Is th
1) By get the bytes I assume you mean for the private value? In that case,
key.private_numbers().private_value will give you it as an integer, then
you can encode it as you like.
2) No, EC private keys do not mathetmatically support encryption. If you
want to encrypt with an elliptic curve private