mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-10-02 13:57:35 +00:00
Minor code cleanup.
This commit is contained in:
@@ -2380,12 +2380,12 @@ int uECC_verify(const uint8_t p_publicKey[uECC_BYTES*2], const uint8_t p_hash[uE
|
|||||||
return vli_equal(rx, r);
|
return vli_equal(rx, r);
|
||||||
}
|
}
|
||||||
|
|
||||||
int uECC_bytes()
|
int uECC_bytes(void)
|
||||||
{
|
{
|
||||||
return uECC_BYTES;
|
return uECC_BYTES;
|
||||||
}
|
}
|
||||||
|
|
||||||
int uECC_curve()
|
int uECC_curve(void)
|
||||||
{
|
{
|
||||||
return uECC_CURVE;
|
return uECC_CURVE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,24 +179,14 @@ Returns 1 if the public key is valid, 0 if it is invalid.
|
|||||||
int uECC_valid_public_key(const uint8_t p_publicKey[uECC_BYTES*2]);
|
int uECC_valid_public_key(const uint8_t p_publicKey[uECC_BYTES*2]);
|
||||||
|
|
||||||
/* uECC_bytes() function.
|
/* uECC_bytes() function.
|
||||||
Return the value of uECC_BYTES. Helpful for foreign-interfaces to higher-level languages.
|
Returns the value of uECC_BYTES. Helpful for foreign-interfaces to higher-level languages.
|
||||||
|
|
||||||
Inputs:
|
|
||||||
(none)
|
|
||||||
|
|
||||||
Returns the value of uECC_BYTES
|
|
||||||
*/
|
*/
|
||||||
int uECC_bytes();
|
int uECC_bytes(void);
|
||||||
|
|
||||||
/* uECC_curve() function.
|
/* uECC_curve() function.
|
||||||
Return the value of uECC_CURVE. Helpful for foreign-interfaces to higher-level languages.
|
Returns the value of uECC_CURVE. Helpful for foreign-interfaces to higher-level languages.
|
||||||
|
|
||||||
Inputs:
|
|
||||||
(none)
|
|
||||||
|
|
||||||
Returns the value of uECC_CURVE
|
|
||||||
*/
|
*/
|
||||||
int uECC_curve();
|
int uECC_curve(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* end of extern "C" */
|
} /* end of extern "C" */
|
||||||
|
|||||||
Reference in New Issue
Block a user