aboutsummaryrefslogtreecommitdiff
path: root/hal_rpc.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-05-19 22:18:56 -0400
committerRob Austein <sra@hactrn.net>2018-05-19 22:24:31 -0400
commita5b4842f95ea501dacb1ed828c924f372d3f1262 (patch)
tree91fe51cfe75b908b8392d54a1074f38af976ad5f /hal_rpc.h
parent0d17fd984e6ed486d6cd622edee226e263aab510 (diff)
Release keystore lock before unwrapping key.
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.
Diffstat (limited to 'hal_rpc.h')
0 files changed, 0 insertions, 0 deletions