[Cryptech-Commits] [user/sra/libhal] branch master updated (e1029f9 -> aaec57f)
git at cryptech.is
git at cryptech.is
Fri Jun 19 17:56:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a change to branch master
in repository user/sra/libhal.
from e1029f9 This time for sure, Rocky!
new 9cca190 Add hal_modexp(), since the protocol is a bit complex. Rewrite test-rsa to use hal_modexp(), and generate a new set of test keys without the whacky padding, since hal_modexp() now handles that.
new 5d21abb Operand lengths weren't including bug-workaround padding.
new 5f152f5 First cut at RSA decryption/signature using the Chinese Remainder Theorem. Not yet tested, and given the number of moving parts I would be astonished if this version actually worked, but it does compile. Added some timing code to tests/test-rsa.c so we can see whether this is doing anything useful once it does work.
new ab7d78b Build issues on Novena.
new 8934e10 Debug modexp_fp() buffer handling. Add basic timing report. Compensate for PyCrypto's weird inversion of p and q when calculating CRT coefficients, and add key the key components PyCrypto doesn't bother pre-calculating to our test data.
new 7a89eaa Refactor key loading code.
new e6e4a9a RSA key generation. Compiles, not (yet) tested otherwise.
new ab5a876 RSA key generation and DER support.
new 35733aa Debug RSA key generation.
new 5e4fc53 Refactor CRT code into public API.
new 8bf2dc8 Add RSA blinding.
new 3e679aa Add round-trip test for DER I/O code.
new 30e8216 Helps to set the return value when reading a key, doh.
new a615b13 Supply public exponent as bigendian byte string rather than unsigned long, since that's the form we'll need for PKCS #11.
new 1a719b0 Add replacement for fp_exptmod() using our ModExp core, so we don't drag in all of TFM's Montgomery just to support the Miller-Rabin test.
new 79d3c33 Add temporary workaround to let us use software ModExp when we're testing other code and don't want to wait for the as-yet-unoptimized FPGA ModExp core.
new aaec57f Add README.md.
The 17 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Summary of changes:
Makefile.in | 5 +-
README.md | 46 ++
configure | 20 +-
configure.ac | 21 +-
cryptech.h | 67 +++
csprng.c | 2 +-
modexp.c | 215 +++++++++
rsa.c | 790 +++++++++++++++++++++++++++++++++
tests/Makefile.in | 19 +-
tests/test-rsa.c | 301 ++++++++-----
tests/test-rsa.h | 1248 +++++++++++++++++++++++++----------------------------
tests/test-rsa.py | 29 +-
12 files changed, 1955 insertions(+), 808 deletions(-)
create mode 100644 README.md
create mode 100644 modexp.c
create mode 100644 rsa.c
More information about the Commits
mailing list