Added error checking to uECC_compute_public_key.

This commit is contained in:
Richard Moore
2015-05-20 12:02:51 -04:00
parent 08b675503d
commit ae3e858136
3 changed files with 44 additions and 9 deletions
+3 -1
View File
@@ -186,8 +186,10 @@ Inputs:
Outputs:
p_publicKey - Will be filled in with the corresponding public key
Returns 1 if the key was computed successfully, 0 if an error occurred.
*/
void uECC_compute_public_key(const uint8_t p_privateKey[uECC_BYTES], uint8_t p_publicKey[uECC_BYTES * 2]);
int uECC_compute_public_key(const uint8_t p_privateKey[uECC_BYTES], uint8_t p_publicKey[uECC_BYTES * 2]);
/* uECC_bytes() function.