Contrary to what can be seen & read in the documentation,
const verify = crypto.createVerify('rsa-sha256');
crypto.createVerify() throws if the algorithm argument is lowercase:
crypto.js:295
this._handle.init(algorithm);
^
Error: Unknown message digest
at Error (native)
at new Verify (crypto.js:295:16)
at Object.Verify (crypto.js:292:12)
It works perfectly fine if the algorithm is uppercased. Is this intended behavior (and the documentation just needs updating) or is this indeed a minor bug?
Contrary to what can be seen & read in the documentation,
crypto.createVerify()throws if the algorithm argument is lowercase:It works perfectly fine if the algorithm is uppercased. Is this intended behavior (and the documentation just needs updating) or is this indeed a minor bug?