mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 05:05:35 +00:00
Reduce buffer size of okm
Reduce the buffer size of okm to 128, to reduce stack usage.
This commit is contained in:
parent
45154eb20b
commit
d9ad084b2d
|
@ -17,9 +17,9 @@ void test_hkdf( int md_alg, char *hex_ikm_string, char *hex_salt_string,
|
||||||
unsigned char ikm[128] = { '\0' };
|
unsigned char ikm[128] = { '\0' };
|
||||||
unsigned char salt[128] = { '\0' };
|
unsigned char salt[128] = { '\0' };
|
||||||
unsigned char info[128] = { '\0' };
|
unsigned char info[128] = { '\0' };
|
||||||
unsigned char expected_okm[256] = { '\0' };
|
unsigned char expected_okm[128] = { '\0' };
|
||||||
unsigned char okm[256] = { '\0' };
|
unsigned char okm[128] = { '\0' };
|
||||||
unsigned char okm_string[200] = { '\0' };
|
unsigned char okm_string[256] = { '\0' };
|
||||||
|
|
||||||
const mbedtls_md_info_t *md = mbedtls_md_info_from_type( md_alg );
|
const mbedtls_md_info_t *md = mbedtls_md_info_from_type( md_alg );
|
||||||
TEST_ASSERT( md != NULL );
|
TEST_ASSERT( md != NULL );
|
||||||
|
|
Loading…
Reference in a new issue