[Cryptech-Commits] [sw/libhal] branch ksng updated (a8c03ad -> 038287d)

git at cryptech.is git at cryptech.is
Tue Apr 11 21:51:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a change to branch ksng
in repository sw/libhal.

    from a8c03ad  Backport ECDSA core support to ksng branch.
     add 0c9048b  Experimental libhal RPC MUX based on PySerial and Tornado.
     add 17366b5  Convert "daemon" mode of C client code to use Python RPC MUX.
     add 3c20fd1  Whack multiplexer to handle console too.
     add 65dded3  Handle connection close events properly, use logging library.
     add 1763969  Add internal port probing code (like running cryptech_probe first).
     add e499bfb  Cleanup.
     add 0f0ce51  Refactor and simplify, whole program fits on one screen now.
     add 56c2309  Finish logging code, skip initialization for missing devices.
     add 31ce1c8  Probing wants a brief delay after probe string on some machines.
     add 9ec8140  Enable low-level debugging support in libhal.py.
     add 6a6cc04  Add locking around keystore operations.
     add a118a9b  Clean up csprng driver.
     add 70cad01  Debug logging for pkey open/close/delete events.
     add f205126  Unit test cleanup.
     add 33c843a  Add some comments for things I figured out while reviewing code.
     add c05eb9f  Merge branch 'pymux' of git.cryptech.is:sw/libhal into pymux
     add 44652e5  Erase new head of free list in ks_store().
     add 8dd40de  Track change to stm32 keystore API.
     add a94d48d  Compile-time configuration of software-only hash cores.
     add a33470b  Merge ECDSA private key fix from branch ksng into branch pymux.
     add 17c53b5  Fix race condition in pkey_slot allocation.
     add 533b1b5  Don't use assert() for point-on-curve checks.
     add 89e84c7  Add --io-log option to unit-tests.py.
     add 2abfa2b  Bump size of some static tables, particuarly pkey slots.
     add 72bddf4  Debugging code to track message flow.
     add 67b94e0  Add timestamps to debug logging.
     add bcb43f6  Support setting attributes via keyword arguments.
     add 99407a5  First attempt at using Pavel's ecdsa256 core.  Not working yet.
     add 9afc5d0  Refactor to add P384 support.  Untested.
     add c2f499e  Fix dumb copy/paste errors.
     add 91bb044  Merge branch 'pymux' into hw_ecdsa_p256
     add ad9bca7  Doh! Works better if one tests the right status bit.
     add 00d93e0  Cleanup.
     add 7343b9a  Clean up libhal build system a bit.
     add 640ff7b  Merge branch 'hw_ecdsa_p256' into pymux
     add 1f20362  Merge branch 'ksng' into pymux
     add 70afb31  Typo.
     add 6e3faad  Snapshot PKCS #8 Python hacks.
     add e36bfa8  PKCS #8 ASN.1 wrapper functions.
     add 33694de  PKCS #8 code for RSA and ECDSA.
     add 813f1c6  Obscure C syntax nit.
     add faf6905  Unit tests mostly working with PKCS #8.
     add c6f35b5  Race condition in test was triggering HAL_ERROR_KEY_NOT_FOUND.
     add a3a5883  Merge branch 'pymux' into pkcs8
     add d246435  PKCS #8 bumps max key buffer size up by a few bytes.
     add afe4be7  Fix strnagely-named test.
     add 34d240a  Rework PKCS #8 PrivateKeyInfo wrapper code.
     add fb4933f  First cut at key backup code.  Not tested yet.
     add b1c86e4  Fix a few dumb compile-time bugs.
     add 07f5d9d  First cut at libhal.py support for key backup.
     add 29e55d6  Shake bugs out of hal_rpc_pkey_export().
     add 3828bd1  Initial test and debug script for key backup.
     add 1386e9b  Defend against Bleichenbacher's Attack in hal_rpc_pkey_import().
     add a5491cb  Shake bugs out of hal_rpc_pkey_import().
     add d52a62a  Enforce key usage flags.
     add a031d72  Pull key type information from uploaded key in hal_rpc_pkey_load().
     add d0df322  Tighten up hal_rpc_pkey_import() a bit more.
     add 3c7c7e2  Unit tests for key backup operations.
     add a90d24e  First cut at HSM backup script.
     add cc46a69  API cleanup: pkey_open() and pkey_match().
     add 482cc1a  Reject malformed messages from RPC UART, not just too-short ones.
     add 9798cf2  Merge branch 'pymux' into pkcs8
     add fa06f54  Move login tests to "slow" test category.
     add 5291c46  Log packet drops.
     add 038287d  Merge branch 'pymux' into pkcs8

No new revisions were added by this update.

Summary of changes:
 Makefile              |  23 +-
 asn1.c                | 441 +++++++++++++++++++++-
 asn1_internal.h       |  38 ++
 core.c                |  10 -
 cryptech_backup       | 224 ++++++++++++
 cryptech_console      | 116 ++++++
 cryptech_muxd         | 426 ++++++++++++++++++++++
 csprng.c              |  23 +-
 daemon.c              | 330 -----------------
 ecdsa.c               | 197 +++++-----
 hal.h                 |  28 +-
 hal_internal.h        |  69 ++--
 ks_attribute.c        |   9 +
 ks_flash.c            | 983 ++++++++++++++++++++++++++++++--------------------
 ks_index.c            |  42 ++-
 ks_volatile.c         | 249 ++++++++-----
 libhal.py             | 170 +++++----
 locks.c               | 108 ++++++
 pkcs8.py              | 324 +++++++++++++++++
 rpc_api.c             |  47 ++-
 rpc_client.c          | 105 +++++-
 rpc_client_daemon.c   |  42 ++-
 rpc_misc.c            |  20 +-
 rpc_pkey.c            | 529 +++++++++++++++++++++------
 rpc_server.c          | 131 +++++--
 rsa.c                 |  54 +--
 tests/test-rpc_pkey.c |  36 +-
 unit-tests.py         | 634 ++++++++++++++++++++++----------
 28 files changed, 3912 insertions(+), 1496 deletions(-)
 create mode 100755 cryptech_backup
 create mode 100755 cryptech_console
 create mode 100755 cryptech_muxd
 delete mode 100644 daemon.c
 create mode 100644 locks.c
 create mode 100644 pkcs8.py



More information about the Commits mailing list