Cargo Features

crypto-common has no features set by default.

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

Enables std of optional getrandom ^0.2

getrandom:

Implement std::error::Error for getrandom::Error and use std to retrieve OS error descriptions

and std of optional rand_core ^0.6.4

optional dependencies

getrandom

Enables getrandom ^0.2, getrandom of optional rand_core ^0.6.4

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

Enables rand_core ^0.6.4

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