aboutsummaryrefslogtreecommitdiff
path: root/aes_keywrap.c
AgeCommit message (Collapse)Author
2020-04-29The new keywrap core now talks directly to the MKM, so I split the codePaul Selkirk
that talks to that core out of aes_keywrap.c. The HSM will now be built with just the keywrap core, with no user access to aes or mkmif.
2020-03-25Reduce keywrap to 16 core blocks, to match how it's actually built now.Paul Selkirk
2020-03-10auto-detect coresPaul Selkirk
2020-02-26Merge branch 'js_keywrap' to 'master'Paul Selkirk
2018-09-11Track Joachim's latest keywrap core - unroll bank-switched memory into a ↵Paul Selkirk
number of core register blocks.
2018-08-16Correct the limit on memory banks in the keywrap core.Paul Selkirk
2018-08-15Add support for Joachim's keywrap core.Paul Selkirk
2018-05-20Drop <assert.h> now that everything should be using hal_assert() instead.Rob Austein
2018-05-20Better 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.
2017-10-23Cleanup signed/unsigned mismatches, mostly in loop countersPaul Selkirk
2017-04-17Make sure hal_aes_keyunwrap() frees the core in all error cases.Paul Selkirk
2016-07-05Attempt to add resource management, for multiple cores of the same type.Paul Selkirk
Find a suitable core, and mark it busy. Don't forget to release it as soon as you're done. This has a knock-on effect of un-const'ing core arguments and struct fields in a lot of places, and it moves some core checks around.
2015-12-23RPC interface to TRNG and (incomplete) PIN code.Rob Austein
2015-12-13whack copyrightsPaul Selkirk
2015-11-13Merge branch 'config_core_selector'Paul Selkirk
2015-10-29Remove unused includes.Paul Selkirk
2015-10-04Whack libhal API to use current configure_core_selector mechanism.Rob Austein
Compiles, not yet tested.
2015-06-21libcryptech -> libhal, doh.Rob Austein
2015-06-04Disable HMAC-SHA-384 tests as neither my implementation nor PyCryptoRob Austein
passes them. Add missing copyright notices, other trivial cleanup (whitespace, etc).
2015-05-24Typing "!" when one meant "~" has interesting effects when bit masking.Rob Austein
2015-05-23Guess it might help to write the config value to the AES core afterRob Austein
constructing it, doh.
2015-05-21Add test harness: no useful tests yet, just the framework.Rob Austein
Add human-readable error strings for hal_error_t codes.
2015-05-20Add AES Key Wrap using Cryptech AES core.Rob Austein