You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
When executing the example for subtle.digest from the Mozilla web docs I get
Error: undefined is not a supported algorithm
at SHA.digest (-----/node_modules/@trust/webcrypto/src/algorithms/SHA.js:69:13)
It looks like SHA.js is expecting algorithm to be an object rather than a string.
If I change the digest entry function to pass in normalizedAlgorithm instead of algorithm it works in this case, but that doesn't seem like the right argument.
The MDN docs say the algo argument should be a string, so I'm not sure who's right here.
Edit: confirmed both the string and object work on Chrome
The text was updated successfully, but these errors were encountered:
When executing the example for
subtle.digest
from the Mozilla web docs I getIt looks like SHA.js is expecting
algorithm
to be an object rather than a string.If I change the digest entry function to pass in
normalizedAlgorithm
instead ofalgorithm
it works in this case, but that doesn't seem like the right argument.The MDN docs say the
algo
argument should be a string, so I'm not sure who's right here.Edit: confirmed both the string and object work on Chrome
The text was updated successfully, but these errors were encountered: