@@ -103,8 +103,8 @@ typedef enum {
103
103
/**
104
104
* \brief Supported {cipher type, cipher mode} pairs.
105
105
*
106
- * \warning RC4 and DES are considered weak ciphers and their use
107
- * constitutes a security risk. Arm recommends considering stronger
106
+ * \warning RC4 and DES/3DES are considered weak ciphers and their use
107
+ * constitutes a security risk. We recommend considering stronger
108
108
* ciphers instead.
109
109
*/
110
110
typedef enum {
@@ -140,12 +140,12 @@ typedef enum {
140
140
MBEDTLS_CIPHER_CAMELLIA_128_GCM , /**< Camellia cipher with 128-bit GCM mode. */
141
141
MBEDTLS_CIPHER_CAMELLIA_192_GCM , /**< Camellia cipher with 192-bit GCM mode. */
142
142
MBEDTLS_CIPHER_CAMELLIA_256_GCM , /**< Camellia cipher with 256-bit GCM mode. */
143
- MBEDTLS_CIPHER_DES_ECB , /**< DES cipher with ECB mode. */
144
- MBEDTLS_CIPHER_DES_CBC , /**< DES cipher with CBC mode. */
145
- MBEDTLS_CIPHER_DES_EDE_ECB , /**< DES cipher with EDE ECB mode. */
146
- MBEDTLS_CIPHER_DES_EDE_CBC , /**< DES cipher with EDE CBC mode. */
147
- MBEDTLS_CIPHER_DES_EDE3_ECB , /**< DES cipher with EDE3 ECB mode. */
148
- MBEDTLS_CIPHER_DES_EDE3_CBC , /**< DES cipher with EDE3 CBC mode. */
143
+ MBEDTLS_CIPHER_DES_ECB , /**< DES cipher with ECB mode. \warning DES is considered weak. */
144
+ MBEDTLS_CIPHER_DES_CBC , /**< DES cipher with CBC mode. \warning DES is considered weak. */
145
+ MBEDTLS_CIPHER_DES_EDE_ECB , /**< DES cipher with EDE ECB mode. \warning 3DES is considered weak. */
146
+ MBEDTLS_CIPHER_DES_EDE_CBC , /**< DES cipher with EDE CBC mode. \warning 3DES is considered weak. */
147
+ MBEDTLS_CIPHER_DES_EDE3_ECB , /**< DES cipher with EDE3 ECB mode. \warning 3DES is considered weak. */
148
+ MBEDTLS_CIPHER_DES_EDE3_CBC , /**< DES cipher with EDE3 CBC mode. \warning 3DES is considered weak. */
149
149
MBEDTLS_CIPHER_BLOWFISH_ECB , /**< Blowfish cipher with ECB mode. */
150
150
MBEDTLS_CIPHER_BLOWFISH_CBC , /**< Blowfish cipher with CBC mode. */
151
151
MBEDTLS_CIPHER_BLOWFISH_CFB64 , /**< Blowfish cipher with CFB64 mode. */
@@ -226,11 +226,11 @@ typedef enum {
226
226
enum {
227
227
/** Undefined key length. */
228
228
MBEDTLS_KEY_LENGTH_NONE = 0 ,
229
- /** Key length, in bits (including parity), for DES keys. */
229
+ /** Key length, in bits (including parity), for DES keys. \warning DES is considered weak. */
230
230
MBEDTLS_KEY_LENGTH_DES = 64 ,
231
- /** Key length in bits, including parity, for DES in two-key EDE. */
231
+ /** Key length in bits, including parity, for DES in two-key EDE. \warning 3DES is considered weak. */
232
232
MBEDTLS_KEY_LENGTH_DES_EDE = 128 ,
233
- /** Key length in bits, including parity, for DES in three-key EDE. */
233
+ /** Key length in bits, including parity, for DES in three-key EDE. \warning 3DES is considered weak. */
234
234
MBEDTLS_KEY_LENGTH_DES_EDE3 = 192 ,
235
235
};
236
236
0 commit comments