File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,9 @@ class TlsCipherPref(IntEnum):
274
274
introduce minor changes that could cause the final Kyber standard to differ from the Kyber Round 3 implementation
275
275
available in this preference list."""
276
276
277
+ PQ_DEFAULT = 8 # :
278
+ """Recommended default policy with post-quantum algorithm support. This policy may change over time."""
279
+
277
280
def is_supported (self ):
278
281
"""Return whether this Cipher Preference is available in the underlying platform's TLS implementation"""
279
282
return _awscrt .is_tls_cipher_supported (self .value )
Original file line number Diff line number Diff line change @@ -368,9 +368,9 @@ def test_h2_client(self):
368
368
369
369
self .assertEqual (None , connection .close ().exception (self .timeout ))
370
370
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 )
374
374
375
375
376
376
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments