mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 10:28:35 +00:00
Update the ccm-psk config with psk_len 128 bits
This commit is contained in:
parent
481fcfde93
commit
ac7dd33de1
1 changed files with 6 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
/* System support */
|
/* System support */
|
||||||
//#define POLARSSL_HAVE_IPV6 /* Optional */
|
//#define POLARSSL_HAVE_IPV6 /* Optional */
|
||||||
//#define POLARSSL_HAVE_TIME /* Optionnaly used in Hello messages */
|
//#define POLARSSL_HAVE_TIME /* Optionally used in Hello messages */
|
||||||
/* Other POLARSSL_HAVE_XXX flags irrelevant for this configuration */
|
/* Other POLARSSL_HAVE_XXX flags irrelevant for this configuration */
|
||||||
|
|
||||||
/* PolarSSL feature support */
|
/* PolarSSL feature support */
|
||||||
|
@ -36,6 +36,9 @@
|
||||||
/* Save RAM at the expense of ROM */
|
/* Save RAM at the expense of ROM */
|
||||||
#define POLARSSL_AES_ROM_TABLES
|
#define POLARSSL_AES_ROM_TABLES
|
||||||
|
|
||||||
|
/* Save some RAM by adjusting to your exact needs */
|
||||||
|
#define POLARSSL_PSK_MAX_LEN 16 /* 128-bits keys are generally enough */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* You should adjust this to the exact number of sources you're using: default
|
* You should adjust this to the exact number of sources you're using: default
|
||||||
* is the "platform_entropy_poll" source, but you may want to add other ones
|
* is the "platform_entropy_poll" source, but you may want to add other ones
|
||||||
|
@ -50,9 +53,10 @@
|
||||||
#define SSL_CIPHERSUITES \
|
#define SSL_CIPHERSUITES \
|
||||||
TLS_PSK_WITH_AES_256_CCM_8, \
|
TLS_PSK_WITH_AES_256_CCM_8, \
|
||||||
TLS_PSK_WITH_AES_128_CCM_8
|
TLS_PSK_WITH_AES_128_CCM_8
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Save RAM at the expense of interoperability: do this only if you control
|
* Save RAM at the expense of interoperability: do this only if you control
|
||||||
* both ends of the connection! (See coments in "polarssl/ssl.h".)
|
* both ends of the connection! (See comments in "polarssl/ssl.h".)
|
||||||
* The optimal size here depends on the typical size of records.
|
* The optimal size here depends on the typical size of records.
|
||||||
*/
|
*/
|
||||||
#define SSL_MAX_CONTENT_LEN 512
|
#define SSL_MAX_CONTENT_LEN 512
|
||||||
|
|
Loading…
Reference in a new issue