Skip to content

Commit ba5898e

Browse files
authored
Use PQ Default Policy for testing (#631)
1 parent 9d79415 commit ba5898e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

awscrt/io.py

+3
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ class TlsCipherPref(IntEnum):
274274
introduce minor changes that could cause the final Kyber standard to differ from the Kyber Round 3 implementation
275275
available in this preference list."""
276276

277+
PQ_DEFAULT = 8 # :
278+
"""Recommended default policy with post-quantum algorithm support. This policy may change over time."""
279+
277280
def is_supported(self):
278281
"""Return whether this Cipher Preference is available in the underlying platform's TLS implementation"""
279282
return _awscrt.is_tls_cipher_supported(self.value)

test/test_http_client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ def test_h2_client(self):
368368

369369
self.assertEqual(None, connection.close().exception(self.timeout))
370370

371-
@unittest.skipIf(not TlsCipherPref.PQ_TLSv1_0_2021_05.is_supported(), "Cipher pref not supported")
372-
def test_connect_pq_tlsv1_0_2021_05(self):
373-
self._test_connect(secure=True, cipher_pref=TlsCipherPref.PQ_TLSv1_0_2021_05)
371+
@unittest.skipIf(not TlsCipherPref.PQ_DEFAULT.is_supported(), "Cipher pref not supported")
372+
def test_connect_pq_default(self):
373+
self._test_connect(secure=True, cipher_pref=TlsCipherPref.PQ_DEFAULT)
374374

375375

376376
if __name__ == '__main__':

0 commit comments

Comments
 (0)