Cargo Features

[dependencies]
internal-russh-forked-ssh-key = { version = "0.6.7-internal.5", default-features = false, features = ["std", "alloc", "crypto", "dsa", "ecdsa", "ed25519", "encryption", "getrandom", "p256", "p384", "p521", "ppk", "rsa", "rsa-sha1", "tdes", "serde"] }
default = ecdsa, rand_core, std

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

std default ppk? = alloc

Enables std of ssh-encoding, optional p256, optional p384, optional p521, optional rsa, optional sec1, and signature

p521:

TODO(tarcieri): RFC6979

alloc dsa? encryption? ppk? rsa? std

Enables alloc of ssh-encoding, signature, and zeroize

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

crypto = ed25519, p256, p384, p521, rsa

NOTE: dsa is obsolete/weak

dsa = alloc

Enables num-bigint-dig, dsa, and sha1, rand_core of signature

ecdsa default p256? p384? p521?

Enables sec1

Affects sk::SkEcdsaSha2NistP256, sk::SkEcdsaSha2NistP256

ed25519 crypto? = rand_core

Enables ed25519-dalek

encryption ppk? tdes? = alloc, rand_core

Enables bcrypt-pbkdf, aes-cbc, aes-ctr, aes-gcm and chacha20poly1305 of ssh-cipher

getrandom

Enables getrandom of rand_core

p256 crypto? = ecdsa

Enables p256

p384 crypto? = ecdsa

Enables p384

p521 crypto? = ecdsa

Enables p521

ppk = alloc, encryption, std

Enables argon2, hex, and hmac

argon2:

optional dependencies

rsa crypto? rsa-sha1? = alloc, rand_core

Enables num-bigint-dig and rsa

rsa-sha1 = rsa

Enables oid of sha1

sha1:

Enable OID support

tdes = encryption

Enables tdes of ssh-cipher

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 ed25519? encryption? getrandom? rsa?
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework