Cargo Features

crypto-common has no features set by default.

[dependencies]
crypto-common = { version = "0.2.0-pre.5", features = ["std", "getrandom", "rand_core"] }
std

Enables std of optional getrandom

getrandom:

Implement std-only traits for getrandom::Error

and std of optional rand_core

optional dependencies

getrandom

Enables getrandom, getrandom of optional rand_core

Affects crypto-common::KeyInit.generate_key, crypto-common::KeyIvInit.generate_key, crypto-common::KeyIvInit.generate_iv, crypto-common::KeyIvInit.generate_key_iv, crypto-common::InnerIvInit.generate_iv

Features from optional dependencies

rand_core implicit feature

Affects crypto-common::KeyInit.generate_key_with_rng, crypto-common::KeyIvInit.generate_key_with_rng, crypto-common::KeyIvInit.generate_iv_with_rng, crypto-common::KeyIvInit.generate_key_iv_with_rng, crypto-common::InnerIvInit.generate_iv_with_rng