mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bluetooth: fix incorrect memset size
This commit is contained in:
parent
e8eb8cb2a4
commit
779bce7681
@ -41,8 +41,8 @@ void p_256_init_curve(UINT32 keyLength)
|
||||
ec->p[1] = 0xFFFFFFFF;
|
||||
ec->p[0] = 0xFFFFFFFF;
|
||||
|
||||
memset(ec->omega, 0, KEY_LENGTH_DWORDS_P256);
|
||||
memset(ec->a, 0, KEY_LENGTH_DWORDS_P256);
|
||||
memset(ec->omega, 0, KEY_LENGTH_DWORDS_P256 * sizeof(ec->omega[0]));
|
||||
memset(ec->a, 0, KEY_LENGTH_DWORDS_P256 * sizeof(ec->a[0]));
|
||||
|
||||
ec->a_minus3 = TRUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user