Cargo Features

[dependencies]
rsa = { version = "0.10.0-rc.10", default-features = false, features = ["std", "encoding", "hazmat", "os_rng", "serde", "pkcs5", "sha1", "sha2"] }
default = encoding, std

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

std default

Enables rand of crypto-bigint and std of optional pkcs1 and optional pkcs8

pkcs1:

optional dependencies

encoding default serde?

Enables pkcs1, pkcs8, and spki

Affects pss::get_default_pss_signature_algo_id

hazmat

Affects rsa::hazmat

os_rng

Enables rand_core of crypto-bigint and os_rng of rand

rand:

Option: enable OsRng

serde = encoding

Enables serde and serdect, serde of crypto-bigint

pkcs5

Enables encryption of pkcs8

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.

sha1 implicit feature

Enables sha1

sha1:

SHA-1 hash function

sha2 implicit feature
rand os_rng?