Commit bef02ab
crypto: simplify state failure handling
It is more intuitive to return true/false instead of undefined/false
and also simplifies handling in the JS layer.
PR-URL: #22131
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>