Commit Graph

8 Commits

Author SHA1 Message Date
b9dd94b9b2 bn: Use int instead of u32 for sizes
The loops relied on unsigned integer overflow, which is not immediately
obvious. Replace them with less clever variants that are clearer.

Also implement bn_compare using std::memcmp.
2018-05-20 19:59:26 +02:00
3570c7f03a Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
3e283ea9f1 More asterisks 2016-01-21 21:16:51 +01:00
fbc64984ca Include CommonTypes.h instead of Common.h. 2014-09-08 15:39:58 -04:00
22e1aa5bb4 mark all local functions as static 2014-07-11 16:07:23 +02:00
46e7c0657f Crypto: small cleanup 2014-02-28 12:43:22 +01:00
2afe215271 Convert all includes to relative paths. 2014-02-18 02:19:10 -05:00
34692ab826 Remove unnecessary Src/ folders 2013-12-31 14:03:19 -05:00