Cargo Features

[dependencies]
ssh-key = { version = "0.7.0-pre.1", default-features = false, features = ["std", "alloc", "crypto", "dsa", "ecdsa", "encryption", "getrandom", "p256", "p384", "p521", "rsa", "tdes", "serde"] }
default = ecdsa, rand_core, std

These default features are set whenever ssh-key is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables home, std of ssh-encoding, std of signature, optional p256 =0.14.0-pre.1, optional p384 =0.14.0-pre.1, optional p521 =0.14.0-pre.1, optional rsa =0.10.0-pre.2, and optional sec1

alloc dsa? encryption? rsa? std

Enables alloc of ssh-encoding, signature, and zeroize

Affects authorized_keys::ConfigOpts, ssh-key::certificate, ssh-key::known_hosts, sk::SkEd25519, sk::SkEcdsaSha2NistP256

crypto = p256, p384, p521, rsa

NOTE: dsa is obsolete/weak

dsa = alloc

Enables num-bigint-dig, dsa =0.7.0-pre.0, and sha1, rand_core of signature

ecdsa default p256? p384? p521?

Enables sec1

Affects sk::SkEcdsaSha2NistP256, sk::SkEcdsaSha2NistP256

encryption tdes? = alloc, rand_core

Enables aes-cbc, aes-ctr, aes-gcm and chacha20poly1305 of ssh-cipher =0.3.0-pre.1 and bcrypt-pbkdf

optional dependencies

getrandom

Enables getrandom of rand_core

p256 crypto? = ecdsa

Enables p256 =0.14.0-pre.1

p384 crypto? = ecdsa

Enables p384 =0.14.0-pre.1

p521 crypto? = ecdsa

Enables p521 =0.14.0-pre.1

rsa crypto? = alloc, rand_core

Enables num-bigint-dig and rsa =0.10.0-pre.2

tdes = encryption

Enables tdes of ssh-cipher =0.3.0-pre.1

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rand_core default encryption? getrandom? rsa?
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework