Add stopping long-running operations
Some calculations can take very long, e.g.
- PBKDF2-HMAC with a lot of iterations (> 100000) and large key sizes (> 512)
- hashing large files (> 1Gb)
It would be nice to have the possibility to interrupt these actions.