intel / tinycrypt

tinycrypt is a library of cryptographic algorithms with a focus on small, simple implementation.
Other
446 stars 156 forks source link

g_rng_function should only exist once #28

Open mkiiskila opened 7 years ago

mkiiskila commented 7 years ago

ecc.c, ecc_dh.c and ecc_dsa.c declare their own copies of this variable. This PR makes it a single item, shared by all. Also added a convenience target to tests directory, which'll execute all unit tests. Try 'make run_tests' there.

johnandersen777 commented 6 years ago

Thanks for the PR! However they are intentionally defined separately so as too allow for the following https://github.com/01org/tinycrypt/blob/3ea1a609e7aff9f2d8d13803e1076b7a8e551804/lib/Makefile#L11-L25