Skip to content

Commit

Permalink
Merge pull request #66 from web-push-libs/public_bytes
Browse files Browse the repository at this point in the history
Use public_bytes() method in test
  • Loading branch information
martinthomson authored Feb 23, 2023
2 parents 253903e + 914979e commit 9d00a51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/http_ece/tests/test_ece.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def make_key():
class TestEce(unittest.TestCase):
def setUp(self):
self.private_key = make_key()
self.dh = self.private_key.public_key().public_numbers().encode_point()
self.dh = self.private_key.public_key().public_bytes(
Encoding.X962, PublicFormat.UncompressedPoint
)
self.m_key = os.urandom(16)
self.m_salt = os.urandom(16)

Expand Down

0 comments on commit 9d00a51

Please sign in to comment.