mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
This fixes an issue where calling crypto.verify() with a null or undefined algorithm parameter would fail with "NO_DEFAULT_DIGEST" error for RSA keys. The fix detects when no algorithm is specified and the key is an RSA variant, then uses SHA256 as the default digest algorithm. This matches Node.js behavior. For Ed25519/Ed448 keys (one-shot variants), no digest is needed and null is correctly passed through. Fixes #11029 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>