[Cryptech-Commits] [sw/libhal] branch master updated (5106b88 -> a16bdf7)

git at cryptech.is git at cryptech.is
Tue Sep 22 20:06:47 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 sw/libhal.

      from  5106b88   Merge branch 'state_access'
      adds  c8a5dd6   Snapshot along the way to ECDSA.  Code mostly written, except for ecdsa_verify().  Untested.  Point addition and doubling algorithms are the ones from libtomcrypt, main point of this commit is to save those before replacing them with faster algorithms from hyperelliptic.org.
      adds  511819f   Updated point doubling and addition to use algorithms from the hyperelliptic.org formula database.  Compiles, still not tested.
      adds  9e4c5ed   Add hal_ecdsa_verify().  Move hashing out of ECDSA routines.  Clean up a few bits that didn't pass self-review.
      adds  dbb766e   Rework point_scalar_multiply() to avoid a timing leak with small scalars.
      adds  2fdf82b   First stumblings towards ECDSA test code.
      adds  36cd363   Add keygen/sign/verify test with dynamic (not test vector) key.
      adds  a4930db   ASN.1 bugfixes.
      adds  f1f3a8a   More test code.
      adds  dd313d4   Rework RFC 5915 ASN.1.
      adds  821f7d6   More ASN.1 fixes.
      adds  1f8a597   Signature works better if we read the entire hash.
      adds  55116cc   Add point validation check to hal_ecdsa_verify().  Update README.md and code comments.
      adds  12ed3ab   Clean up excessively complicated handling of opaque types in hash and RSA code; use simpler model (pointer to incomplete structure) used in ECDSA code.  Refactor RSA code to use shared ASN.1 routines.
      adds  56f48e7   Identify PBKDF2 tests.
      adds  ed1608d   Add PKCS11 ECDSA signature format.
      adds  89cf910   Still more const-ification.
      adds  12fd927   Add ECPoint I/O functions.  ASN.1 cleanup.
      adds  e946b46   Merge branch 'master' into ecdsa
      adds  5528927   Avoid gratuitous assertion failure if caller gives us a larger buffer than necessary when writing private key to DER.
      adds  c820fa7   PKCS #11 testing turned up a problem with P-521, don't really understand the bug yet, but first step is fixing test-ecdsa.
      adds  c60f4fe   P-512 parameters were mislabeled.
      adds  a16bdf7   Fencepost error in hal_ecdas_key_from_ecpoint().

No new revisions were added by this update.

Summary of changes:
 .gitignore          |    1 +
 GNUmakefile         |    8 +-
 README.md           |   67 ++-
 asn1.c              |  227 ++++++++
 asn1_internal.h     |  108 ++++
 csprng.c            |   50 +-
 ecdsa.c             | 1545 +++++++++++++++++++++++++++++++++++++++++++++++++++
 ecdsa_curves.h      |   92 +++
 hal.h               |  142 ++++-
 hal_io_eim.c        |    6 +-
 hal_io_i2c.c        |    6 +-
 hash.c              |  195 ++++---
 novena-eim.c        |   16 +-
 pbkdf2.c            |    2 +-
 rsa.c               |  353 ++++--------
 tests/GNUmakefile   |    2 +-
 tests/test-ecdsa.c  |  348 ++++++++++++
 tests/test-ecdsa.h  |  329 +++++++++++
 tests/test-ecdsa.py |  156 ++++++
 tests/test-hash.c   |    4 +-
 tests/test-pbkdf2.c |    2 +-
 tests/test-rsa.c    |    4 +-
 22 files changed, 3237 insertions(+), 426 deletions(-)
 create mode 100644 asn1.c
 create mode 100644 asn1_internal.h
 create mode 100644 ecdsa.c
 create mode 100644 ecdsa_curves.h
 create mode 100644 tests/test-ecdsa.c
 create mode 100644 tests/test-ecdsa.h
 create mode 100644 tests/test-ecdsa.py



More information about the Commits mailing list