diff options
author | Filip Skokan <panva.ip@gmail.com> | 2022-10-28 16:20:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 19:50:38 +0530 |
commit | ec09134d8aab3d84db28d6469789c5581d99fec9 (patch) | |
tree | 8336146ad6bb34328a46ec787e8508227b4013a9 /ext/crypto/00_crypto.js | |
parent | e18950284f279cfa8ec090cb8a882dbd64e92d4a (diff) |
fix(ext/crypto): fix HMAC jwk import "use" check (#16465)
Diffstat (limited to 'ext/crypto/00_crypto.js')
-rw-r--r-- | ext/crypto/00_crypto.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index 857283623..fac407d88 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -2880,10 +2880,10 @@ // 7. if ( - keyUsages.length > 0 && jwk.use !== undefined && jwk.use !== "sign" + keyUsages.length > 0 && jwk.use !== undefined && jwk.use !== "sig" ) { throw new DOMException( - "'use' property of JsonWebKey must be 'sign'", + "'use' property of JsonWebKey must be 'sig'", "DataError", ); } |