[Cryptech-Commits] [sw/libhal] branch master updated (64d4157 -> 253f7b8)

git at cryptech.is git at cryptech.is
Wed Jul 25 06:00:56 UTC 2018


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

paul at psgd.org pushed a change to branch master
in repository sw/libhal.

    from 64d4157  No-op out core alloc/free when no cores exist.
     add a72d079  Refactor XDR code, add support for fixed-length opaque data.
     add a975cf2  Clean up RPC code, track changes to XDR API.
     add 67d4de2  Encode/decode uint32_t and octet strings
     add efc47f4  Add hal_ks_available
     add a478fe1  Implement hash-based signatures, per draft-mcgrew-hash-sigs-08.txt
     add d5bd778  Fix coef4, which was swapping digits
     add 14762e4  Fold the coef* functions into a single function, because that really was premature optimization.
     add ebdfdae  Add Test Case 2 from draft-mcgrew-09
     add f14d861  For 2^w and 2^h, replace hard-coded w2 and h2 values with 1<<w and 1<<h.
     add 4689df2  Update to draft-10: clarifications and Test Case 2; add ability to export public key to xdr for interop testing
     add e5541de  Reconstruct the hashsig hash tree(s) on device restart.
     add 8529d05  Refactor XDR code, add support for fixed-length opaque data.
     add 067e041  Clean up RPC code, track changes to XDR API.
     add b87e739  Encode/decode uint32_t and octet strings
     add 3f37475  Add hal_ks_available
     add b26b375  Implement hash-based signatures, per draft-mcgrew-hash-sigs-08.txt
     add 0ff06f4  Fix coef4, which was swapping digits
     add 6dfdbd4  Fold the coef* functions into a single function, because that really was premature optimization.
     add f041aa3  Add Test Case 2 from draft-mcgrew-09
     add 9f1be49  For 2^w and 2^h, replace hard-coded w2 and h2 values with 1<<w and 1<<h.
     add 9995603  Update to draft-10: clarifications and Test Case 2; add ability to export public key to xdr for interop testing
     add 96ef896  Reconstruct the hashsig hash tree(s) on device restart.
     add 34cf7ef  Rebase hashsig from master
     add c6543a7  Add task_yield_maybe
     add 1107548  Merge branch 'profiling' into hashsig
     add 2b9f5c4  Add some yields to try to improve responsiveness during hashsig key generation and deletion.
     add 43f3d74  Add descriptions of signature algorithm OIDs, because pre-encoded ASN.1 blobs are really inscrutable.
     add 6cf71d8  Housekeeping: Mark hal_ks_pin_uuid extern, so it doesn't get instantiated in each object module.
     add e1a2a7f  Add protection against trying to use hashsig while the restart mechanism is rebuilding the tree.
     add 222ec2b  A recent(?) version of arm-none-eabi-gcc decided to make storage for enums the minimum size necessary, so hal_asn1_decode_lms_algorithm and hal_asn1_decode_lmots_algorithm were writing 4 bytes of data into 1-byte variables. Hilarity ensued. Yes, I already knew that conflating enum with uint32_t was a bad idea, I was just being lazy.
     add 653d6b4  Change the rest of the hashsig ASN.1 wrapper functions to static inline, for consistency.
     new 253f7b8  Merge branch 'hashsig'

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Makefile                 |    6 +-
 asn1.c                   |  183 ++++
 asn1_internal.h          |   15 +
 ecdsa.c                  |    1 +
 hal.h                    |   20 +-
 hal_internal.h           |   35 +-
 hash.c                   |    2 +-
 hashsig.c                | 2122 ++++++++++++++++++++++++++++++++++++++++++++++
 hashsig.h                |  118 +++
 ks.c                     |   16 +
 ks.h                     |    4 +-
 ks_volatile.c            |    8 +-
 locks.c                  |    5 +
 pbkdf2.c                 |    2 +
 rpc_api.c                |   23 +
 rpc_client.c             |  144 ++--
 rpc_pkey.c               |  206 ++++-
 rpc_server.c             |  529 +++++-------
 tests/Makefile           |    4 +-
 tests/test-hashsig.h     |  925 ++++++++++++++++++++
 tests/test-rpc_hashsig.c |  594 +++++++++++++
 tests/test-xdr.c         |  111 +++
 xdr.c                    |  222 ++---
 xdr_internal.h           |   44 +-
 24 files changed, 4792 insertions(+), 547 deletions(-)
 create mode 100644 hashsig.c
 create mode 100644 hashsig.h
 create mode 100644 tests/test-hashsig.h
 create mode 100644 tests/test-rpc_hashsig.c
 create mode 100644 tests/test-xdr.c



More information about the Commits mailing list