[package] name = "ssb-crypto" version = "0.2.3" authors = ["sean billig "] edition = "2018" license = "LGPL-3.0" description = "Crypto primitives used by Secure Scuttlebutt" repository = "https://github.com/sunrise-choir/ssb-crypto" documentation = "https://docs.rs/ssb-crypto/" readme = "README.md" keywords = ["ssb", "scuttlebutt", "crypto"] include = ["src/**/*", "LICENSE", "README.md"] [dependencies] zerocopy = "0.3.0" zeroize = { version = "1.2.0", default_features = false, features = ["zeroize_derive"] } libsodium-sys = { version = "0.2.6", optional = true } sodiumoxide = { version = "0.2.6", optional = true, default_features = false, features = ["std"] } # doesn't build on stable without "std" base64 = { version = "0.13.0", optional = true, default_features = false } ed25519-dalek = { version = "1.0.1", optional = true, default_features = false, features = ["u64_backend", "rand"] } x25519-dalek = { version = "1.1.0", optional = true, default_features = false, features = ["u64_backend"] } curve25519-dalek = { version = "3.0.0", optional = true, default_features = false, features = ["u64_backend"] } xsalsa20poly1305 = { version = "0.6.0", optional = true, default_features = false } rand = { version = "0.7.3", optional = true, default_features = false } sha2 = { version = "0.9.2", optional = true, default_features = false } hmac = { version = "0.10.1", optional = true, default_features = false } subtle = { version = "2.4.0", optional = true, default_features = false, features = ["i128"] } [features] default = ["dalek", "b64", "getrandom", "alloc"] alloc = ["b64", "base64/alloc"] dalek = ["dalek_module"] dalek_module = ["ed25519-dalek", "x25519-dalek", "curve25519-dalek", "xsalsa20poly1305", "rand", "sha2", "hmac", "subtle"] force_sodium = ["sodium"] sodium = ["sodium_module"] sodium_module = ["sodiumoxide", "libsodium-sys"] b64 = ["base64"] getrandom = ["rand", "rand/getrandom"] [dev-dependencies] hex = "0.4.2"