Merge pull request #64 from swilson/master

Provide API access to the built-in RNG code.
This commit is contained in:
Ken MacKay
2016-01-24 19:19:04 -08:00
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -180,6 +180,10 @@ void uECC_set_rng(uECC_RNG_Function rng_function) {
g_rng_function = rng_function;
}
uECC_RNG_Function uECC_get_rng(void) {
return g_rng_function;
}
#if !asm_clear
uECC_VLI_API void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) {
wordcount_t i;
+6
View File
@@ -112,6 +112,12 @@ Inputs:
*/
void uECC_set_rng(uECC_RNG_Function rng_function);
/* uECC_get_rng() function.
Returns the function that will be used to generate random bytes.
*/
uECC_RNG_Function uECC_get_rng(void);
/* uECC_make_key() function.
Create a public/private key pair.