Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-27 | Inline hal_core_base(). | Rob Austein | |
2018-05-27 | FMC cleanup: constification, gratuitous pointer. | Rob Austein | |
2018-05-22 | Disable seldom-used FMC I/O debugging code by default. | Rob Austein | |
Profiling reports significant time spent in the hal_io_fmc.c debugging code even when runtime debugging is off. This is odd, and may be a profiling artifact, but we don't use that debugging code often, so if it costs anything at all we might as well disable it when not needed. | |||
2018-05-20 | Drop <assert.h> now that everything should be using hal_assert() instead. | Rob Austein | |
2018-05-20 | Better hal_core_alloc() semantics, assert() and printf() cleanup. | Rob Austein | |
Various fixes extracted from the abandoned(-for-now?) reuse-cores branch, principally: * Change hal_core_alloc*() to support core reuse and to pick the least-recently-used core of a particular type otherwise; * Replace assert() and printf() calls with hal_assert() and hal_log(), respectively. assert() is particularly useless on the HSM, since it sends its error message into hyperspace then hangs the HSM. | |||
2018-05-20 | Clean up parallel signature test script. | Rob Austein | |
Aside from not really needing to use every crayon in the box, using a simpler control structure makes exceptions behave more as one expects. | |||
2018-05-20 | Add small cache for RSA blinding factors. | Rob Austein | |
Generating new RSA blinding factors turns out to be relatively expensive, but we can amortize that cost by maintaining a small cache and simply mutating old values after each use with a cheaper operation. Squaring works, pretty much by definition. Blinding factors are only sort-of-sensitive: we don't want them to leak out of the HSM, but they're only based on the public modulus, not the private key components, and we're only using them to foil side channel attacks, so the risk involved in caching them seems small. For the moment, the cache is very small, since we only care about this for bulk signature operations. Tune this later if it becomes an issue. | |||
2018-05-20 | Silence compiler warning in revised hal_ks_fetch(). | Rob Austein | |
2018-05-19 | Release keystore lock before unwrapping key. | Rob Austein | |
hal_ks_fetch() was written as lock-at-the-top, unlock-at-the-bottom to keep it as simple as possible, but this turns out to have bad performance implications when unwrapping the key is slow. So now we grab the wrapped key, release the lock, then unwrap, which should be safe enough given that hal_ks_fetch() is read-only. This lets us make better use of multiple AES cores to unwrap in parallel when we have multiple active clients. | |||
2018-05-01 | Add some yields to try to improve responsiveness during hashsig key ↵ | Paul Selkirk | |
generation and deletion. | |||
2018-04-19 | Merge branch 'profiling' into hashsig | Paul Selkirk | |
2018-04-19 | Rebase hashsig from master | Paul Selkirk | |
2018-04-19 | Reconstruct the hashsig hash tree(s) on device restart. | Paul Selkirk | |
2018-04-19 | Update to draft-10: clarifications and Test Case 2; | Paul Selkirk | |
add ability to export public key to xdr for interop testing | |||
2018-04-19 | For 2^w and 2^h, replace hard-coded w2 and h2 values with 1<<w and 1<<h. | Paul Selkirk | |
2018-04-19 | Add Test Case 2 from draft-mcgrew-09 | Paul Selkirk | |
2018-04-19 | Fold the coef* functions into a single function, because that really was ↵ | Paul Selkirk | |
premature optimization. | |||
2018-04-19 | Fix coef4, which was swapping digits | Paul Selkirk | |
2018-04-19 | Implement hash-based signatures, per draft-mcgrew-hash-sigs-08.txt | Paul Selkirk | |
2018-04-19 | Add hal_ks_available | Paul Selkirk | |
2018-04-19 | Encode/decode uint32_t and octet strings | Paul Selkirk | |
2018-04-19 | Clean up RPC code, track changes to XDR API. | Paul Selkirk | |
2018-04-19 | Refactor XDR code, add support for fixed-length opaque data. | Paul Selkirk | |
2018-04-19 | Reconstruct the hashsig hash tree(s) on device restart. | Paul Selkirk | |
2018-04-14 | Clean up definition of HAL_KS_WRAPPED_KEYSIZE. | Rob Austein | |
2018-03-30 | More accurate timing. | Rob Austein | |
2018-03-30 | Tweak report output. | Rob Austein | |
Copy ContextManagedUnpacker from latest version of libhal.py so that this script won't depend on the current development code. | |||
2018-03-30 | First cut at parallel signature timing test. | Rob Austein | |
At the moment this only handles RSA keys, and can only handle one size of key at a time. More bells and whistles will follow eventually, now that the basic asynchronous API to our RPC protocol works. | |||
2018-03-25 | Clear search state variables in rsa.c's find_prime(). | Rob Austein | |
Failing to clear the temporary buffer used to transfer bits from the TRNG into a bignum was a real leak of something very close to keying material, albeit only onto the local stack where it was almost certain to have been overwritten by subsequent operations (generation of other key components, wrap and PKCS #8 encoding) before pkey_generate_rsa() ever returned to its caller. Still, bad coder, no biscuit. Failing to clear the remainders array was probably harmless, but doctrine says clear it anyway. | |||
2018-03-21 | Supply our own context manager instead of using contextlib. | Rob Austein | |
contextlib is cute, but incompatible with other coroutine schemes like Tornado, so just write our own context manager for xdrlib.Unpacker. | |||
2018-03-15 | Update to draft-10: clarifications and Test Case 2; | Paul Selkirk | |
add ability to export public key to xdr for interop testing | |||
2018-03-10 | For 2^w and 2^h, replace hard-coded w2 and h2 values with 1<<w and 1<<h. | Paul Selkirk | |
2018-03-10 | Add Test Case 2 from draft-mcgrew-09 | Paul Selkirk | |
2018-03-10 | Fold the coef* functions into a single function, because that really was ↵ | Paul Selkirk | |
premature optimization. | |||
2018-03-10 | Fix coef4, which was swapping digits | Paul Selkirk | |
2018-02-27 | Implement hash-based signatures, per draft-mcgrew-hash-sigs-08.txt | Paul Selkirk | |
2018-02-27 | Add hal_ks_available | Paul Selkirk | |
2018-02-27 | Encode/decode uint32_t and octet strings | Paul Selkirk | |
2018-02-27 | Clean up RPC code, track changes to XDR API. | Paul Selkirk | |
2018-02-27 | Refactor XDR code, add support for fixed-length opaque data. | Paul Selkirk | |
2018-01-04 | Add hal_core_alloc2() to fix a dining philosophers problem in hal_modexp2(). | Paul Selkirk | |
Uncoordinated attempts to allocate two modexpa7 cores leads to deadlock if multiple clients try to do concurrent RSA signing operations. The simplest solution (back off and retry) could theoretically lead to resource starvation, but we haven't seen it in actual testing. | |||
2017-12-13 | Merge branch systolic_crt into master. | Rob Austein | |
This branch was sitting for long enough that master had been through a cleanup pass, so beware of accidental reversions. | |||
2017-10-27 | ~0 is actually more correct, or more portable | Paul Selkirk | |
2017-10-23 | Cleanup signed/unsigned mismatches, mostly in loop counters | Paul Selkirk | |
2017-10-15 | Correctly mark "unsecure" KEK as erased. | Paul Selkirk | |
2017-10-15 | Cleanup: keystore driver functions return HAL_StatusTypeDef instead of magic ↵ | Paul Selkirk | |
values. | |||
2017-10-11 | Cleanup: Remove "const" qualifiers from function return types. | Paul Selkirk | |
2017-09-15 | 4096-bit RSA keys working again, with 8k keystore "blocks". | Rob Austein | |
2017-09-13 | Oops, forgot hal_io.c. | Rob Austein | |
2017-09-13 | Preliminary support for parallel core RSA CRT. | Rob Austein | |