Skip to content

Commit d1bce16

Browse files
committed
fix: update supported TLS cipher preferences
1 parent 49c98f4 commit d1bce16

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "3d6fffae-2ce4-478f-b410-fce0afe16588",
3+
"type": "bugfix",
4+
"description": "Update the set of supported `TlsCipherPreference` values to reflect the latest capabilities/support from CRT"
5+
}

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/io/TlsCipherPreference.kt

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,54 +19,53 @@ public enum class TlsCipherPreference(public val value: Int) {
1919
SYSTEM_DEFAULT(0),
2020

2121
/**
22-
* This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.
22+
* This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.
2323
*/
24-
@Deprecated("This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.")
24+
@Deprecated("This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.")
2525
KMS_PQ_TLS_V1_0_2019_06(1),
2626

2727
/**
28-
* This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.
28+
* This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.
2929
*/
30-
@Deprecated("This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.")
30+
@Deprecated("This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.")
3131
KMS_PQ_SIKE_TLS_V1_0_2019_11(2),
3232

3333
/**
34-
* This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.
34+
* This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.
3535
*/
36-
@Deprecated("This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.")
36+
@Deprecated("This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.")
3737
KMS_PQ_TLS_V1_0_2020_02(3),
3838

3939
/**
40-
* This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.
40+
* This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.
4141
*/
42-
@Deprecated("This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.")
42+
@Deprecated("This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.")
4343
KMS_PQ_SIKE_TLS_V1_0_2020_02(4),
4444

4545
/**
46-
* This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.
46+
* This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.
4747
*/
48-
@Deprecated("This cipher preference is no longer supported. Use PQ_TLS_V1_0_2021_05 instead.")
48+
@Deprecated("This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.")
4949
KMS_PQ_TLS_V1_0_2020_07(5),
5050

5151
/**
52-
* This TlsCipherPreference supports TLS 1.0 through TLS 1.3, and contains Kyber Round 3 as its highest priority
53-
* PQ algorithm. PQ algorithms in this preference list will be used in hybrid mode, and will be combined with a
54-
* classical ECDHE key exchange.
55-
*
56-
* NIST has announced that Kyber will be first post-quantum key-agreement algorithm that it will standardize.
57-
* However, the NIST standardization process might introduce minor changes that may cause the final Kyber standard
58-
* to differ from the Kyber Round 3 implementation available in this preference list.
59-
*
60-
* Since this TlsCipherPreference contains algorithms that have not yet been officially standardized by NIST, this
61-
* preference list, and any of the PQ algorithms in it, may stop being supported at any time.
62-
*
63-
* For more info see:
64-
* - https://tools.ietf.org/html/draft-campagna-tls-bike-sike-hybrid
65-
* - https://datatracker.ietf.org/doc/html/draft-ietf-tls-hybrid-design
66-
* - https://aws.amazon.com/blogs/security/how-to-tune-tls-for-hybrid-post-quantum-cryptography-with-kyber/
67-
* - https://nvlpubs.nist.gov/nistpubs/ir/2022/NIST.IR.8413.pdf
52+
* This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.
6853
*/
54+
@Deprecated("This cipher preference is no longer supported. Use PQ_TLSV1_2_2024_10 instead.")
6955
PQ_TLS_V1_0_2021_05(6),
56+
57+
/**
58+
* This TLS cipher preference list contains post-quantum key exchange algorithms that have been standardized by
59+
* NIST. PQ algorithms in this preference list will be used in hybrid mode, and always combined with a classical
60+
* ECDHE key exchange.
61+
*/
62+
PQ_TLSV1_2_2024_10(7),
63+
64+
/**
65+
* Recommended default policy with post-quantum algorithm support. This policy may change over time.
66+
*/
67+
PQ_DEFAULT(8),
68+
7069
;
7170

7271
/**

0 commit comments

Comments
 (0)