Evgeni Margolis
61bd1ada6f
Added new API functions: uECC_curve_num_bytes() and uECC_curve_num_n_bytes().
2015-11-01 01:39:57 -07:00
Evgeni Margolis
12651728ea
Addressed review comments to PR #58 . Main change:
...
Removed clamping via subtraction update in the uECC_generate_random_int function.
2015-10-12 21:29:57 -07:00
Evgeni Margolis
7b115fdf93
Updated and generalized random number generation function
...
(uECC_generate_random_int). This function is also used internally.
In the new implementation when the random number is outside of the
requested range it is corrected by subtraction instead of requesting
new random number.
2015-10-12 21:29:57 -07:00
Evgeni Margolis
8b3838ea5f
Removed unused "curve" parameter from uECC_vli_nativeToBytes and
...
uECC_vli_bytesToNative functions.
2015-10-12 21:29:57 -07:00
Ken MacKay
4ae15e365b
Updated so that private keys are always the correct length.
...
Specifically, the private key for secp160r1 is now required to be
21 bytes. Added some comments about buffer sizes.
2015-10-12 21:29:57 -07:00
Ken MacKay
f58c04fdec
Minor cleanup
2015-10-12 21:29:57 -07:00
Ken MacKay
69744ae539
Added uECC_generate_random_int(), and made uECC_vli_cmp() constant-time.
2015-10-12 21:29:56 -07:00
Ken MacKay
74f6d2d9d7
Directly expose vli functions if uECC_ENABLE_VLI_API != 0
...
Added a header file for those functions as well.
2015-10-12 21:29:56 -07:00