diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/crypto/00_crypto.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index 7b21c9287..857283623 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -393,16 +393,16 @@ if (algorithm.length === undefined) { switch (algorithm.hash.name) { case "SHA-1": - length = 160; + length = 512; break; case "SHA-256": - length = 256; + length = 512; break; case "SHA-384": - length = 384; + length = 1024; break; case "SHA-512": - length = 512; + length = 1024; break; default: throw new DOMException( |