Skip to content

Commit

Permalink
chore(ext/crypto): Update rsa to 0.7.0 (denoland#16327)
Browse files Browse the repository at this point in the history
Bump the rsa crate to 0.7.0

The API for the `rsa` crate has changed significantly, but I have
verified that tests continue to pass throughout this update.
  • Loading branch information
kylewillmon committed Jan 18, 2023
1 parent f418be4 commit 84e9794
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 150 deletions.
29 changes: 22 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ serde = { version = "=1.0.149", features = ["derive"] }
serde_bytes = "0.11"
serde_json = "=1.0.85"
serde_repr = "=0.1.9"
sha2 = "0.10.2"
sha2 = { version = "0.10.6", features = ["oid"] }
smallvec = "1.8"
socket2 = "0.4.7"
tar = "=0.4.38"
Expand Down
2 changes: 0 additions & 2 deletions ext/crypto/00_crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,12 +1307,10 @@
}

const hashAlgorithm = key[_algorithm].hash.name;
const saltLength = normalizedAlgorithm.saltLength;
return await core.opAsync("op_crypto_verify_key", {
key: keyData,
algorithm: "RSA-PSS",
hash: hashAlgorithm,
saltLength,
signature,
}, data);
}
Expand Down
5 changes: 3 additions & 2 deletions ext/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ p256 = { version = "0.11.1", features = ["ecdh"] }
p384 = "0.11.1"
rand.workspace = true
ring = { workspace = true, features = ["std"] }
rsa = { version = "=0.7.0-pre", default-features = false, features = ["std"] }
rsa = { version = "0.7.0", default-features = false, features = ["std"] }
sec1 = "0.3.0"
serde.workspace = true
serde_bytes.workspace = true
sha-1 = "0.10.0"
sha1 = { version = "0.10.5", features = ["oid"] }
sha2.workspace = true
signature = "1.6.4"
spki = "0.6.0"
tokio.workspace = true
uuid.workspace = true
Expand Down
Loading

0 comments on commit 84e9794

Please sign in to comment.