This is a fork due to permission issues

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of 6_songs-from-the-cloud by MakingMusicWorkshop

Committer:
timbeight
Date:
Thu May 19 16:02:10 2016 +0000
Revision:
1:0ddbe2d3319c
Parent:
0:f7c60d3e7b8a
This is my first commit while in the class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maclobdell 0:f7c60d3e7b8a 1 /**
maclobdell 0:f7c60d3e7b8a 2 * \file ssl_ciphersuites.c
maclobdell 0:f7c60d3e7b8a 3 *
maclobdell 0:f7c60d3e7b8a 4 * \brief SSL ciphersuites for mbed TLS
maclobdell 0:f7c60d3e7b8a 5 *
maclobdell 0:f7c60d3e7b8a 6 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
maclobdell 0:f7c60d3e7b8a 7 * SPDX-License-Identifier: Apache-2.0
maclobdell 0:f7c60d3e7b8a 8 *
maclobdell 0:f7c60d3e7b8a 9 * Licensed under the Apache License, Version 2.0 (the "License"); you may
maclobdell 0:f7c60d3e7b8a 10 * not use this file except in compliance with the License.
maclobdell 0:f7c60d3e7b8a 11 * You may obtain a copy of the License at
maclobdell 0:f7c60d3e7b8a 12 *
maclobdell 0:f7c60d3e7b8a 13 * http://www.apache.org/licenses/LICENSE-2.0
maclobdell 0:f7c60d3e7b8a 14 *
maclobdell 0:f7c60d3e7b8a 15 * Unless required by applicable law or agreed to in writing, software
maclobdell 0:f7c60d3e7b8a 16 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
maclobdell 0:f7c60d3e7b8a 17 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
maclobdell 0:f7c60d3e7b8a 18 * See the License for the specific language governing permissions and
maclobdell 0:f7c60d3e7b8a 19 * limitations under the License.
maclobdell 0:f7c60d3e7b8a 20 *
maclobdell 0:f7c60d3e7b8a 21 * This file is part of mbed TLS (https://tls.mbed.org)
maclobdell 0:f7c60d3e7b8a 22 */
maclobdell 0:f7c60d3e7b8a 23
maclobdell 0:f7c60d3e7b8a 24 #if !defined(MBEDTLS_CONFIG_FILE)
maclobdell 0:f7c60d3e7b8a 25 #include "mbedtls/config.h"
maclobdell 0:f7c60d3e7b8a 26 #else
maclobdell 0:f7c60d3e7b8a 27 #include MBEDTLS_CONFIG_FILE
maclobdell 0:f7c60d3e7b8a 28 #endif
maclobdell 0:f7c60d3e7b8a 29
maclobdell 0:f7c60d3e7b8a 30 #if defined(MBEDTLS_SSL_TLS_C)
maclobdell 0:f7c60d3e7b8a 31
maclobdell 0:f7c60d3e7b8a 32 #include "mbedtls/ssl_ciphersuites.h"
maclobdell 0:f7c60d3e7b8a 33 #include "mbedtls/ssl.h"
maclobdell 0:f7c60d3e7b8a 34
maclobdell 0:f7c60d3e7b8a 35 // #include <stdlib.h>
maclobdell 0:f7c60d3e7b8a 36 #include <string.h>
maclobdell 0:f7c60d3e7b8a 37
maclobdell 0:f7c60d3e7b8a 38 /*
maclobdell 0:f7c60d3e7b8a 39 * Ordered from most preferred to least preferred in terms of security.
maclobdell 0:f7c60d3e7b8a 40 *
maclobdell 0:f7c60d3e7b8a 41 * Current rule (except rc4, weak and null which come last):
maclobdell 0:f7c60d3e7b8a 42 * 1. By key exchange:
maclobdell 0:f7c60d3e7b8a 43 * Forward-secure non-PSK > forward-secure PSK > ECJPAKE > other non-PSK > other PSK
maclobdell 0:f7c60d3e7b8a 44 * 2. By key length and cipher:
maclobdell 0:f7c60d3e7b8a 45 * AES-256 > Camellia-256 > AES-128 > Camellia-128 > 3DES
maclobdell 0:f7c60d3e7b8a 46 * 3. By cipher mode when relevant GCM > CCM > CBC > CCM_8
maclobdell 0:f7c60d3e7b8a 47 * 4. By hash function used when relevant
maclobdell 0:f7c60d3e7b8a 48 * 5. By key exchange/auth again: EC > non-EC
maclobdell 0:f7c60d3e7b8a 49 */
maclobdell 0:f7c60d3e7b8a 50 static const int ciphersuite_preference[] =
maclobdell 0:f7c60d3e7b8a 51 {
maclobdell 0:f7c60d3e7b8a 52 #if defined(MBEDTLS_SSL_CIPHERSUITES)
maclobdell 0:f7c60d3e7b8a 53 MBEDTLS_SSL_CIPHERSUITES,
maclobdell 0:f7c60d3e7b8a 54 #else
maclobdell 0:f7c60d3e7b8a 55 /* All AES-256 ephemeral suites */
maclobdell 0:f7c60d3e7b8a 56 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 57 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 58 MBEDTLS_TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 59 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM,
maclobdell 0:f7c60d3e7b8a 60 MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CCM,
maclobdell 0:f7c60d3e7b8a 61 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 62 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 63 MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 64 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 65 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 66 MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 67 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8,
maclobdell 0:f7c60d3e7b8a 68 MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CCM_8,
maclobdell 0:f7c60d3e7b8a 69
maclobdell 0:f7c60d3e7b8a 70 /* All CAMELLIA-256 ephemeral suites */
maclobdell 0:f7c60d3e7b8a 71 MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 72 MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 73 MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 74 MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 75 MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 76 MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 77 MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 78
maclobdell 0:f7c60d3e7b8a 79 /* All AES-128 ephemeral suites */
maclobdell 0:f7c60d3e7b8a 80 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 81 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 82 MBEDTLS_TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 83 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM,
maclobdell 0:f7c60d3e7b8a 84 MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CCM,
maclobdell 0:f7c60d3e7b8a 85 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 86 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 87 MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 88 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 89 MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 90 MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 91 MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8,
maclobdell 0:f7c60d3e7b8a 92 MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CCM_8,
maclobdell 0:f7c60d3e7b8a 93
maclobdell 0:f7c60d3e7b8a 94 /* All CAMELLIA-128 ephemeral suites */
maclobdell 0:f7c60d3e7b8a 95 MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 96 MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 97 MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 98 MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 99 MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 100 MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 101 MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 102
maclobdell 0:f7c60d3e7b8a 103 /* All remaining >= 128-bit ephemeral suites */
maclobdell 0:f7c60d3e7b8a 104 MBEDTLS_TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 105 MBEDTLS_TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 106 MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 107
maclobdell 0:f7c60d3e7b8a 108 /* The PSK ephemeral suites */
maclobdell 0:f7c60d3e7b8a 109 MBEDTLS_TLS_DHE_PSK_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 110 MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CCM,
maclobdell 0:f7c60d3e7b8a 111 MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 112 MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 113 MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 114 MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 115 MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 116 MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 117 MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 118 MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CCM_8,
maclobdell 0:f7c60d3e7b8a 119
maclobdell 0:f7c60d3e7b8a 120 MBEDTLS_TLS_DHE_PSK_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 121 MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CCM,
maclobdell 0:f7c60d3e7b8a 122 MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 123 MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 124 MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 125 MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 126 MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 127 MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 128 MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 129 MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CCM_8,
maclobdell 0:f7c60d3e7b8a 130
maclobdell 0:f7c60d3e7b8a 131 MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 132 MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 133
maclobdell 0:f7c60d3e7b8a 134 /* The ECJPAKE suite */
maclobdell 0:f7c60d3e7b8a 135 MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8,
maclobdell 0:f7c60d3e7b8a 136
maclobdell 0:f7c60d3e7b8a 137 /* All AES-256 suites */
maclobdell 0:f7c60d3e7b8a 138 MBEDTLS_TLS_RSA_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 139 MBEDTLS_TLS_RSA_WITH_AES_256_CCM,
maclobdell 0:f7c60d3e7b8a 140 MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 141 MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 142 MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 143 MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 144 MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 145 MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 146 MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 147 MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 148 MBEDTLS_TLS_RSA_WITH_AES_256_CCM_8,
maclobdell 0:f7c60d3e7b8a 149
maclobdell 0:f7c60d3e7b8a 150 /* All CAMELLIA-256 suites */
maclobdell 0:f7c60d3e7b8a 151 MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 152 MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 153 MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 154 MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 155 MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 156 MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 157 MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 158
maclobdell 0:f7c60d3e7b8a 159 /* All AES-128 suites */
maclobdell 0:f7c60d3e7b8a 160 MBEDTLS_TLS_RSA_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 161 MBEDTLS_TLS_RSA_WITH_AES_128_CCM,
maclobdell 0:f7c60d3e7b8a 162 MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 163 MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 164 MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 165 MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 166 MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 167 MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 168 MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 169 MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 170 MBEDTLS_TLS_RSA_WITH_AES_128_CCM_8,
maclobdell 0:f7c60d3e7b8a 171
maclobdell 0:f7c60d3e7b8a 172 /* All CAMELLIA-128 suites */
maclobdell 0:f7c60d3e7b8a 173 MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 174 MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 175 MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 176 MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 177 MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 178 MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 179 MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 180
maclobdell 0:f7c60d3e7b8a 181 /* All remaining >= 128-bit suites */
maclobdell 0:f7c60d3e7b8a 182 MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 183 MBEDTLS_TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 184 MBEDTLS_TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 185
maclobdell 0:f7c60d3e7b8a 186 /* The RSA PSK suites */
maclobdell 0:f7c60d3e7b8a 187 MBEDTLS_TLS_RSA_PSK_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 188 MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 189 MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 190 MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 191 MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 192
maclobdell 0:f7c60d3e7b8a 193 MBEDTLS_TLS_RSA_PSK_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 194 MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 195 MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 196 MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 197 MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 198
maclobdell 0:f7c60d3e7b8a 199 MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 200
maclobdell 0:f7c60d3e7b8a 201 /* The PSK suites */
maclobdell 0:f7c60d3e7b8a 202 MBEDTLS_TLS_PSK_WITH_AES_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 203 MBEDTLS_TLS_PSK_WITH_AES_256_CCM,
maclobdell 0:f7c60d3e7b8a 204 MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 205 MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 206 MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384,
maclobdell 0:f7c60d3e7b8a 207 MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384,
maclobdell 0:f7c60d3e7b8a 208 MBEDTLS_TLS_PSK_WITH_AES_256_CCM_8,
maclobdell 0:f7c60d3e7b8a 209
maclobdell 0:f7c60d3e7b8a 210 MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 211 MBEDTLS_TLS_PSK_WITH_AES_128_CCM,
maclobdell 0:f7c60d3e7b8a 212 MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 213 MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 214 MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256,
maclobdell 0:f7c60d3e7b8a 215 MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256,
maclobdell 0:f7c60d3e7b8a 216 MBEDTLS_TLS_PSK_WITH_AES_128_CCM_8,
maclobdell 0:f7c60d3e7b8a 217
maclobdell 0:f7c60d3e7b8a 218 MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 219
maclobdell 0:f7c60d3e7b8a 220 /* RC4 suites */
maclobdell 0:f7c60d3e7b8a 221 MBEDTLS_TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 222 MBEDTLS_TLS_ECDHE_RSA_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 223 MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 224 MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 225 MBEDTLS_TLS_RSA_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 226 MBEDTLS_TLS_RSA_WITH_RC4_128_MD5,
maclobdell 0:f7c60d3e7b8a 227 MBEDTLS_TLS_ECDH_RSA_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 228 MBEDTLS_TLS_ECDH_ECDSA_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 229 MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 230 MBEDTLS_TLS_PSK_WITH_RC4_128_SHA,
maclobdell 0:f7c60d3e7b8a 231
maclobdell 0:f7c60d3e7b8a 232 /* Weak suites */
maclobdell 0:f7c60d3e7b8a 233 MBEDTLS_TLS_DHE_RSA_WITH_DES_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 234 MBEDTLS_TLS_RSA_WITH_DES_CBC_SHA,
maclobdell 0:f7c60d3e7b8a 235
maclobdell 0:f7c60d3e7b8a 236 /* NULL suites */
maclobdell 0:f7c60d3e7b8a 237 MBEDTLS_TLS_ECDHE_ECDSA_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 238 MBEDTLS_TLS_ECDHE_RSA_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 239 MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA384,
maclobdell 0:f7c60d3e7b8a 240 MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA256,
maclobdell 0:f7c60d3e7b8a 241 MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 242 MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA384,
maclobdell 0:f7c60d3e7b8a 243 MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA256,
maclobdell 0:f7c60d3e7b8a 244 MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 245
maclobdell 0:f7c60d3e7b8a 246 MBEDTLS_TLS_RSA_WITH_NULL_SHA256,
maclobdell 0:f7c60d3e7b8a 247 MBEDTLS_TLS_RSA_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 248 MBEDTLS_TLS_RSA_WITH_NULL_MD5,
maclobdell 0:f7c60d3e7b8a 249 MBEDTLS_TLS_ECDH_RSA_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 250 MBEDTLS_TLS_ECDH_ECDSA_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 251 MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA384,
maclobdell 0:f7c60d3e7b8a 252 MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA256,
maclobdell 0:f7c60d3e7b8a 253 MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 254 MBEDTLS_TLS_PSK_WITH_NULL_SHA384,
maclobdell 0:f7c60d3e7b8a 255 MBEDTLS_TLS_PSK_WITH_NULL_SHA256,
maclobdell 0:f7c60d3e7b8a 256 MBEDTLS_TLS_PSK_WITH_NULL_SHA,
maclobdell 0:f7c60d3e7b8a 257
maclobdell 0:f7c60d3e7b8a 258 #endif /* MBEDTLS_SSL_CIPHERSUITES */
maclobdell 0:f7c60d3e7b8a 259 0
maclobdell 0:f7c60d3e7b8a 260 };
maclobdell 0:f7c60d3e7b8a 261
maclobdell 0:f7c60d3e7b8a 262 static const mbedtls_ssl_ciphersuite_t ciphersuite_definitions[] =
maclobdell 0:f7c60d3e7b8a 263 {
maclobdell 0:f7c60d3e7b8a 264 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 265 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 266 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 267 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 268 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, "TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 269 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 270 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 271 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 272 0 },
maclobdell 0:f7c60d3e7b8a 273 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, "TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 274 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 275 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 276 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 277 0 },
maclobdell 0:f7c60d3e7b8a 278 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 279 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 280 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 281 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 282 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, "TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 283 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 284 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 285 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 286 0 },
maclobdell 0:f7c60d3e7b8a 287 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 288 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 289 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, "TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 290 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 291 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 292 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 293 0 },
maclobdell 0:f7c60d3e7b8a 294 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 295 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 296 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 297 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 298 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, "TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 299 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 300 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 301 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 302 0 },
maclobdell 0:f7c60d3e7b8a 303 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 304 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 305 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, "TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 306 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 307 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 308 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 309 0 },
maclobdell 0:f7c60d3e7b8a 310 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 311 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 312 #if defined(MBEDTLS_CCM_C)
maclobdell 0:f7c60d3e7b8a 313 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM, "TLS-ECDHE-ECDSA-WITH-AES-256-CCM",
maclobdell 0:f7c60d3e7b8a 314 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 315 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 316 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 317 0 },
maclobdell 0:f7c60d3e7b8a 318 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8, "TLS-ECDHE-ECDSA-WITH-AES-256-CCM-8",
maclobdell 0:f7c60d3e7b8a 319 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 320 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 321 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 322 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 323 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM, "TLS-ECDHE-ECDSA-WITH-AES-128-CCM",
maclobdell 0:f7c60d3e7b8a 324 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 325 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 326 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 327 0 },
maclobdell 0:f7c60d3e7b8a 328 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, "TLS-ECDHE-ECDSA-WITH-AES-128-CCM-8",
maclobdell 0:f7c60d3e7b8a 329 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 330 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 331 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 332 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 333 #endif /* MBEDTLS_CCM_C */
maclobdell 0:f7c60d3e7b8a 334 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 335
maclobdell 0:f7c60d3e7b8a 336 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 337 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 338 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 339 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256, "TLS-ECDHE-ECDSA-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 340 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 341 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 342 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 343 0 },
maclobdell 0:f7c60d3e7b8a 344 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 345 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 346 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384, "TLS-ECDHE-ECDSA-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 347 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 348 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 349 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 350 0 },
maclobdell 0:f7c60d3e7b8a 351 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 352 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 353
maclobdell 0:f7c60d3e7b8a 354 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 355 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 356 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256, "TLS-ECDHE-ECDSA-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 357 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 358 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 359 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 360 0 },
maclobdell 0:f7c60d3e7b8a 361 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 362 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 363 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384, "TLS-ECDHE-ECDSA-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 364 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 365 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 366 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 367 0 },
maclobdell 0:f7c60d3e7b8a 368 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 369 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 370 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 371
maclobdell 0:f7c60d3e7b8a 372 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 373 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 374 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 375 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, "TLS-ECDHE-ECDSA-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 376 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 377 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 378 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 379 0 },
maclobdell 0:f7c60d3e7b8a 380 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 381 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 382 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 383
maclobdell 0:f7c60d3e7b8a 384 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 385 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 386 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, "TLS-ECDHE-ECDSA-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 387 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 388 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 389 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 390 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 391 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 392 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 393
maclobdell 0:f7c60d3e7b8a 394 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
maclobdell 0:f7c60d3e7b8a 395 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 396 { MBEDTLS_TLS_ECDHE_ECDSA_WITH_NULL_SHA, "TLS-ECDHE-ECDSA-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 397 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,
maclobdell 0:f7c60d3e7b8a 398 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 399 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 400 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 401 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 402 #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
maclobdell 0:f7c60d3e7b8a 403 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 404
maclobdell 0:f7c60d3e7b8a 405 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 406 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 407 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 408 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 409 { MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, "TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 410 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 411 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 412 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 413 0 },
maclobdell 0:f7c60d3e7b8a 414 { MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, "TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 415 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 416 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 417 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 418 0 },
maclobdell 0:f7c60d3e7b8a 419 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 420 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 421 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 422 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 423 { MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, "TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 424 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 425 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 426 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 427 0 },
maclobdell 0:f7c60d3e7b8a 428 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 429 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 430 { MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, "TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 431 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 432 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 433 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 434 0 },
maclobdell 0:f7c60d3e7b8a 435 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 436 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 437 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 438 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 439 { MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, "TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 440 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 441 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 442 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 443 0 },
maclobdell 0:f7c60d3e7b8a 444 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 445 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 446 { MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, "TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 447 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 448 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 449 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 450 0 },
maclobdell 0:f7c60d3e7b8a 451 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 452 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 453 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 454
maclobdell 0:f7c60d3e7b8a 455 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 456 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 457 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 458 { MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256, "TLS-ECDHE-RSA-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 459 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 460 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 461 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 462 0 },
maclobdell 0:f7c60d3e7b8a 463 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 464 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 465 { MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384, "TLS-ECDHE-RSA-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 466 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 467 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 468 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 469 0 },
maclobdell 0:f7c60d3e7b8a 470 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 471 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 472
maclobdell 0:f7c60d3e7b8a 473 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 474 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 475 { MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256, "TLS-ECDHE-RSA-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 476 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 477 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 478 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 479 0 },
maclobdell 0:f7c60d3e7b8a 480 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 481 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 482 { MBEDTLS_TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384, "TLS-ECDHE-RSA-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 483 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 484 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 485 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 486 0 },
maclobdell 0:f7c60d3e7b8a 487 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 488 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 489 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 490
maclobdell 0:f7c60d3e7b8a 491 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 492 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 493 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 494 { MBEDTLS_TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, "TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 495 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 496 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 497 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 498 0 },
maclobdell 0:f7c60d3e7b8a 499 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 500 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 501 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 502
maclobdell 0:f7c60d3e7b8a 503 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 504 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 505 { MBEDTLS_TLS_ECDHE_RSA_WITH_RC4_128_SHA, "TLS-ECDHE-RSA-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 506 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 507 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 508 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 509 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 510 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 511 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 512
maclobdell 0:f7c60d3e7b8a 513 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
maclobdell 0:f7c60d3e7b8a 514 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 515 { MBEDTLS_TLS_ECDHE_RSA_WITH_NULL_SHA, "TLS-ECDHE-RSA-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 516 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,
maclobdell 0:f7c60d3e7b8a 517 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 518 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 519 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 520 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 521 #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
maclobdell 0:f7c60d3e7b8a 522 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 523
maclobdell 0:f7c60d3e7b8a 524 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 525 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 526 #if defined(MBEDTLS_SHA512_C) && defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 527 { MBEDTLS_TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, "TLS-DHE-RSA-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 528 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 529 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 530 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 531 0 },
maclobdell 0:f7c60d3e7b8a 532 #endif /* MBEDTLS_SHA512_C && MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 533
maclobdell 0:f7c60d3e7b8a 534 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 535 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 536 { MBEDTLS_TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, "TLS-DHE-RSA-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 537 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 538 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 539 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 540 0 },
maclobdell 0:f7c60d3e7b8a 541 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 542
maclobdell 0:f7c60d3e7b8a 543 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 544 { MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, "TLS-DHE-RSA-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 545 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 546 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 547 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 548 0 },
maclobdell 0:f7c60d3e7b8a 549
maclobdell 0:f7c60d3e7b8a 550 { MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, "TLS-DHE-RSA-WITH-AES-256-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 551 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 552 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 553 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 554 0 },
maclobdell 0:f7c60d3e7b8a 555 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 556 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 557
maclobdell 0:f7c60d3e7b8a 558 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 559 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 560 { MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CBC_SHA, "TLS-DHE-RSA-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 561 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 562 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 563 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 564 0 },
maclobdell 0:f7c60d3e7b8a 565
maclobdell 0:f7c60d3e7b8a 566 { MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CBC_SHA, "TLS-DHE-RSA-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 567 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 568 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 569 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 570 0 },
maclobdell 0:f7c60d3e7b8a 571 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 572 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 573 #if defined(MBEDTLS_CCM_C)
maclobdell 0:f7c60d3e7b8a 574 { MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CCM, "TLS-DHE-RSA-WITH-AES-256-CCM",
maclobdell 0:f7c60d3e7b8a 575 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 576 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 577 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 578 0 },
maclobdell 0:f7c60d3e7b8a 579 { MBEDTLS_TLS_DHE_RSA_WITH_AES_256_CCM_8, "TLS-DHE-RSA-WITH-AES-256-CCM-8",
maclobdell 0:f7c60d3e7b8a 580 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 581 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 582 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 583 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 584 { MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CCM, "TLS-DHE-RSA-WITH-AES-128-CCM",
maclobdell 0:f7c60d3e7b8a 585 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 586 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 587 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 588 0 },
maclobdell 0:f7c60d3e7b8a 589 { MBEDTLS_TLS_DHE_RSA_WITH_AES_128_CCM_8, "TLS-DHE-RSA-WITH-AES-128-CCM-8",
maclobdell 0:f7c60d3e7b8a 590 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 591 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 592 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 593 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 594 #endif /* MBEDTLS_CCM_C */
maclobdell 0:f7c60d3e7b8a 595 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 596
maclobdell 0:f7c60d3e7b8a 597 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 598 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 599 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 600 { MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256, "TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 601 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 602 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 603 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 604 0 },
maclobdell 0:f7c60d3e7b8a 605
maclobdell 0:f7c60d3e7b8a 606 { MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256, "TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 607 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 608 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 609 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 610 0 },
maclobdell 0:f7c60d3e7b8a 611 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 612
maclobdell 0:f7c60d3e7b8a 613 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 614 { MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA, "TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 615 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 616 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 617 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 618 0 },
maclobdell 0:f7c60d3e7b8a 619
maclobdell 0:f7c60d3e7b8a 620 { MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA, "TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 621 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 622 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 623 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 624 0 },
maclobdell 0:f7c60d3e7b8a 625 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 626 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 627 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 628 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 629 { MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256, "TLS-DHE-RSA-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 630 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 631 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 632 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 633 0 },
maclobdell 0:f7c60d3e7b8a 634 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 635
maclobdell 0:f7c60d3e7b8a 636 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 637 { MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384, "TLS-DHE-RSA-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 638 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 639 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 640 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 641 0 },
maclobdell 0:f7c60d3e7b8a 642 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 643 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 644 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 645
maclobdell 0:f7c60d3e7b8a 646 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 647 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 648 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 649 { MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA, "TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 650 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 651 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 652 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 653 0 },
maclobdell 0:f7c60d3e7b8a 654 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 655 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 656 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 657 #endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 658
maclobdell 0:f7c60d3e7b8a 659 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 660 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 661 #if defined(MBEDTLS_SHA512_C) && defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 662 { MBEDTLS_TLS_RSA_WITH_AES_256_GCM_SHA384, "TLS-RSA-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 663 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 664 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 665 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 666 0 },
maclobdell 0:f7c60d3e7b8a 667 #endif /* MBEDTLS_SHA512_C && MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 668
maclobdell 0:f7c60d3e7b8a 669 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 670 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 671 { MBEDTLS_TLS_RSA_WITH_AES_128_GCM_SHA256, "TLS-RSA-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 672 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 673 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 674 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 675 0 },
maclobdell 0:f7c60d3e7b8a 676 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 677
maclobdell 0:f7c60d3e7b8a 678 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 679 { MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA256, "TLS-RSA-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 680 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 681 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 682 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 683 0 },
maclobdell 0:f7c60d3e7b8a 684
maclobdell 0:f7c60d3e7b8a 685 { MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA256, "TLS-RSA-WITH-AES-256-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 686 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 687 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 688 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 689 0 },
maclobdell 0:f7c60d3e7b8a 690 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 691 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 692
maclobdell 0:f7c60d3e7b8a 693 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 694 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 695 { MBEDTLS_TLS_RSA_WITH_AES_128_CBC_SHA, "TLS-RSA-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 696 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 697 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 698 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 699 0 },
maclobdell 0:f7c60d3e7b8a 700
maclobdell 0:f7c60d3e7b8a 701 { MBEDTLS_TLS_RSA_WITH_AES_256_CBC_SHA, "TLS-RSA-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 702 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 703 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 704 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 705 0 },
maclobdell 0:f7c60d3e7b8a 706 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 707 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 708 #if defined(MBEDTLS_CCM_C)
maclobdell 0:f7c60d3e7b8a 709 { MBEDTLS_TLS_RSA_WITH_AES_256_CCM, "TLS-RSA-WITH-AES-256-CCM",
maclobdell 0:f7c60d3e7b8a 710 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 711 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 712 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 713 0 },
maclobdell 0:f7c60d3e7b8a 714 { MBEDTLS_TLS_RSA_WITH_AES_256_CCM_8, "TLS-RSA-WITH-AES-256-CCM-8",
maclobdell 0:f7c60d3e7b8a 715 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 716 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 717 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 718 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 719 { MBEDTLS_TLS_RSA_WITH_AES_128_CCM, "TLS-RSA-WITH-AES-128-CCM",
maclobdell 0:f7c60d3e7b8a 720 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 721 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 722 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 723 0 },
maclobdell 0:f7c60d3e7b8a 724 { MBEDTLS_TLS_RSA_WITH_AES_128_CCM_8, "TLS-RSA-WITH-AES-128-CCM-8",
maclobdell 0:f7c60d3e7b8a 725 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 726 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 727 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 728 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 729 #endif /* MBEDTLS_CCM_C */
maclobdell 0:f7c60d3e7b8a 730 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 731
maclobdell 0:f7c60d3e7b8a 732 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 733 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 734 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 735 { MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256, "TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 736 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 737 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 738 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 739 0 },
maclobdell 0:f7c60d3e7b8a 740
maclobdell 0:f7c60d3e7b8a 741 { MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256, "TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 742 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 743 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 744 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 745 0 },
maclobdell 0:f7c60d3e7b8a 746 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 747
maclobdell 0:f7c60d3e7b8a 748 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 749 { MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_CBC_SHA, "TLS-RSA-WITH-CAMELLIA-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 750 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 751 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 752 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 753 0 },
maclobdell 0:f7c60d3e7b8a 754
maclobdell 0:f7c60d3e7b8a 755 { MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_CBC_SHA, "TLS-RSA-WITH-CAMELLIA-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 756 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 757 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 758 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 759 0 },
maclobdell 0:f7c60d3e7b8a 760 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 761 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 762
maclobdell 0:f7c60d3e7b8a 763 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 764 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 765 { MBEDTLS_TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256, "TLS-RSA-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 766 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 767 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 768 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 769 0 },
maclobdell 0:f7c60d3e7b8a 770 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 771
maclobdell 0:f7c60d3e7b8a 772 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 773 { MBEDTLS_TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384, "TLS-RSA-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 774 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 775 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 776 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 777 0 },
maclobdell 0:f7c60d3e7b8a 778 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 779 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 780 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 781
maclobdell 0:f7c60d3e7b8a 782 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 783 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 784 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 785 { MBEDTLS_TLS_RSA_WITH_3DES_EDE_CBC_SHA, "TLS-RSA-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 786 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 787 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 788 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 789 0 },
maclobdell 0:f7c60d3e7b8a 790 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 791 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 792 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 793
maclobdell 0:f7c60d3e7b8a 794 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 795 #if defined(MBEDTLS_MD5_C)
maclobdell 0:f7c60d3e7b8a 796 { MBEDTLS_TLS_RSA_WITH_RC4_128_MD5, "TLS-RSA-WITH-RC4-128-MD5",
maclobdell 0:f7c60d3e7b8a 797 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_MD5, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 798 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 799 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 800 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 801 #endif
maclobdell 0:f7c60d3e7b8a 802
maclobdell 0:f7c60d3e7b8a 803 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 804 { MBEDTLS_TLS_RSA_WITH_RC4_128_SHA, "TLS-RSA-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 805 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 806 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 807 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 808 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 809 #endif
maclobdell 0:f7c60d3e7b8a 810 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 811 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 812
maclobdell 0:f7c60d3e7b8a 813 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 814 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 815 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 816 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 817 { MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, "TLS-ECDH-RSA-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 818 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 819 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 820 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 821 0 },
maclobdell 0:f7c60d3e7b8a 822 { MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, "TLS-ECDH-RSA-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 823 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 824 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 825 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 826 0 },
maclobdell 0:f7c60d3e7b8a 827 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 828 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 829 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 830 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 831 { MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, "TLS-ECDH-RSA-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 832 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 833 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 834 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 835 0 },
maclobdell 0:f7c60d3e7b8a 836 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 837 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 838 { MBEDTLS_TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, "TLS-ECDH-RSA-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 839 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 840 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 841 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 842 0 },
maclobdell 0:f7c60d3e7b8a 843 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 844 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 845 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 846 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 847 { MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, "TLS-ECDH-RSA-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 848 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 849 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 850 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 851 0 },
maclobdell 0:f7c60d3e7b8a 852 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 853 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 854 { MBEDTLS_TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, "TLS-ECDH-RSA-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 855 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 856 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 857 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 858 0 },
maclobdell 0:f7c60d3e7b8a 859 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 860 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 861 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 862
maclobdell 0:f7c60d3e7b8a 863 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 864 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 865 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 866 { MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256, "TLS-ECDH-RSA-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 867 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 868 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 869 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 870 0 },
maclobdell 0:f7c60d3e7b8a 871 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 872 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 873 { MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384, "TLS-ECDH-RSA-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 874 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 875 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 876 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 877 0 },
maclobdell 0:f7c60d3e7b8a 878 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 879 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 880
maclobdell 0:f7c60d3e7b8a 881 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 882 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 883 { MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256, "TLS-ECDH-RSA-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 884 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 885 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 886 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 887 0 },
maclobdell 0:f7c60d3e7b8a 888 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 889 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 890 { MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384, "TLS-ECDH-RSA-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 891 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 892 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 893 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 894 0 },
maclobdell 0:f7c60d3e7b8a 895 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 896 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 897 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 898
maclobdell 0:f7c60d3e7b8a 899 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 900 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 901 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 902 { MBEDTLS_TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, "TLS-ECDH-RSA-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 903 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 904 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 905 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 906 0 },
maclobdell 0:f7c60d3e7b8a 907 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 908 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 909 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 910
maclobdell 0:f7c60d3e7b8a 911 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 912 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 913 { MBEDTLS_TLS_ECDH_RSA_WITH_RC4_128_SHA, "TLS-ECDH-RSA-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 914 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 915 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 916 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 917 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 918 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 919 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 920
maclobdell 0:f7c60d3e7b8a 921 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
maclobdell 0:f7c60d3e7b8a 922 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 923 { MBEDTLS_TLS_ECDH_RSA_WITH_NULL_SHA, "TLS-ECDH-RSA-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 924 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_RSA,
maclobdell 0:f7c60d3e7b8a 925 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 926 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 927 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 928 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 929 #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
maclobdell 0:f7c60d3e7b8a 930 #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 931
maclobdell 0:f7c60d3e7b8a 932 #if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 933 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 934 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 935 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 936 { MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, "TLS-ECDH-ECDSA-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 937 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 938 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 939 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 940 0 },
maclobdell 0:f7c60d3e7b8a 941 { MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, "TLS-ECDH-ECDSA-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 942 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 943 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 944 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 945 0 },
maclobdell 0:f7c60d3e7b8a 946 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 947 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 948 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 949 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 950 { MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, "TLS-ECDH-ECDSA-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 951 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 952 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 953 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 954 0 },
maclobdell 0:f7c60d3e7b8a 955 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 956 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 957 { MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, "TLS-ECDH-ECDSA-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 958 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 959 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 960 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 961 0 },
maclobdell 0:f7c60d3e7b8a 962 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 963 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 964 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 965 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 966 { MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, "TLS-ECDH-ECDSA-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 967 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 968 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 969 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 970 0 },
maclobdell 0:f7c60d3e7b8a 971 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 972 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 973 { MBEDTLS_TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, "TLS-ECDH-ECDSA-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 974 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 975 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 976 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 977 0 },
maclobdell 0:f7c60d3e7b8a 978 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 979 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 980 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 981
maclobdell 0:f7c60d3e7b8a 982 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 983 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 984 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 985 { MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256, "TLS-ECDH-ECDSA-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 986 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 987 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 988 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 989 0 },
maclobdell 0:f7c60d3e7b8a 990 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 991 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 992 { MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384, "TLS-ECDH-ECDSA-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 993 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 994 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 995 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 996 0 },
maclobdell 0:f7c60d3e7b8a 997 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 998 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 999
maclobdell 0:f7c60d3e7b8a 1000 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1001 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1002 { MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256, "TLS-ECDH-ECDSA-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1003 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 1004 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1005 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1006 0 },
maclobdell 0:f7c60d3e7b8a 1007 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1008 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1009 { MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384, "TLS-ECDH-ECDSA-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1010 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 1011 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1012 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1013 0 },
maclobdell 0:f7c60d3e7b8a 1014 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1015 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1016 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 1017
maclobdell 0:f7c60d3e7b8a 1018 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 1019 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1020 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1021 { MBEDTLS_TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, "TLS-ECDH-ECDSA-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1022 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 1023 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1024 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1025 0 },
maclobdell 0:f7c60d3e7b8a 1026 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1027 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1028 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 1029
maclobdell 0:f7c60d3e7b8a 1030 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 1031 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1032 { MBEDTLS_TLS_ECDH_ECDSA_WITH_RC4_128_SHA, "TLS-ECDH-ECDSA-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 1033 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 1034 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1035 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1036 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 1037 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1038 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 1039
maclobdell 0:f7c60d3e7b8a 1040 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
maclobdell 0:f7c60d3e7b8a 1041 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1042 { MBEDTLS_TLS_ECDH_ECDSA_WITH_NULL_SHA, "TLS-ECDH-ECDSA-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 1043 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,
maclobdell 0:f7c60d3e7b8a 1044 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1045 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1046 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1047 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1048 #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
maclobdell 0:f7c60d3e7b8a 1049 #endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 1050
maclobdell 0:f7c60d3e7b8a 1051 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1052 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 1053 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1054 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1055 { MBEDTLS_TLS_PSK_WITH_AES_128_GCM_SHA256, "TLS-PSK-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1056 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1057 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1058 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1059 0 },
maclobdell 0:f7c60d3e7b8a 1060 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1061
maclobdell 0:f7c60d3e7b8a 1062 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1063 { MBEDTLS_TLS_PSK_WITH_AES_256_GCM_SHA384, "TLS-PSK-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1064 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1065 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1066 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1067 0 },
maclobdell 0:f7c60d3e7b8a 1068 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1069 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1070
maclobdell 0:f7c60d3e7b8a 1071 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1072 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1073 { MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA256, "TLS-PSK-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1074 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1075 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1076 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1077 0 },
maclobdell 0:f7c60d3e7b8a 1078 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1079
maclobdell 0:f7c60d3e7b8a 1080 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1081 { MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA384, "TLS-PSK-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1082 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1083 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1084 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1085 0 },
maclobdell 0:f7c60d3e7b8a 1086 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1087
maclobdell 0:f7c60d3e7b8a 1088 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1089 { MBEDTLS_TLS_PSK_WITH_AES_128_CBC_SHA, "TLS-PSK-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1090 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1091 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1092 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1093 0 },
maclobdell 0:f7c60d3e7b8a 1094
maclobdell 0:f7c60d3e7b8a 1095 { MBEDTLS_TLS_PSK_WITH_AES_256_CBC_SHA, "TLS-PSK-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1096 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1097 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1098 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1099 0 },
maclobdell 0:f7c60d3e7b8a 1100 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1101 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1102 #if defined(MBEDTLS_CCM_C)
maclobdell 0:f7c60d3e7b8a 1103 { MBEDTLS_TLS_PSK_WITH_AES_256_CCM, "TLS-PSK-WITH-AES-256-CCM",
maclobdell 0:f7c60d3e7b8a 1104 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1105 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1106 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1107 0 },
maclobdell 0:f7c60d3e7b8a 1108 { MBEDTLS_TLS_PSK_WITH_AES_256_CCM_8, "TLS-PSK-WITH-AES-256-CCM-8",
maclobdell 0:f7c60d3e7b8a 1109 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1110 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1111 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1112 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 1113 { MBEDTLS_TLS_PSK_WITH_AES_128_CCM, "TLS-PSK-WITH-AES-128-CCM",
maclobdell 0:f7c60d3e7b8a 1114 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1115 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1116 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1117 0 },
maclobdell 0:f7c60d3e7b8a 1118 { MBEDTLS_TLS_PSK_WITH_AES_128_CCM_8, "TLS-PSK-WITH-AES-128-CCM-8",
maclobdell 0:f7c60d3e7b8a 1119 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1120 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1121 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1122 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 1123 #endif /* MBEDTLS_CCM_C */
maclobdell 0:f7c60d3e7b8a 1124 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 1125
maclobdell 0:f7c60d3e7b8a 1126 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 1127 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1128 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1129 { MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256, "TLS-PSK-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1130 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1131 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1132 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1133 0 },
maclobdell 0:f7c60d3e7b8a 1134 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1135
maclobdell 0:f7c60d3e7b8a 1136 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1137 { MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384, "TLS-PSK-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1138 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1139 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1140 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1141 0 },
maclobdell 0:f7c60d3e7b8a 1142 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1143 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1144
maclobdell 0:f7c60d3e7b8a 1145 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1146 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1147 { MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256, "TLS-PSK-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1148 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1149 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1150 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1151 0 },
maclobdell 0:f7c60d3e7b8a 1152 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1153
maclobdell 0:f7c60d3e7b8a 1154 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1155 { MBEDTLS_TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384, "TLS-PSK-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1156 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1157 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1158 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1159 0 },
maclobdell 0:f7c60d3e7b8a 1160 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1161 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1162 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 1163
maclobdell 0:f7c60d3e7b8a 1164 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 1165 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1166 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1167 { MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA, "TLS-PSK-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1168 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1169 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1170 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1171 0 },
maclobdell 0:f7c60d3e7b8a 1172 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1173 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1174 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 1175
maclobdell 0:f7c60d3e7b8a 1176 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 1177 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1178 { MBEDTLS_TLS_PSK_WITH_RC4_128_SHA, "TLS-PSK-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 1179 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1180 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1181 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1182 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 1183 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1184 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 1185 #endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1186
maclobdell 0:f7c60d3e7b8a 1187 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1188 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 1189 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1190 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1191 { MBEDTLS_TLS_DHE_PSK_WITH_AES_128_GCM_SHA256, "TLS-DHE-PSK-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1192 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1193 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1194 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1195 0 },
maclobdell 0:f7c60d3e7b8a 1196 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1197
maclobdell 0:f7c60d3e7b8a 1198 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1199 { MBEDTLS_TLS_DHE_PSK_WITH_AES_256_GCM_SHA384, "TLS-DHE-PSK-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1200 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1201 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1202 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1203 0 },
maclobdell 0:f7c60d3e7b8a 1204 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1205 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1206
maclobdell 0:f7c60d3e7b8a 1207 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1208 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1209 { MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA256, "TLS-DHE-PSK-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1210 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1211 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1212 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1213 0 },
maclobdell 0:f7c60d3e7b8a 1214 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1215
maclobdell 0:f7c60d3e7b8a 1216 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1217 { MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA384, "TLS-DHE-PSK-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1218 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1219 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1220 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1221 0 },
maclobdell 0:f7c60d3e7b8a 1222 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1223
maclobdell 0:f7c60d3e7b8a 1224 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1225 { MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CBC_SHA, "TLS-DHE-PSK-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1226 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1227 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1228 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1229 0 },
maclobdell 0:f7c60d3e7b8a 1230
maclobdell 0:f7c60d3e7b8a 1231 { MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CBC_SHA, "TLS-DHE-PSK-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1232 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1233 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1234 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1235 0 },
maclobdell 0:f7c60d3e7b8a 1236 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1237 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1238 #if defined(MBEDTLS_CCM_C)
maclobdell 0:f7c60d3e7b8a 1239 { MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CCM, "TLS-DHE-PSK-WITH-AES-256-CCM",
maclobdell 0:f7c60d3e7b8a 1240 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1241 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1242 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1243 0 },
maclobdell 0:f7c60d3e7b8a 1244 { MBEDTLS_TLS_DHE_PSK_WITH_AES_256_CCM_8, "TLS-DHE-PSK-WITH-AES-256-CCM-8",
maclobdell 0:f7c60d3e7b8a 1245 MBEDTLS_CIPHER_AES_256_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1246 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1247 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1248 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 1249 { MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CCM, "TLS-DHE-PSK-WITH-AES-128-CCM",
maclobdell 0:f7c60d3e7b8a 1250 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1251 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1252 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1253 0 },
maclobdell 0:f7c60d3e7b8a 1254 { MBEDTLS_TLS_DHE_PSK_WITH_AES_128_CCM_8, "TLS-DHE-PSK-WITH-AES-128-CCM-8",
maclobdell 0:f7c60d3e7b8a 1255 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1256 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1257 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1258 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 1259 #endif /* MBEDTLS_CCM_C */
maclobdell 0:f7c60d3e7b8a 1260 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 1261
maclobdell 0:f7c60d3e7b8a 1262 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 1263 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1264 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1265 { MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256, "TLS-DHE-PSK-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1266 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1267 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1268 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1269 0 },
maclobdell 0:f7c60d3e7b8a 1270 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1271
maclobdell 0:f7c60d3e7b8a 1272 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1273 { MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384, "TLS-DHE-PSK-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1274 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1275 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1276 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1277 0 },
maclobdell 0:f7c60d3e7b8a 1278 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1279 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1280
maclobdell 0:f7c60d3e7b8a 1281 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1282 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1283 { MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256, "TLS-DHE-PSK-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1284 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1285 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1286 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1287 0 },
maclobdell 0:f7c60d3e7b8a 1288 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1289
maclobdell 0:f7c60d3e7b8a 1290 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1291 { MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384, "TLS-DHE-PSK-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1292 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1293 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1294 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1295 0 },
maclobdell 0:f7c60d3e7b8a 1296 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1297 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1298 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 1299
maclobdell 0:f7c60d3e7b8a 1300 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 1301 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1302 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1303 { MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, "TLS-DHE-PSK-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1304 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1305 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1306 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1307 0 },
maclobdell 0:f7c60d3e7b8a 1308 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1309 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1310 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 1311
maclobdell 0:f7c60d3e7b8a 1312 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 1313 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1314 { MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA, "TLS-DHE-PSK-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 1315 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1316 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1317 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1318 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 1319 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1320 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 1321 #endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1322
maclobdell 0:f7c60d3e7b8a 1323 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1324 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 1325
maclobdell 0:f7c60d3e7b8a 1326 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1327 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1328 { MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256, "TLS-ECDHE-PSK-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1329 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1330 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1331 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1332 0 },
maclobdell 0:f7c60d3e7b8a 1333 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1334
maclobdell 0:f7c60d3e7b8a 1335 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1336 { MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384, "TLS-ECDHE-PSK-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1337 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1338 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1339 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1340 0 },
maclobdell 0:f7c60d3e7b8a 1341 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1342
maclobdell 0:f7c60d3e7b8a 1343 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1344 { MBEDTLS_TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA, "TLS-ECDHE-PSK-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1345 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1346 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1347 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1348 0 },
maclobdell 0:f7c60d3e7b8a 1349
maclobdell 0:f7c60d3e7b8a 1350 { MBEDTLS_TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA, "TLS-ECDHE-PSK-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1351 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1352 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1353 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1354 0 },
maclobdell 0:f7c60d3e7b8a 1355 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1356 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1357 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 1358
maclobdell 0:f7c60d3e7b8a 1359 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 1360 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1361 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1362 { MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256, "TLS-ECDHE-PSK-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1363 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1364 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1365 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1366 0 },
maclobdell 0:f7c60d3e7b8a 1367 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1368
maclobdell 0:f7c60d3e7b8a 1369 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1370 { MBEDTLS_TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384, "TLS-ECDHE-PSK-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1371 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1372 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1373 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1374 0 },
maclobdell 0:f7c60d3e7b8a 1375 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1376 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1377 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 1378
maclobdell 0:f7c60d3e7b8a 1379 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 1380 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1381 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1382 { MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA, "TLS-ECDHE-PSK-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1383 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1384 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1385 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1386 0 },
maclobdell 0:f7c60d3e7b8a 1387 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1388 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1389 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 1390
maclobdell 0:f7c60d3e7b8a 1391 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 1392 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1393 { MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA, "TLS-ECDHE-PSK-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 1394 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1395 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1396 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1397 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 1398 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1399 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 1400 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1401
maclobdell 0:f7c60d3e7b8a 1402 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1403 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 1404 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1405 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1406 { MBEDTLS_TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, "TLS-RSA-PSK-WITH-AES-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1407 MBEDTLS_CIPHER_AES_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1408 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1409 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1410 0 },
maclobdell 0:f7c60d3e7b8a 1411 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1412
maclobdell 0:f7c60d3e7b8a 1413 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1414 { MBEDTLS_TLS_RSA_PSK_WITH_AES_256_GCM_SHA384, "TLS-RSA-PSK-WITH-AES-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1415 MBEDTLS_CIPHER_AES_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1416 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1417 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1418 0 },
maclobdell 0:f7c60d3e7b8a 1419 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1420 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1421
maclobdell 0:f7c60d3e7b8a 1422 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1423 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1424 { MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA256, "TLS-RSA-PSK-WITH-AES-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1425 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1426 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1427 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1428 0 },
maclobdell 0:f7c60d3e7b8a 1429 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1430
maclobdell 0:f7c60d3e7b8a 1431 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1432 { MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA384, "TLS-RSA-PSK-WITH-AES-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1433 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1434 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1435 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1436 0 },
maclobdell 0:f7c60d3e7b8a 1437 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1438
maclobdell 0:f7c60d3e7b8a 1439 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1440 { MBEDTLS_TLS_RSA_PSK_WITH_AES_128_CBC_SHA, "TLS-RSA-PSK-WITH-AES-128-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1441 MBEDTLS_CIPHER_AES_128_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1442 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1443 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1444 0 },
maclobdell 0:f7c60d3e7b8a 1445
maclobdell 0:f7c60d3e7b8a 1446 { MBEDTLS_TLS_RSA_PSK_WITH_AES_256_CBC_SHA, "TLS-RSA-PSK-WITH-AES-256-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1447 MBEDTLS_CIPHER_AES_256_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1448 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1449 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1450 0 },
maclobdell 0:f7c60d3e7b8a 1451 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1452 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1453 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 1454
maclobdell 0:f7c60d3e7b8a 1455 #if defined(MBEDTLS_CAMELLIA_C)
maclobdell 0:f7c60d3e7b8a 1456 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1457 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1458 { MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256, "TLS-RSA-PSK-WITH-CAMELLIA-128-CBC-SHA256",
maclobdell 0:f7c60d3e7b8a 1459 MBEDTLS_CIPHER_CAMELLIA_128_CBC, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1460 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1461 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1462 0 },
maclobdell 0:f7c60d3e7b8a 1463 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1464
maclobdell 0:f7c60d3e7b8a 1465 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1466 { MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384, "TLS-RSA-PSK-WITH-CAMELLIA-256-CBC-SHA384",
maclobdell 0:f7c60d3e7b8a 1467 MBEDTLS_CIPHER_CAMELLIA_256_CBC, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1468 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1469 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1470 0 },
maclobdell 0:f7c60d3e7b8a 1471 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1472 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1473
maclobdell 0:f7c60d3e7b8a 1474 #if defined(MBEDTLS_GCM_C)
maclobdell 0:f7c60d3e7b8a 1475 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1476 { MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256, "TLS-RSA-PSK-WITH-CAMELLIA-128-GCM-SHA256",
maclobdell 0:f7c60d3e7b8a 1477 MBEDTLS_CIPHER_CAMELLIA_128_GCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1478 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1479 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1480 0 },
maclobdell 0:f7c60d3e7b8a 1481 #endif /* MBEDTLS_SHA256_C */
maclobdell 0:f7c60d3e7b8a 1482
maclobdell 0:f7c60d3e7b8a 1483 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1484 { MBEDTLS_TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384, "TLS-RSA-PSK-WITH-CAMELLIA-256-GCM-SHA384",
maclobdell 0:f7c60d3e7b8a 1485 MBEDTLS_CIPHER_CAMELLIA_256_GCM, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1486 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1487 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1488 0 },
maclobdell 0:f7c60d3e7b8a 1489 #endif /* MBEDTLS_SHA512_C */
maclobdell 0:f7c60d3e7b8a 1490 #endif /* MBEDTLS_GCM_C */
maclobdell 0:f7c60d3e7b8a 1491 #endif /* MBEDTLS_CAMELLIA_C */
maclobdell 0:f7c60d3e7b8a 1492
maclobdell 0:f7c60d3e7b8a 1493 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 1494 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1495 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1496 { MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA, "TLS-RSA-PSK-WITH-3DES-EDE-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1497 MBEDTLS_CIPHER_DES_EDE3_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1498 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1499 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1500 0 },
maclobdell 0:f7c60d3e7b8a 1501 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1502 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1503 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 1504
maclobdell 0:f7c60d3e7b8a 1505 #if defined(MBEDTLS_ARC4_C)
maclobdell 0:f7c60d3e7b8a 1506 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1507 { MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA, "TLS-RSA-PSK-WITH-RC4-128-SHA",
maclobdell 0:f7c60d3e7b8a 1508 MBEDTLS_CIPHER_ARC4_128, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1509 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1510 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1511 MBEDTLS_CIPHERSUITE_NODTLS },
maclobdell 0:f7c60d3e7b8a 1512 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1513 #endif /* MBEDTLS_ARC4_C */
maclobdell 0:f7c60d3e7b8a 1514 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1515
maclobdell 0:f7c60d3e7b8a 1516 #if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
maclobdell 0:f7c60d3e7b8a 1517 #if defined(MBEDTLS_AES_C)
maclobdell 0:f7c60d3e7b8a 1518 #if defined(MBEDTLS_CCM_C)
maclobdell 0:f7c60d3e7b8a 1519 { MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8, "TLS-ECJPAKE-WITH-AES-128-CCM-8",
maclobdell 0:f7c60d3e7b8a 1520 MBEDTLS_CIPHER_AES_128_CCM, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECJPAKE,
maclobdell 0:f7c60d3e7b8a 1521 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1522 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1523 MBEDTLS_CIPHERSUITE_SHORT_TAG },
maclobdell 0:f7c60d3e7b8a 1524 #endif /* MBEDTLS_CCM_C */
maclobdell 0:f7c60d3e7b8a 1525 #endif /* MBEDTLS_AES_C */
maclobdell 0:f7c60d3e7b8a 1526 #endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */
maclobdell 0:f7c60d3e7b8a 1527
maclobdell 0:f7c60d3e7b8a 1528 #if defined(MBEDTLS_ENABLE_WEAK_CIPHERSUITES)
maclobdell 0:f7c60d3e7b8a 1529 #if defined(MBEDTLS_CIPHER_NULL_CIPHER)
maclobdell 0:f7c60d3e7b8a 1530 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 1531 #if defined(MBEDTLS_MD5_C)
maclobdell 0:f7c60d3e7b8a 1532 { MBEDTLS_TLS_RSA_WITH_NULL_MD5, "TLS-RSA-WITH-NULL-MD5",
maclobdell 0:f7c60d3e7b8a 1533 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_MD5, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 1534 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1535 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1536 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1537 #endif
maclobdell 0:f7c60d3e7b8a 1538
maclobdell 0:f7c60d3e7b8a 1539 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1540 { MBEDTLS_TLS_RSA_WITH_NULL_SHA, "TLS-RSA-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 1541 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 1542 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1543 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1544 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1545 #endif
maclobdell 0:f7c60d3e7b8a 1546
maclobdell 0:f7c60d3e7b8a 1547 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1548 { MBEDTLS_TLS_RSA_WITH_NULL_SHA256, "TLS-RSA-WITH-NULL-SHA256",
maclobdell 0:f7c60d3e7b8a 1549 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 1550 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1551 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1552 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1553 #endif
maclobdell 0:f7c60d3e7b8a 1554 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 1555
maclobdell 0:f7c60d3e7b8a 1556 #if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1557 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1558 { MBEDTLS_TLS_PSK_WITH_NULL_SHA, "TLS-PSK-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 1559 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1560 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1561 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1562 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1563 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1564
maclobdell 0:f7c60d3e7b8a 1565 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1566 { MBEDTLS_TLS_PSK_WITH_NULL_SHA256, "TLS-PSK-WITH-NULL-SHA256",
maclobdell 0:f7c60d3e7b8a 1567 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1568 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1569 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1570 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1571 #endif
maclobdell 0:f7c60d3e7b8a 1572
maclobdell 0:f7c60d3e7b8a 1573 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1574 { MBEDTLS_TLS_PSK_WITH_NULL_SHA384, "TLS-PSK-WITH-NULL-SHA384",
maclobdell 0:f7c60d3e7b8a 1575 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_PSK,
maclobdell 0:f7c60d3e7b8a 1576 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1577 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1578 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1579 #endif
maclobdell 0:f7c60d3e7b8a 1580 #endif /* MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1581
maclobdell 0:f7c60d3e7b8a 1582 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1583 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1584 { MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA, "TLS-DHE-PSK-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 1585 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1586 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1587 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1588 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1589 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1590
maclobdell 0:f7c60d3e7b8a 1591 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1592 { MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA256, "TLS-DHE-PSK-WITH-NULL-SHA256",
maclobdell 0:f7c60d3e7b8a 1593 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1594 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1595 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1596 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1597 #endif
maclobdell 0:f7c60d3e7b8a 1598
maclobdell 0:f7c60d3e7b8a 1599 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1600 { MBEDTLS_TLS_DHE_PSK_WITH_NULL_SHA384, "TLS-DHE-PSK-WITH-NULL-SHA384",
maclobdell 0:f7c60d3e7b8a 1601 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_DHE_PSK,
maclobdell 0:f7c60d3e7b8a 1602 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1603 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1604 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1605 #endif
maclobdell 0:f7c60d3e7b8a 1606 #endif /* MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1607
maclobdell 0:f7c60d3e7b8a 1608 #if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1609 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1610 { MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA, "TLS-ECDHE-PSK-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 1611 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1612 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1613 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1614 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1615 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1616
maclobdell 0:f7c60d3e7b8a 1617 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1618 { MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA256, "TLS-ECDHE-PSK-WITH-NULL-SHA256",
maclobdell 0:f7c60d3e7b8a 1619 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1620 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1621 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1622 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1623 #endif
maclobdell 0:f7c60d3e7b8a 1624
maclobdell 0:f7c60d3e7b8a 1625 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1626 { MBEDTLS_TLS_ECDHE_PSK_WITH_NULL_SHA384, "TLS-ECDHE-PSK-WITH-NULL-SHA384",
maclobdell 0:f7c60d3e7b8a 1627 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,
maclobdell 0:f7c60d3e7b8a 1628 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1629 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1630 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1631 #endif
maclobdell 0:f7c60d3e7b8a 1632 #endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1633
maclobdell 0:f7c60d3e7b8a 1634 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1635 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1636 { MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA, "TLS-RSA-PSK-WITH-NULL-SHA",
maclobdell 0:f7c60d3e7b8a 1637 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1638 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1639 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1640 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1641 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1642
maclobdell 0:f7c60d3e7b8a 1643 #if defined(MBEDTLS_SHA256_C)
maclobdell 0:f7c60d3e7b8a 1644 { MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA256, "TLS-RSA-PSK-WITH-NULL-SHA256",
maclobdell 0:f7c60d3e7b8a 1645 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA256, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1646 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1647 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1648 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1649 #endif
maclobdell 0:f7c60d3e7b8a 1650
maclobdell 0:f7c60d3e7b8a 1651 #if defined(MBEDTLS_SHA512_C)
maclobdell 0:f7c60d3e7b8a 1652 { MBEDTLS_TLS_RSA_PSK_WITH_NULL_SHA384, "TLS-RSA-PSK-WITH-NULL-SHA384",
maclobdell 0:f7c60d3e7b8a 1653 MBEDTLS_CIPHER_NULL, MBEDTLS_MD_SHA384, MBEDTLS_KEY_EXCHANGE_RSA_PSK,
maclobdell 0:f7c60d3e7b8a 1654 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_1,
maclobdell 0:f7c60d3e7b8a 1655 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1656 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1657 #endif
maclobdell 0:f7c60d3e7b8a 1658 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1659 #endif /* MBEDTLS_CIPHER_NULL_CIPHER */
maclobdell 0:f7c60d3e7b8a 1660
maclobdell 0:f7c60d3e7b8a 1661 #if defined(MBEDTLS_DES_C)
maclobdell 0:f7c60d3e7b8a 1662 #if defined(MBEDTLS_CIPHER_MODE_CBC)
maclobdell 0:f7c60d3e7b8a 1663 #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 1664 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1665 { MBEDTLS_TLS_DHE_RSA_WITH_DES_CBC_SHA, "TLS-DHE-RSA-WITH-DES-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1666 MBEDTLS_CIPHER_DES_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_DHE_RSA,
maclobdell 0:f7c60d3e7b8a 1667 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1668 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1669 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1670 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1671 #endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 1672
maclobdell 0:f7c60d3e7b8a 1673 #if defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
maclobdell 0:f7c60d3e7b8a 1674 #if defined(MBEDTLS_SHA1_C)
maclobdell 0:f7c60d3e7b8a 1675 { MBEDTLS_TLS_RSA_WITH_DES_CBC_SHA, "TLS-RSA-WITH-DES-CBC-SHA",
maclobdell 0:f7c60d3e7b8a 1676 MBEDTLS_CIPHER_DES_CBC, MBEDTLS_MD_SHA1, MBEDTLS_KEY_EXCHANGE_RSA,
maclobdell 0:f7c60d3e7b8a 1677 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0,
maclobdell 0:f7c60d3e7b8a 1678 MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3,
maclobdell 0:f7c60d3e7b8a 1679 MBEDTLS_CIPHERSUITE_WEAK },
maclobdell 0:f7c60d3e7b8a 1680 #endif /* MBEDTLS_SHA1_C */
maclobdell 0:f7c60d3e7b8a 1681 #endif /* MBEDTLS_KEY_EXCHANGE_RSA_ENABLED */
maclobdell 0:f7c60d3e7b8a 1682 #endif /* MBEDTLS_CIPHER_MODE_CBC */
maclobdell 0:f7c60d3e7b8a 1683 #endif /* MBEDTLS_DES_C */
maclobdell 0:f7c60d3e7b8a 1684 #endif /* MBEDTLS_ENABLE_WEAK_CIPHERSUITES */
maclobdell 0:f7c60d3e7b8a 1685
maclobdell 0:f7c60d3e7b8a 1686 { 0, "",
maclobdell 0:f7c60d3e7b8a 1687 MBEDTLS_CIPHER_NONE, MBEDTLS_MD_NONE, MBEDTLS_KEY_EXCHANGE_NONE,
maclobdell 0:f7c60d3e7b8a 1688 0, 0, 0, 0, 0 }
maclobdell 0:f7c60d3e7b8a 1689 };
maclobdell 0:f7c60d3e7b8a 1690
maclobdell 0:f7c60d3e7b8a 1691 #if defined(MBEDTLS_SSL_CIPHERSUITES)
maclobdell 0:f7c60d3e7b8a 1692 const int *mbedtls_ssl_list_ciphersuites( void )
maclobdell 0:f7c60d3e7b8a 1693 {
maclobdell 0:f7c60d3e7b8a 1694 return( ciphersuite_preference );
maclobdell 0:f7c60d3e7b8a 1695 }
maclobdell 0:f7c60d3e7b8a 1696 #else
maclobdell 0:f7c60d3e7b8a 1697 #define MAX_CIPHERSUITES sizeof( ciphersuite_definitions ) / \
maclobdell 0:f7c60d3e7b8a 1698 sizeof( ciphersuite_definitions[0] )
maclobdell 0:f7c60d3e7b8a 1699 static int supported_ciphersuites[MAX_CIPHERSUITES];
maclobdell 0:f7c60d3e7b8a 1700 static int supported_init = 0;
maclobdell 0:f7c60d3e7b8a 1701
maclobdell 0:f7c60d3e7b8a 1702 const int *mbedtls_ssl_list_ciphersuites( void )
maclobdell 0:f7c60d3e7b8a 1703 {
maclobdell 0:f7c60d3e7b8a 1704 /*
maclobdell 0:f7c60d3e7b8a 1705 * On initial call filter out all ciphersuites not supported by current
maclobdell 0:f7c60d3e7b8a 1706 * build based on presence in the ciphersuite_definitions.
maclobdell 0:f7c60d3e7b8a 1707 */
maclobdell 0:f7c60d3e7b8a 1708 if( supported_init == 0 )
maclobdell 0:f7c60d3e7b8a 1709 {
maclobdell 0:f7c60d3e7b8a 1710 const int *p;
maclobdell 0:f7c60d3e7b8a 1711 int *q;
maclobdell 0:f7c60d3e7b8a 1712
maclobdell 0:f7c60d3e7b8a 1713 for( p = ciphersuite_preference, q = supported_ciphersuites;
maclobdell 0:f7c60d3e7b8a 1714 *p != 0 && q < supported_ciphersuites + MAX_CIPHERSUITES - 1;
maclobdell 0:f7c60d3e7b8a 1715 p++ )
maclobdell 0:f7c60d3e7b8a 1716 {
maclobdell 0:f7c60d3e7b8a 1717 #if defined(MBEDTLS_REMOVE_ARC4_CIPHERSUITES)
maclobdell 0:f7c60d3e7b8a 1718 const mbedtls_ssl_ciphersuite_t *cs_info;
maclobdell 0:f7c60d3e7b8a 1719 if( ( cs_info = mbedtls_ssl_ciphersuite_from_id( *p ) ) != NULL &&
maclobdell 0:f7c60d3e7b8a 1720 cs_info->cipher != MBEDTLS_CIPHER_ARC4_128 )
maclobdell 0:f7c60d3e7b8a 1721 #else
maclobdell 0:f7c60d3e7b8a 1722 if( mbedtls_ssl_ciphersuite_from_id( *p ) != NULL )
maclobdell 0:f7c60d3e7b8a 1723 #endif
maclobdell 0:f7c60d3e7b8a 1724 *(q++) = *p;
maclobdell 0:f7c60d3e7b8a 1725 }
maclobdell 0:f7c60d3e7b8a 1726 *q = 0;
maclobdell 0:f7c60d3e7b8a 1727
maclobdell 0:f7c60d3e7b8a 1728 supported_init = 1;
maclobdell 0:f7c60d3e7b8a 1729 }
maclobdell 0:f7c60d3e7b8a 1730
maclobdell 0:f7c60d3e7b8a 1731 return( supported_ciphersuites );
maclobdell 0:f7c60d3e7b8a 1732 }
maclobdell 0:f7c60d3e7b8a 1733 #endif /* MBEDTLS_SSL_CIPHERSUITES */
maclobdell 0:f7c60d3e7b8a 1734
maclobdell 0:f7c60d3e7b8a 1735 const mbedtls_ssl_ciphersuite_t *mbedtls_ssl_ciphersuite_from_string(
maclobdell 0:f7c60d3e7b8a 1736 const char *ciphersuite_name )
maclobdell 0:f7c60d3e7b8a 1737 {
maclobdell 0:f7c60d3e7b8a 1738 const mbedtls_ssl_ciphersuite_t *cur = ciphersuite_definitions;
maclobdell 0:f7c60d3e7b8a 1739
maclobdell 0:f7c60d3e7b8a 1740 if( NULL == ciphersuite_name )
maclobdell 0:f7c60d3e7b8a 1741 return( NULL );
maclobdell 0:f7c60d3e7b8a 1742
maclobdell 0:f7c60d3e7b8a 1743 while( cur->id != 0 )
maclobdell 0:f7c60d3e7b8a 1744 {
maclobdell 0:f7c60d3e7b8a 1745 if( 0 == strcmp( cur->name, ciphersuite_name ) )
maclobdell 0:f7c60d3e7b8a 1746 return( cur );
maclobdell 0:f7c60d3e7b8a 1747
maclobdell 0:f7c60d3e7b8a 1748 cur++;
maclobdell 0:f7c60d3e7b8a 1749 }
maclobdell 0:f7c60d3e7b8a 1750
maclobdell 0:f7c60d3e7b8a 1751 return( NULL );
maclobdell 0:f7c60d3e7b8a 1752 }
maclobdell 0:f7c60d3e7b8a 1753
maclobdell 0:f7c60d3e7b8a 1754 const mbedtls_ssl_ciphersuite_t *mbedtls_ssl_ciphersuite_from_id( int ciphersuite )
maclobdell 0:f7c60d3e7b8a 1755 {
maclobdell 0:f7c60d3e7b8a 1756 const mbedtls_ssl_ciphersuite_t *cur = ciphersuite_definitions;
maclobdell 0:f7c60d3e7b8a 1757
maclobdell 0:f7c60d3e7b8a 1758 while( cur->id != 0 )
maclobdell 0:f7c60d3e7b8a 1759 {
maclobdell 0:f7c60d3e7b8a 1760 if( cur->id == ciphersuite )
maclobdell 0:f7c60d3e7b8a 1761 return( cur );
maclobdell 0:f7c60d3e7b8a 1762
maclobdell 0:f7c60d3e7b8a 1763 cur++;
maclobdell 0:f7c60d3e7b8a 1764 }
maclobdell 0:f7c60d3e7b8a 1765
maclobdell 0:f7c60d3e7b8a 1766 return( NULL );
maclobdell 0:f7c60d3e7b8a 1767 }
maclobdell 0:f7c60d3e7b8a 1768
maclobdell 0:f7c60d3e7b8a 1769 const char *mbedtls_ssl_get_ciphersuite_name( const int ciphersuite_id )
maclobdell 0:f7c60d3e7b8a 1770 {
maclobdell 0:f7c60d3e7b8a 1771 const mbedtls_ssl_ciphersuite_t *cur;
maclobdell 0:f7c60d3e7b8a 1772
maclobdell 0:f7c60d3e7b8a 1773 cur = mbedtls_ssl_ciphersuite_from_id( ciphersuite_id );
maclobdell 0:f7c60d3e7b8a 1774
maclobdell 0:f7c60d3e7b8a 1775 if( cur == NULL )
maclobdell 0:f7c60d3e7b8a 1776 return( "unknown" );
maclobdell 0:f7c60d3e7b8a 1777
maclobdell 0:f7c60d3e7b8a 1778 return( cur->name );
maclobdell 0:f7c60d3e7b8a 1779 }
maclobdell 0:f7c60d3e7b8a 1780
maclobdell 0:f7c60d3e7b8a 1781 int mbedtls_ssl_get_ciphersuite_id( const char *ciphersuite_name )
maclobdell 0:f7c60d3e7b8a 1782 {
maclobdell 0:f7c60d3e7b8a 1783 const mbedtls_ssl_ciphersuite_t *cur;
maclobdell 0:f7c60d3e7b8a 1784
maclobdell 0:f7c60d3e7b8a 1785 cur = mbedtls_ssl_ciphersuite_from_string( ciphersuite_name );
maclobdell 0:f7c60d3e7b8a 1786
maclobdell 0:f7c60d3e7b8a 1787 if( cur == NULL )
maclobdell 0:f7c60d3e7b8a 1788 return( 0 );
maclobdell 0:f7c60d3e7b8a 1789
maclobdell 0:f7c60d3e7b8a 1790 return( cur->id );
maclobdell 0:f7c60d3e7b8a 1791 }
maclobdell 0:f7c60d3e7b8a 1792
maclobdell 0:f7c60d3e7b8a 1793 #if defined(MBEDTLS_PK_C)
maclobdell 0:f7c60d3e7b8a 1794 mbedtls_pk_type_t mbedtls_ssl_get_ciphersuite_sig_pk_alg( const mbedtls_ssl_ciphersuite_t *info )
maclobdell 0:f7c60d3e7b8a 1795 {
maclobdell 0:f7c60d3e7b8a 1796 switch( info->key_exchange )
maclobdell 0:f7c60d3e7b8a 1797 {
maclobdell 0:f7c60d3e7b8a 1798 case MBEDTLS_KEY_EXCHANGE_RSA:
maclobdell 0:f7c60d3e7b8a 1799 case MBEDTLS_KEY_EXCHANGE_DHE_RSA:
maclobdell 0:f7c60d3e7b8a 1800 case MBEDTLS_KEY_EXCHANGE_ECDHE_RSA:
maclobdell 0:f7c60d3e7b8a 1801 case MBEDTLS_KEY_EXCHANGE_RSA_PSK:
maclobdell 0:f7c60d3e7b8a 1802 return( MBEDTLS_PK_RSA );
maclobdell 0:f7c60d3e7b8a 1803
maclobdell 0:f7c60d3e7b8a 1804 case MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA:
maclobdell 0:f7c60d3e7b8a 1805 return( MBEDTLS_PK_ECDSA );
maclobdell 0:f7c60d3e7b8a 1806
maclobdell 0:f7c60d3e7b8a 1807 case MBEDTLS_KEY_EXCHANGE_ECDH_RSA:
maclobdell 0:f7c60d3e7b8a 1808 case MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA:
maclobdell 0:f7c60d3e7b8a 1809 return( MBEDTLS_PK_ECKEY );
maclobdell 0:f7c60d3e7b8a 1810
maclobdell 0:f7c60d3e7b8a 1811 default:
maclobdell 0:f7c60d3e7b8a 1812 return( MBEDTLS_PK_NONE );
maclobdell 0:f7c60d3e7b8a 1813 }
maclobdell 0:f7c60d3e7b8a 1814 }
maclobdell 0:f7c60d3e7b8a 1815 #endif /* MBEDTLS_PK_C */
maclobdell 0:f7c60d3e7b8a 1816
maclobdell 0:f7c60d3e7b8a 1817 #if defined(MBEDTLS_ECDH_C) || defined(MBEDTLS_ECDSA_C)
maclobdell 0:f7c60d3e7b8a 1818 int mbedtls_ssl_ciphersuite_uses_ec( const mbedtls_ssl_ciphersuite_t *info )
maclobdell 0:f7c60d3e7b8a 1819 {
maclobdell 0:f7c60d3e7b8a 1820 switch( info->key_exchange )
maclobdell 0:f7c60d3e7b8a 1821 {
maclobdell 0:f7c60d3e7b8a 1822 case MBEDTLS_KEY_EXCHANGE_ECDHE_RSA:
maclobdell 0:f7c60d3e7b8a 1823 case MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA:
maclobdell 0:f7c60d3e7b8a 1824 case MBEDTLS_KEY_EXCHANGE_ECDHE_PSK:
maclobdell 0:f7c60d3e7b8a 1825 case MBEDTLS_KEY_EXCHANGE_ECDH_RSA:
maclobdell 0:f7c60d3e7b8a 1826 case MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA:
maclobdell 0:f7c60d3e7b8a 1827 return( 1 );
maclobdell 0:f7c60d3e7b8a 1828
maclobdell 0:f7c60d3e7b8a 1829 default:
maclobdell 0:f7c60d3e7b8a 1830 return( 0 );
maclobdell 0:f7c60d3e7b8a 1831 }
maclobdell 0:f7c60d3e7b8a 1832 }
maclobdell 0:f7c60d3e7b8a 1833 #endif /* MBEDTLS_ECDH_C || MBEDTLS_ECDSA_C */
maclobdell 0:f7c60d3e7b8a 1834
maclobdell 0:f7c60d3e7b8a 1835 #if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
maclobdell 0:f7c60d3e7b8a 1836 int mbedtls_ssl_ciphersuite_uses_psk( const mbedtls_ssl_ciphersuite_t *info )
maclobdell 0:f7c60d3e7b8a 1837 {
maclobdell 0:f7c60d3e7b8a 1838 switch( info->key_exchange )
maclobdell 0:f7c60d3e7b8a 1839 {
maclobdell 0:f7c60d3e7b8a 1840 case MBEDTLS_KEY_EXCHANGE_PSK:
maclobdell 0:f7c60d3e7b8a 1841 case MBEDTLS_KEY_EXCHANGE_RSA_PSK:
maclobdell 0:f7c60d3e7b8a 1842 case MBEDTLS_KEY_EXCHANGE_DHE_PSK:
maclobdell 0:f7c60d3e7b8a 1843 case MBEDTLS_KEY_EXCHANGE_ECDHE_PSK:
maclobdell 0:f7c60d3e7b8a 1844 return( 1 );
maclobdell 0:f7c60d3e7b8a 1845
maclobdell 0:f7c60d3e7b8a 1846 default:
maclobdell 0:f7c60d3e7b8a 1847 return( 0 );
maclobdell 0:f7c60d3e7b8a 1848 }
maclobdell 0:f7c60d3e7b8a 1849 }
maclobdell 0:f7c60d3e7b8a 1850 #endif /* MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED */
maclobdell 0:f7c60d3e7b8a 1851
maclobdell 0:f7c60d3e7b8a 1852 #endif /* MBEDTLS_SSL_TLS_C */