src: more crypto cleanup
This builds on #35093 which must land first.
Continued/ongoing cleanup of crypto internals. This one factoring out toLocalChecked usage.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines