mbed TLS library

Dependents:   HTTPClient-SSL WS_SERVER

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ssl_ciphersuites.h Source File

ssl_ciphersuites.h

Go to the documentation of this file.
00001 /**
00002  * \file ssl_ciphersuites.h
00003  *
00004  * \brief SSL Ciphersuites for mbed TLS
00005  *
00006  *  Copyright (C) 2006-2013, ARM Limited, All Rights Reserved
00007  *
00008  *  This file is part of mbed TLS (https://tls.mbed.org)
00009  *
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License along
00021  *  with this program; if not, write to the Free Software Foundation, Inc.,
00022  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00023  */
00024 #ifndef POLARSSL_SSL_CIPHERSUITES_H
00025 #define POLARSSL_SSL_CIPHERSUITES_H
00026 
00027 #include "pk.h"
00028 #include "cipher.h"
00029 #include "md.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /*
00036  * Supported ciphersuites (Official IANA names)
00037  */
00038 #define TLS_RSA_WITH_NULL_MD5                    0x01   /**< Weak! */
00039 #define TLS_RSA_WITH_NULL_SHA                    0x02   /**< Weak! */
00040 
00041 #define TLS_RSA_WITH_RC4_128_MD5                 0x04
00042 #define TLS_RSA_WITH_RC4_128_SHA                 0x05
00043 #define TLS_RSA_WITH_DES_CBC_SHA                 0x09   /**< Weak! Not in TLS 1.2 */
00044 
00045 #define TLS_RSA_WITH_3DES_EDE_CBC_SHA            0x0A
00046 
00047 #define TLS_DHE_RSA_WITH_DES_CBC_SHA             0x15   /**< Weak! Not in TLS 1.2 */
00048 #define TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA        0x16
00049 
00050 #define TLS_PSK_WITH_NULL_SHA                    0x2C   /**< Weak! */
00051 #define TLS_DHE_PSK_WITH_NULL_SHA                0x2D   /**< Weak! */
00052 #define TLS_RSA_PSK_WITH_NULL_SHA                0x2E   /**< Weak! */
00053 #define TLS_RSA_WITH_AES_128_CBC_SHA             0x2F
00054 
00055 #define TLS_DHE_RSA_WITH_AES_128_CBC_SHA         0x33
00056 #define TLS_RSA_WITH_AES_256_CBC_SHA             0x35
00057 #define TLS_DHE_RSA_WITH_AES_256_CBC_SHA         0x39
00058 
00059 #define TLS_RSA_WITH_NULL_SHA256                 0x3B   /**< Weak! */
00060 #define TLS_RSA_WITH_AES_128_CBC_SHA256          0x3C   /**< TLS 1.2 */
00061 #define TLS_RSA_WITH_AES_256_CBC_SHA256          0x3D   /**< TLS 1.2 */
00062 
00063 #define TLS_RSA_WITH_CAMELLIA_128_CBC_SHA        0x41
00064 #define TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA    0x45
00065 
00066 #define TLS_DHE_RSA_WITH_AES_128_CBC_SHA256      0x67   /**< TLS 1.2 */
00067 #define TLS_DHE_RSA_WITH_AES_256_CBC_SHA256      0x6B   /**< TLS 1.2 */
00068 
00069 #define TLS_RSA_WITH_CAMELLIA_256_CBC_SHA        0x84
00070 #define TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA    0x88
00071 
00072 #define TLS_PSK_WITH_RC4_128_SHA                 0x8A
00073 #define TLS_PSK_WITH_3DES_EDE_CBC_SHA            0x8B
00074 #define TLS_PSK_WITH_AES_128_CBC_SHA             0x8C
00075 #define TLS_PSK_WITH_AES_256_CBC_SHA             0x8D
00076 
00077 #define TLS_DHE_PSK_WITH_RC4_128_SHA             0x8E
00078 #define TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA        0x8F
00079 #define TLS_DHE_PSK_WITH_AES_128_CBC_SHA         0x90
00080 #define TLS_DHE_PSK_WITH_AES_256_CBC_SHA         0x91
00081 
00082 #define TLS_RSA_PSK_WITH_RC4_128_SHA             0x92
00083 #define TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA        0x93
00084 #define TLS_RSA_PSK_WITH_AES_128_CBC_SHA         0x94
00085 #define TLS_RSA_PSK_WITH_AES_256_CBC_SHA         0x95
00086 
00087 #define TLS_RSA_WITH_AES_128_GCM_SHA256          0x9C   /**< TLS 1.2 */
00088 #define TLS_RSA_WITH_AES_256_GCM_SHA384          0x9D   /**< TLS 1.2 */
00089 #define TLS_DHE_RSA_WITH_AES_128_GCM_SHA256      0x9E   /**< TLS 1.2 */
00090 #define TLS_DHE_RSA_WITH_AES_256_GCM_SHA384      0x9F   /**< TLS 1.2 */
00091 
00092 #define TLS_PSK_WITH_AES_128_GCM_SHA256          0xA8   /**< TLS 1.2 */
00093 #define TLS_PSK_WITH_AES_256_GCM_SHA384          0xA9   /**< TLS 1.2 */
00094 #define TLS_DHE_PSK_WITH_AES_128_GCM_SHA256      0xAA   /**< TLS 1.2 */
00095 #define TLS_DHE_PSK_WITH_AES_256_GCM_SHA384      0xAB   /**< TLS 1.2 */
00096 #define TLS_RSA_PSK_WITH_AES_128_GCM_SHA256      0xAC   /**< TLS 1.2 */
00097 #define TLS_RSA_PSK_WITH_AES_256_GCM_SHA384      0xAD   /**< TLS 1.2 */
00098 
00099 #define TLS_PSK_WITH_AES_128_CBC_SHA256          0xAE
00100 #define TLS_PSK_WITH_AES_256_CBC_SHA384          0xAF
00101 #define TLS_PSK_WITH_NULL_SHA256                 0xB0   /**< Weak! */
00102 #define TLS_PSK_WITH_NULL_SHA384                 0xB1   /**< Weak! */
00103 
00104 #define TLS_DHE_PSK_WITH_AES_128_CBC_SHA256      0xB2
00105 #define TLS_DHE_PSK_WITH_AES_256_CBC_SHA384      0xB3
00106 #define TLS_DHE_PSK_WITH_NULL_SHA256             0xB4   /**< Weak! */
00107 #define TLS_DHE_PSK_WITH_NULL_SHA384             0xB5   /**< Weak! */
00108 
00109 #define TLS_RSA_PSK_WITH_AES_128_CBC_SHA256      0xB6
00110 #define TLS_RSA_PSK_WITH_AES_256_CBC_SHA384      0xB7
00111 #define TLS_RSA_PSK_WITH_NULL_SHA256             0xB8   /**< Weak! */
00112 #define TLS_RSA_PSK_WITH_NULL_SHA384             0xB9   /**< Weak! */
00113 
00114 #define TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256     0xBA   /**< TLS 1.2 */
00115 #define TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0xBE   /**< TLS 1.2 */
00116 
00117 #define TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256     0xC0   /**< TLS 1.2 */
00118 #define TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 0xC4   /**< TLS 1.2 */
00119 
00120 #define TLS_ECDH_ECDSA_WITH_NULL_SHA             0xC001 /**< Weak! */
00121 #define TLS_ECDH_ECDSA_WITH_RC4_128_SHA          0xC002 /**< Not in SSL3! */
00122 #define TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA     0xC003 /**< Not in SSL3! */
00123 #define TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA      0xC004 /**< Not in SSL3! */
00124 #define TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA      0xC005 /**< Not in SSL3! */
00125 
00126 #define TLS_ECDHE_ECDSA_WITH_NULL_SHA            0xC006 /**< Weak! */
00127 #define TLS_ECDHE_ECDSA_WITH_RC4_128_SHA         0xC007 /**< Not in SSL3! */
00128 #define TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA    0xC008 /**< Not in SSL3! */
00129 #define TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA     0xC009 /**< Not in SSL3! */
00130 #define TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA     0xC00A /**< Not in SSL3! */
00131 
00132 #define TLS_ECDH_RSA_WITH_NULL_SHA               0xC00B /**< Weak! */
00133 #define TLS_ECDH_RSA_WITH_RC4_128_SHA            0xC00C /**< Not in SSL3! */
00134 #define TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA       0xC00D /**< Not in SSL3! */
00135 #define TLS_ECDH_RSA_WITH_AES_128_CBC_SHA        0xC00E /**< Not in SSL3! */
00136 #define TLS_ECDH_RSA_WITH_AES_256_CBC_SHA        0xC00F /**< Not in SSL3! */
00137 
00138 #define TLS_ECDHE_RSA_WITH_NULL_SHA              0xC010 /**< Weak! */
00139 #define TLS_ECDHE_RSA_WITH_RC4_128_SHA           0xC011 /**< Not in SSL3! */
00140 #define TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA      0xC012 /**< Not in SSL3! */
00141 #define TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA       0xC013 /**< Not in SSL3! */
00142 #define TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA       0xC014 /**< Not in SSL3! */
00143 
00144 #define TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256  0xC023 /**< TLS 1.2 */
00145 #define TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384  0xC024 /**< TLS 1.2 */
00146 #define TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256   0xC025 /**< TLS 1.2 */
00147 #define TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384   0xC026 /**< TLS 1.2 */
00148 #define TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256    0xC027 /**< TLS 1.2 */
00149 #define TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384    0xC028 /**< TLS 1.2 */
00150 #define TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256     0xC029 /**< TLS 1.2 */
00151 #define TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384     0xC02A /**< TLS 1.2 */
00152 
00153 #define TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256  0xC02B /**< TLS 1.2 */
00154 #define TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384  0xC02C /**< TLS 1.2 */
00155 #define TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256   0xC02D /**< TLS 1.2 */
00156 #define TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384   0xC02E /**< TLS 1.2 */
00157 #define TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256    0xC02F /**< TLS 1.2 */
00158 #define TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384    0xC030 /**< TLS 1.2 */
00159 #define TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256     0xC031 /**< TLS 1.2 */
00160 #define TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384     0xC032 /**< TLS 1.2 */
00161 
00162 #define TLS_ECDHE_PSK_WITH_RC4_128_SHA           0xC033 /**< Not in SSL3! */
00163 #define TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA      0xC034 /**< Not in SSL3! */
00164 #define TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA       0xC035 /**< Not in SSL3! */
00165 #define TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA       0xC036 /**< Not in SSL3! */
00166 #define TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256    0xC037 /**< Not in SSL3! */
00167 #define TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384    0xC038 /**< Not in SSL3! */
00168 #define TLS_ECDHE_PSK_WITH_NULL_SHA              0xC039 /**< Weak! No SSL3! */
00169 #define TLS_ECDHE_PSK_WITH_NULL_SHA256           0xC03A /**< Weak! No SSL3! */
00170 #define TLS_ECDHE_PSK_WITH_NULL_SHA384           0xC03B /**< Weak! No SSL3! */
00171 
00172 #define TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0xC072 /**< Not in SSL3! */
00173 #define TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0xC073 /**< Not in SSL3! */
00174 #define TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  0xC074 /**< Not in SSL3! */
00175 #define TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  0xC075 /**< Not in SSL3! */
00176 #define TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   0xC076 /**< Not in SSL3! */
00177 #define TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   0xC077 /**< Not in SSL3! */
00178 #define TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    0xC078 /**< Not in SSL3! */
00179 #define TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    0xC079 /**< Not in SSL3! */
00180 
00181 #define TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256         0xC07A /**< TLS 1.2 */
00182 #define TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384         0xC07B /**< TLS 1.2 */
00183 #define TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256     0xC07C /**< TLS 1.2 */
00184 #define TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384     0xC07D /**< TLS 1.2 */
00185 #define TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 0xC086 /**< TLS 1.2 */
00186 #define TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 0xC087 /**< TLS 1.2 */
00187 #define TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256  0xC088 /**< TLS 1.2 */
00188 #define TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384  0xC089 /**< TLS 1.2 */
00189 #define TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256   0xC08A /**< TLS 1.2 */
00190 #define TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384   0xC08B /**< TLS 1.2 */
00191 #define TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256    0xC08C /**< TLS 1.2 */
00192 #define TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384    0xC08D /**< TLS 1.2 */
00193 
00194 #define TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256       0xC08E /**< TLS 1.2 */
00195 #define TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384       0xC08F /**< TLS 1.2 */
00196 #define TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256   0xC090 /**< TLS 1.2 */
00197 #define TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384   0xC091 /**< TLS 1.2 */
00198 #define TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256   0xC092 /**< TLS 1.2 */
00199 #define TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384   0xC093 /**< TLS 1.2 */
00200 
00201 #define TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256       0xC094
00202 #define TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384       0xC095
00203 #define TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   0xC096
00204 #define TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   0xC097
00205 #define TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256   0xC098
00206 #define TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384   0xC099
00207 #define TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0xC09A /**< Not in SSL3! */
00208 #define TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0xC09B /**< Not in SSL3! */
00209 
00210 #define TLS_RSA_WITH_AES_128_CCM                0xC09C  /**< TLS 1.2 */
00211 #define TLS_RSA_WITH_AES_256_CCM                0xC09D  /**< TLS 1.2 */
00212 #define TLS_DHE_RSA_WITH_AES_128_CCM            0xC09E  /**< TLS 1.2 */
00213 #define TLS_DHE_RSA_WITH_AES_256_CCM            0xC09F  /**< TLS 1.2 */
00214 #define TLS_RSA_WITH_AES_128_CCM_8              0xC0A0  /**< TLS 1.2 */
00215 #define TLS_RSA_WITH_AES_256_CCM_8              0xC0A1  /**< TLS 1.2 */
00216 #define TLS_DHE_RSA_WITH_AES_128_CCM_8          0xC0A2  /**< TLS 1.2 */
00217 #define TLS_DHE_RSA_WITH_AES_256_CCM_8          0xC0A3  /**< TLS 1.2 */
00218 #define TLS_PSK_WITH_AES_128_CCM                0xC0A4  /**< TLS 1.2 */
00219 #define TLS_PSK_WITH_AES_256_CCM                0xC0A5  /**< TLS 1.2 */
00220 #define TLS_DHE_PSK_WITH_AES_128_CCM            0xC0A6  /**< TLS 1.2 */
00221 #define TLS_DHE_PSK_WITH_AES_256_CCM            0xC0A7  /**< TLS 1.2 */
00222 #define TLS_PSK_WITH_AES_128_CCM_8              0xC0A8  /**< TLS 1.2 */
00223 #define TLS_PSK_WITH_AES_256_CCM_8              0xC0A9  /**< TLS 1.2 */
00224 #define TLS_DHE_PSK_WITH_AES_128_CCM_8          0xC0AA  /**< TLS 1.2 */
00225 #define TLS_DHE_PSK_WITH_AES_256_CCM_8          0xC0AB  /**< TLS 1.2 */
00226 /* The last two are named with PSK_DHE in the RFC, which looks like a typo */
00227 
00228 #define TLS_ECDHE_ECDSA_WITH_AES_128_CCM        0xC0AC  /**< TLS 1.2 */
00229 #define TLS_ECDHE_ECDSA_WITH_AES_256_CCM        0xC0AD  /**< TLS 1.2 */
00230 #define TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8      0xC0AE  /**< TLS 1.2 */
00231 #define TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8      0xC0AF  /**< TLS 1.2 */
00232 
00233 /* Reminder: update _ssl_premaster_secret when adding a new key exchange.
00234  * Reminder: update POLARSSL_KEY_EXCHANGE__WITH_CERT__ENABLED below.
00235  */
00236 typedef enum {
00237     POLARSSL_KEY_EXCHANGE_NONE = 0,
00238     POLARSSL_KEY_EXCHANGE_RSA,
00239     POLARSSL_KEY_EXCHANGE_DHE_RSA,
00240     POLARSSL_KEY_EXCHANGE_ECDHE_RSA,
00241     POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA,
00242     POLARSSL_KEY_EXCHANGE_PSK,
00243     POLARSSL_KEY_EXCHANGE_DHE_PSK,
00244     POLARSSL_KEY_EXCHANGE_RSA_PSK,
00245     POLARSSL_KEY_EXCHANGE_ECDHE_PSK,
00246     POLARSSL_KEY_EXCHANGE_ECDH_RSA,
00247     POLARSSL_KEY_EXCHANGE_ECDH_ECDSA,
00248 } key_exchange_type_t;
00249 
00250 #if defined(POLARSSL_KEY_EXCHANGE_RSA_ENABLED)          || \
00251     defined(POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED)      || \
00252     defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED)    || \
00253     defined(POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)  || \
00254     defined(POLARSSL_KEY_EXCHANGE_RSA_PSK_ENABLED)      || \
00255     defined(POLARSSL_KEY_EXCHANGE_ECDHE_PSK_ENABLED)    || \
00256     defined(POLARSSL_KEY_EXCHANGE_ECDH_RSA_ENABLED)     || \
00257     defined(POLARSSL_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
00258 #define POLARSSL_KEY_EXCHANGE__WITH_CERT__ENABLED
00259 #endif
00260 
00261 typedef struct _ssl_ciphersuite_t ssl_ciphersuite_t;
00262 
00263 #define POLARSSL_CIPHERSUITE_WEAK       0x01    /**< Weak ciphersuite flag  */
00264 #define POLARSSL_CIPHERSUITE_SHORT_TAG  0x02    /**< Short authentication tag,
00265                                                      eg for CCM_8 */
00266 
00267 /**
00268  * \brief   This structure is used for storing ciphersuite information
00269  */
00270 struct _ssl_ciphersuite_t
00271 {
00272     int id;
00273     const char * name;
00274 
00275     cipher_type_t cipher;
00276     md_type_t mac;
00277     key_exchange_type_t key_exchange;
00278 
00279     int min_major_ver;
00280     int min_minor_ver;
00281     int max_major_ver;
00282     int max_minor_ver;
00283 
00284     unsigned char flags;
00285 };
00286 
00287 const int *ssl_list_ciphersuites( void );
00288 
00289 const ssl_ciphersuite_t *ssl_ciphersuite_from_string( const char *ciphersuite_name );
00290 const ssl_ciphersuite_t *ssl_ciphersuite_from_id( int ciphersuite_id );
00291 
00292 #if defined(POLARSSL_PK_C)
00293 pk_type_t ssl_get_ciphersuite_sig_pk_alg( const ssl_ciphersuite_t *info );
00294 #endif
00295 
00296 int ssl_ciphersuite_uses_ec( const ssl_ciphersuite_t *info );
00297 int ssl_ciphersuite_uses_psk( const ssl_ciphersuite_t *info );
00298 
00299 #ifdef __cplusplus
00300 }
00301 #endif
00302 
00303 #endif /* ssl_ciphersuites.h */
00304