270 lines
4.6 KiB
TOML
270 lines
4.6 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.65"
|
|
name = "ssh-key"
|
|
version = "0.6.7"
|
|
authors = ["RustCrypto Developers"]
|
|
build = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = '''
|
|
Pure Rust implementation of SSH key file format decoders/encoders as described
|
|
in RFC4251/RFC4253 and OpenSSH key formats, as well as "sshsig" signatures and
|
|
certificates (including certificate validation and certificate authority support),
|
|
with further support for the `authorized_keys` and `known_hosts` file formats.
|
|
'''
|
|
readme = "README.md"
|
|
keywords = [
|
|
"crypto",
|
|
"certificate",
|
|
"openssh",
|
|
"ssh",
|
|
"sshsig",
|
|
]
|
|
categories = [
|
|
"authentication",
|
|
"cryptography",
|
|
"encoding",
|
|
"no-std",
|
|
"parser-implementations",
|
|
]
|
|
license = "Apache-2.0 OR MIT"
|
|
repository = "https://github.com/RustCrypto/SSH/tree/master/ssh-key"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
|
|
[lib]
|
|
name = "ssh_key"
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "algorithm_name"
|
|
path = "tests/algorithm_name.rs"
|
|
|
|
[[test]]
|
|
name = "authorized_keys"
|
|
path = "tests/authorized_keys.rs"
|
|
|
|
[[test]]
|
|
name = "certificate"
|
|
path = "tests/certificate.rs"
|
|
|
|
[[test]]
|
|
name = "certificate_builder"
|
|
path = "tests/certificate_builder.rs"
|
|
|
|
[[test]]
|
|
name = "encrypted_private_key"
|
|
path = "tests/encrypted_private_key.rs"
|
|
|
|
[[test]]
|
|
name = "known_hosts"
|
|
path = "tests/known_hosts.rs"
|
|
|
|
[[test]]
|
|
name = "private_key"
|
|
path = "tests/private_key.rs"
|
|
|
|
[[test]]
|
|
name = "public_key"
|
|
path = "tests/public_key.rs"
|
|
|
|
[[test]]
|
|
name = "sshsig"
|
|
path = "tests/sshsig.rs"
|
|
|
|
[dependencies.bcrypt-pbkdf]
|
|
version = "0.10"
|
|
features = ["alloc"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.bigint]
|
|
version = "0.8"
|
|
optional = true
|
|
default-features = false
|
|
package = "num-bigint-dig"
|
|
|
|
[dependencies.cipher]
|
|
version = "0.2"
|
|
package = "ssh-cipher"
|
|
|
|
[dependencies.dsa]
|
|
version = "0.6"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.ed25519-dalek]
|
|
version = "2"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.encoding]
|
|
version = "0.2"
|
|
features = [
|
|
"base64",
|
|
"pem",
|
|
"sha2",
|
|
]
|
|
package = "ssh-encoding"
|
|
|
|
[dependencies.p256]
|
|
version = "0.13"
|
|
features = ["ecdsa"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.p384]
|
|
version = "0.13"
|
|
features = ["ecdsa"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.p521]
|
|
version = "0.13.3"
|
|
features = [
|
|
"ecdsa",
|
|
"getrandom",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.rand_core]
|
|
version = "0.6.4"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.rsa]
|
|
version = "0.9"
|
|
features = ["sha2"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sec1]
|
|
version = "0.7.3"
|
|
features = ["point"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1"
|
|
optional = true
|
|
|
|
[dependencies.sha1]
|
|
version = "0.10"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sha2]
|
|
version = "0.10.8"
|
|
default-features = false
|
|
|
|
[dependencies.signature]
|
|
version = "2"
|
|
default-features = false
|
|
|
|
[dependencies.subtle]
|
|
version = "2"
|
|
default-features = false
|
|
|
|
[dependencies.zeroize]
|
|
version = "1"
|
|
default-features = false
|
|
|
|
[dev-dependencies.hex-literal]
|
|
version = "0.4.1"
|
|
|
|
[dev-dependencies.rand_chacha]
|
|
version = "0.3"
|
|
|
|
[features]
|
|
alloc = [
|
|
"encoding/alloc",
|
|
"signature/alloc",
|
|
"zeroize/alloc",
|
|
]
|
|
crypto = [
|
|
"ed25519",
|
|
"p256",
|
|
"p384",
|
|
"p521",
|
|
"rsa",
|
|
]
|
|
default = [
|
|
"ecdsa",
|
|
"rand_core",
|
|
"std",
|
|
]
|
|
dsa = [
|
|
"dep:bigint",
|
|
"dep:dsa",
|
|
"dep:sha1",
|
|
"alloc",
|
|
"signature/rand_core",
|
|
]
|
|
ecdsa = ["dep:sec1"]
|
|
ed25519 = [
|
|
"dep:ed25519-dalek",
|
|
"rand_core",
|
|
]
|
|
encryption = [
|
|
"dep:bcrypt-pbkdf",
|
|
"alloc",
|
|
"cipher/aes-cbc",
|
|
"cipher/aes-ctr",
|
|
"cipher/aes-gcm",
|
|
"cipher/chacha20poly1305",
|
|
"rand_core",
|
|
]
|
|
getrandom = ["rand_core/getrandom"]
|
|
p256 = [
|
|
"dep:p256",
|
|
"ecdsa",
|
|
]
|
|
p384 = [
|
|
"dep:p384",
|
|
"ecdsa",
|
|
]
|
|
p521 = [
|
|
"dep:p521",
|
|
"ecdsa",
|
|
]
|
|
rsa = [
|
|
"dep:bigint",
|
|
"dep:rsa",
|
|
"alloc",
|
|
"rand_core",
|
|
]
|
|
std = [
|
|
"alloc",
|
|
"encoding/std",
|
|
"p256?/std",
|
|
"p384?/std",
|
|
"p521?/std",
|
|
"rsa?/std",
|
|
"sec1?/std",
|
|
"signature/std",
|
|
]
|
|
tdes = [
|
|
"cipher/tdes",
|
|
"encryption",
|
|
]
|