Cargo Features

[dependencies]
navajo = { version = "0.0.4", default-features = false, features = ["std", "ed25519", "dsa", "mac", "hkdf", "aead", "daead", "aes", "blake3", "bytes", "chrono", "cmac", "rayon", "ring", "time"] }

------------------------------------------------------
Feature Flags ------------------------------------------------------

default = aead, daead, dsa, hkdf, mac, std

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

std default

Enables std of aes-gcm, optional aes-siv, base64 ^0.21, chacha20poly1305, optional cmac, derive_builder ^0.12.0, optional ed25519-dalek, hex, optional hmac, miniz_oxide, pkcs8, rand_core, optional ring ^0.16, serde, serde_json, sha2, sha3, optional signature, and zeroize

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects writer::EncryptWriter, error::MacVerificationReadError, read::ComputeRead

ed25519 dsa = ed25519-dalek
dsa default = ed25519, p256, p384, signature

Affects jws::VerifiedJws, navajo::dsa, navajo::mac, navajo::primitive

mac default = hmac, sha2

Affects navajo::mac, navajo::primitive

hkdf default aead = hmac, sha2

Affects navajo::hkdf

aead default = hkdf

Affects navajo::aead, navajo::mac, navajo::primitive

daead default = aes-siv

Affects navajo::daead, navajo::mac, navajo::primitive

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.

aes implicit feature

Enables aes

aes:

Pure Rust implementation of the Advanced Encryption Standard (a.k.a. Rijndael)

blake3 implicit feature

Enables blake3

blake3:

the BLAKE3 hash function

bytes implicit feature

Enables bytes

bytes:

Types and traits for working with bytes

chrono implicit feature

Enables chrono

chrono:

Date and time library for Rust

cmac implicit feature

Enables cmac

cmac:

Generic implementation of Cipher-based Message Authentication Code

rayon implicit feature

Enables rayon

rayon:

Simple work-stealing parallelism for Rust

ring implicit feature

Enables ring ^0.16

ring:

Safe, fast, small crypto using Rust

time implicit feature
aes-siv daead
ed25519-dalek ed25519?
p256 dsa

Enables p256 ^0.12

p384 dsa

Enables p384 ^0.12

sha3 std
signature dsa
hmac hkdf mac
sha2 hkdf mac std