tinycrypt: Fix discrepancy of ecc_make_key definition and declaration
ecc_make_key declaration has random size of NUM_ECC_DIGITS * 2 but definition has (and use) only NUM_ECC_DIGITS. Change-Id: I18f0d7992b21a2ed7ed99851b1b795cff0a08a10 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
6a9817a091
commit
f23582fe71
1 changed files with 1 additions and 3 deletions
|
@ -90,15 +90,13 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* @note You must use a new non-predictable random number to generate each
|
* @note You must use a new non-predictable random number to generate each
|
||||||
* new key pair.
|
* new key pair.
|
||||||
* @note p_random must have NUM_ECC_DIGITS*2 bits of entropy to eliminate
|
|
||||||
* bias in keys.
|
|
||||||
*
|
*
|
||||||
* @note side-channel countermeasure: algorithm strengthened against timing
|
* @note side-channel countermeasure: algorithm strengthened against timing
|
||||||
* attack.
|
* attack.
|
||||||
*/
|
*/
|
||||||
int32_t ecc_make_key(EccPoint *p_publicKey,
|
int32_t ecc_make_key(EccPoint *p_publicKey,
|
||||||
uint32_t p_privateKey[NUM_ECC_DIGITS],
|
uint32_t p_privateKey[NUM_ECC_DIGITS],
|
||||||
uint32_t p_random[NUM_ECC_DIGITS * 2]);
|
uint32_t p_random[NUM_ECC_DIGITS]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Determine whether or not a given point is on the chosen elliptic curve
|
* @brief Determine whether or not a given point is on the chosen elliptic curve
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue