Skip to content

Commit

Permalink
WebCryptoAPI: remove JWK "EdDSA" alg checks (#6294)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored Oct 5, 2023
1 parent 5c37d52 commit 30b8993
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bun.js/bindings/webcrypto/CryptoKeyOKP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ RefPtr<CryptoKeyOKP> CryptoKeyOKP::importJwk(CryptoAlgorithmIdentifier identifie
return nullptr;
if (keyData.crv != "Ed25519"_s)
return nullptr;
if (!keyData.alg.isEmpty() && keyData.alg != "EdDSA"_s)
return nullptr;
if (usages && !keyData.use.isEmpty() && keyData.use != "sig"_s)
return nullptr;
if (keyData.key_ops && ((keyData.usages & usages) != usages))
Expand Down

0 comments on commit 30b8993

Please sign in to comment.