mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-10-10 01:37:33 +00:00
Add methods to return values def'd at compile time
This will support higher-level languages interfacing with `micro-ecc`.
This commit is contained in:
@@ -164,6 +164,26 @@ Returns 1 if the signature is valid, 0 if it is invalid.
|
||||
*/
|
||||
int uECC_verify(const uint8_t p_publicKey[uECC_BYTES*2], const uint8_t p_hash[uECC_BYTES], const uint8_t p_signature[uECC_BYTES*2]);
|
||||
|
||||
/* uECC_bytes() function.
|
||||
Return the value of uECC_BYTES. Helpful for foreign-interfaces to higher-level languages.
|
||||
|
||||
Inputs:
|
||||
(none)
|
||||
|
||||
Returns the value of uECC_BYTES
|
||||
*/
|
||||
int uECC_bytes();
|
||||
|
||||
/* uECC_curve() function.
|
||||
Return the value of uECC_CURVE. Helpful for foreign-interfaces to higher-level languages.
|
||||
|
||||
Inputs:
|
||||
(none)
|
||||
|
||||
Returns the value of uECC_CURVE
|
||||
*/
|
||||
int uECC_curve();
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* end of extern "C" */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user