mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
4fa8869f24
This completely rewrites how we handle key material in ext/node. Changes in this PR: - **Signing** - RSA - RSA-PSS 🆕 - DSA 🆕 - EC - ED25519 🆕 - **Verifying** - RSA - RSA-PSS 🆕 - DSA 🆕 - EC 🆕 - ED25519 🆕 - **Private key import** - Passphrase encrypted private keys 🆕 - RSA - PEM - DER (PKCS#1) 🆕 - DER (PKCS#8) 🆕 - RSA-PSS - PEM - DER (PKCS#1) 🆕 - DER (PKCS#8) 🆕 - DSA 🆕 - EC - PEM - DER (SEC1) 🆕 - DER (PKCS#8) 🆕 - X25519 🆕 - ED25519 🆕 - DH - **Public key import** - RSA - PEM - DER (PKCS#1) 🆕 - DER (PKCS#8) 🆕 - RSA-PSS 🆕 - DSA 🆕 - EC 🆕 - X25519 🆕 - ED25519 🆕 - DH 🆕 - **Private key export** - RSA 🆕 - DSA 🆕 - EC 🆕 - X25519 🆕 - ED25519 🆕 - DH 🆕 - **Public key export** - RSA - DSA 🆕 - EC 🆕 - X25519 🆕 - ED25519 🆕 - DH 🆕 - **Key pair generation** - Overhauled, but supported APIs unchanged This PR adds a lot of new individual functionality. But most importantly because of the new key material representation, it is now trivial to add new algorithms (as shown by this PR). Now, when adding a new algorithm, it is also widely supported - for example previously we supported ED25519 key pair generation, but we could not import, export, sign or verify with ED25519. We can now do all of those things.
101 lines
2.6 KiB
TOML
101 lines
2.6 KiB
TOML
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno_node"
|
|
version = "0.101.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository.workspace = true
|
|
description = "Node compatibility for Deno"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
sync_fs = ["deno_package_json/sync", "node_resolver/sync"]
|
|
|
|
[dependencies]
|
|
aead-gcm-stream = "0.1"
|
|
aes.workspace = true
|
|
async-trait.workspace = true
|
|
base64.workspace = true
|
|
blake2 = "0.10.6"
|
|
brotli.workspace = true
|
|
bytes.workspace = true
|
|
cbc.workspace = true
|
|
const-oid = "0.9.5"
|
|
data-encoding.workspace = true
|
|
deno_core.workspace = true
|
|
deno_fetch.workspace = true
|
|
deno_fs.workspace = true
|
|
deno_io.workspace = true
|
|
deno_media_type.workspace = true
|
|
deno_net.workspace = true
|
|
deno_package_json.workspace = true
|
|
deno_permissions.workspace = true
|
|
deno_whoami = "0.1.0"
|
|
digest = { version = "0.10.5", features = ["core-api", "std"] }
|
|
dsa = "0.6.1"
|
|
ecb.workspace = true
|
|
ed25519-dalek = { version = "2.1.1", features = ["digest", "pkcs8", "rand_core", "signature"] }
|
|
elliptic-curve.workspace = true
|
|
errno = "0.2.8"
|
|
faster-hex.workspace = true
|
|
h2.workspace = true
|
|
hkdf.workspace = true
|
|
home = "0.5.9"
|
|
http.workspace = true
|
|
http-body-util.workspace = true
|
|
hyper.workspace = true
|
|
hyper-util.workspace = true
|
|
idna = "0.3.0"
|
|
indexmap.workspace = true
|
|
ipnetwork = "0.20.0"
|
|
k256 = "0.13.1"
|
|
lazy-regex.workspace = true
|
|
libc.workspace = true
|
|
libz-sys.workspace = true
|
|
md-5 = { version = "0.10.5", features = ["oid"] }
|
|
md4 = "0.10.2"
|
|
memchr = "2.7.4"
|
|
node_resolver.workspace = true
|
|
num-bigint.workspace = true
|
|
num-bigint-dig = "0.8.2"
|
|
num-integer = "0.1.45"
|
|
num-traits = "0.2.14"
|
|
once_cell.workspace = true
|
|
p224.workspace = true
|
|
p256.workspace = true
|
|
p384.workspace = true
|
|
path-clean = "=0.1.0"
|
|
pbkdf2 = "0.12.1"
|
|
pin-project-lite = "0.2.13"
|
|
pkcs8 = { version = "0.10.2", features = ["std", "pkcs5", "encryption"] }
|
|
rand.workspace = true
|
|
regex.workspace = true
|
|
ring.workspace = true
|
|
ripemd = { version = "0.1.3", features = ["oid"] }
|
|
rsa.workspace = true
|
|
scrypt = "0.11.0"
|
|
sec1 = "0.7"
|
|
serde = "1.0.149"
|
|
sha1.workspace = true
|
|
sha2.workspace = true
|
|
sha3 = { version = "0.10.8", features = ["oid"] }
|
|
signature.workspace = true
|
|
simd-json = "0.13.4"
|
|
sm3 = "0.4.2"
|
|
spki.workspace = true
|
|
thiserror.workspace = true
|
|
tokio.workspace = true
|
|
url.workspace = true
|
|
winapi.workspace = true
|
|
x25519-dalek = { version = "2.0.0", features = ["static_secrets"] }
|
|
x509-parser = "0.15.0"
|
|
yoke = "0.7.4"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys.workspace = true
|
|
winapi = { workspace = true, features = ["consoleapi"] }
|