uECC_make_key() function
Create a public/private key pair.
Arguments
p_public_key
OUT -- Will be filled in with the public key. Must be at least 2 * the curve size (in bytes) long. For curve secp256r1, p_public_key must be 64 bytes long.
p_private_key
OUT -- Will be filled in with the private key. Must be as long as the curve order (for secp256r1, p_private_key must be 32 bytes long).
Return value
returns TC_CRYPTO_SUCCESS (1) if the key pair was generated successfully returns TC_CRYPTO_FAIL (0) if error while generating key pair
Notes
side-channel countermeasure: algorithm strengthened against timing attack. @warning A cryptographically-secure PRNG function must be set (using uECC_set_rng()) before calling uECC_make_key().