aboutsummaryrefslogtreecommitdiff
path: root/locks.c
AgeCommit message (Collapse)Author
2018-07-25Merge branch 'hashsig'Paul Selkirk
2018-05-20Add 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.
2017-05-25Add task_yield_maybePaul Selkirk
2017-04-25adapt to the new experimental tasking systemPaul Selkirk
2017-02-02Add locking around keystore operations.Rob Austein