* fix: crash creating private key with unsupported algorithm * test: add regression test
See /docs/development/patches.md.