diff options
author | Rob Austein <sra@hactrn.net> | 2018-05-19 22:18:56 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2018-05-19 22:24:31 -0400 |
commit | a5b4842f95ea501dacb1ed828c924f372d3f1262 (patch) | |
tree | 91fe51cfe75b908b8392d54a1074f38af976ad5f /tests/.gitignore | |
parent | 0d17fd984e6ed486d6cd622edee226e263aab510 (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 'tests/.gitignore')
0 files changed, 0 insertions, 0 deletions