Brian Smith
7886603cee
Use some variant of "ring core" instead of "GFp" as a prefix for everything.
...
"GFp_" isn't in the code at all anymore.
2021-05-02 22:09:07 -07:00
Brian Smith
0e7fdf5e91
Split ASSERT
into dev_assert_secret
and debug_assert_nonsecret
.
2020-05-29 13:23:29 -05:00
Brian Smith
ed47ae8c67
Support clang-cl better.
2019-07-22 12:08:35 -10:00
Brian Smith
4399add9cf
Don't require the C toolchain to provide assert.h for non-debug builds.
2019-07-15 21:33:55 -10:00
Brian Smith
0bab61cd23
Remove #include <string.h>
in P-256 and P-384 code.
2019-06-14 13:48:57 -10:00
Brian Smith
dbdc510653
Simplify endian conversion in C code.
...
The relevant Clang bugs have been fixed and the code that uses these
functions is basically unused on Windows so MSVC's optimizer is
irrelevant to it.
2019-02-06 14:39:49 -10:00
Brian Smith
cda9d33d31
Use Rust for RSA exponentiation.
2018-11-29 16:01:00 -10:00
Brian Smith
ad0f2efe17
Use limbs_copy instead of memcpy wherever limbs_copy makes sense.
...
Continue eliminating strings.h dependencies.
2018-06-07 15:10:53 -10:00
Brian Smith
8090623a2e
Indicate that MSVC 2015 Update 2 or later is required for -msvc.
...
Previously the message just said that MSVC 2015 or later is
required for -msvc targets. However, Update 2 is actually required.
2017-12-23 11:37:01 -10:00
Brian Smith
7ef64a1b0e
Rename GFp_DoubleLimb
to DoubleLimb
.
...
Match the new naming convetions in the limbs C submodule.
2017-03-02 15:36:41 -10:00
Brian Smith
6822329083
Use limb_
and limbs_
instead of gfp_
for low-level limb ops.
...
These operations will be used not just for finite fields over primes
but also for Z/Zn.
2017-01-01 20:09:50 -10:00
Brian Smith
7dcaddfaba
Give GFp_*
modular arithmetic primitives more general names.
...
These aren't just useful for finite fields over primes GFp. They can
be used for arithmetic in the ring Z/Zn where n isn't prime, as is
the case for RSA arithmetic modulo the public modulus `n`.
Now it is clear now that we're not going to need to disambiguate the
types in this module with other libraries' types, so remove the `GFp_`
prefixes.
2017-01-01 20:09:49 -10:00