# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "ursa" version = "0.3.7" authors = ["Hyperledger Ursa Contributors"] include = ["src/bls/**/*.rs", "src/bn/**/*.rs", "src/cl/**/*.rs", "src/encoding/**/*.rs", "src/encryption/**/*.rs", "src/errors/**/*.rs", "src/hash/**/*.rs", "src/kex/**/*.rs", "src/pair/**/*.rs", "src/sharing/**/*.rs", "src/signatures/**/*.rs", "src/utils/**/*.rs", "src/wasm/**/*.rs", "src/*.rs", "Cargo.toml", "LICENSE", "CHANGELOG"] description = "This is the shared crypto library for Hyperledger components." homepage = "https://crates.io/crates/ursa" documentation = "https://docs.rs/ursa" readme = "README.md" keywords = ["cryptography", "aead", "hash", "signature", "zero-knowledge"] license = "Apache-2.0" repository = "https://github.com/hyperledger/ursa" [package.metadata.deb] assets = [["../target/release/libursa.a", "usr/lib/libursa.a", "644"], ["../target/release/libursa.so", "usr/lib/libursa.so", "644"], ["include/ursa_crypto.h", "usr/include/ursa/ursa_crypto.h", "644"], ["include/ursa_crypto_ed25519.h", "usr/include/ursa/ursa_crypto_ed25519.h", "644"]] copyright = "2019, Hyperledger" depends = "$auto" extended-description = "Rust written reliable, secure, easy-to-use, and pluggable cryptographic implementations." license-file = ["../LICENSE", "0"] maintainer = "Hyperledger" priority = "optional" revision = "1" section = "admin" [package.metadata.rpm] copyright = "2018, Hyperledger" depends = "$auto" extended-description = "Rust written reliable, secure, easy-to-use, and pluggable cryptographic implementations." license-file = ["../LICENSE", "0"] maintainer = "Hyperledger" priority = "optional" revision = "1" section = "admin" [lib] name = "ursa" crate-type = ["staticlib", "rlib", "cdylib"] path = "src/lib.rs" [dependencies.aead] version = "0.3" optional = true [dependencies.aes] version = "0.6" optional = true [dependencies.aes-gcm] version = "0.8" optional = true [dependencies.amcl] version = "0.2" features = ["bn254"] optional = true default-features = false [dependencies.amcl_wrapper] version = "0.4.0" features = ["bls381"] optional = true [dependencies.arrayref] version = "0.3.5" optional = true [dependencies.bitcoinsecp256k1] version = "0.19" features = ["rand", "serde"] optional = true package = "secp256k1" [dependencies.blake2] version = "0.9" optional = true default-features = false [dependencies.block-modes] version = "0.7" optional = true [dependencies.block-padding] version = "0.2" optional = true [dependencies.clear_on_drop] version = "0.2.4" optional = true [dependencies.console_error_panic_hook] version = "0.1.5" optional = true [dependencies.curve25519-dalek] version = "3.1" optional = true default-features = false [dependencies.ed25519-dalek] version = "1.0" optional = true default-features = false [dependencies.env_logger] version = "0.7.0" optional = true [dependencies.failure] version = "0.1.6" optional = true [dependencies.ffi-support] version = "0.4" optional = true [dependencies.glass_pumpkin] version = "0.4" optional = true [dependencies.hex] version = "0.4.0" optional = true [dependencies.hkdf] version = "0.11.0" optional = true [dependencies.hmac] version = "0.11.0" optional = true [dependencies.int_traits] version = "0.1.1" optional = true [dependencies.js-sys] version = "0.3.13" optional = true [dependencies.k256] version = "0.9.6" features = ["ecdh", "ecdsa", "sha256"] optional = true [dependencies.lazy_static] version = "1.4" optional = true [dependencies.libsodium-ffi] version = "0.2.2" optional = true [dependencies.log] version = "0.4.8" optional = true [dependencies.num-bigint] version = "0.3.0" features = ["rand"] optional = true [dependencies.num-integer] version = "=0.1.42" optional = true [dependencies.num-traits] version = "=0.2.11" optional = true [dependencies.openssl] version = "0.10" optional = true [dependencies.rand] version = "0.7" features = ["wasm-bindgen"] optional = true [dependencies.rand_chacha] version = "=0.2.1" optional = true [dependencies.rustchacha20poly1305] version = "0.7" optional = true package = "chacha20poly1305" [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0" optional = true [dependencies.sha2] version = "0.9.5" optional = true default-features = false [dependencies.sha3] version = "0.9.1" optional = true [dependencies.subtle] version = "2.3" optional = true [dependencies.time] version = "0.1" optional = true [dependencies.wasm-bindgen] version = "0.2" features = ["serde-serialize"] optional = true [dependencies.x25519-dalek] version = "1.1" optional = true default-features = false [dependencies.zeroize] version = "1.1" features = ["zeroize_derive"] optional = true [dev-dependencies.bitcoinsecp256k1] version = "0.19" package = "secp256k1" [dev-dependencies.bytebuffer-rs] version = "0.3.0" [dev-dependencies.criterion] version = "0.3" [dev-dependencies.k256] version = "0.9.6" [dev-dependencies.libsodium-ffi] version = "0.2.2" [dev-dependencies.openssl] version = "0.10" [dev-dependencies.serde_json] version = "1.0" [features] aescbc = ["aead", "aes", "block-modes", "block-padding", "hex", "hmac", "rand", "sha2/std", "subtle", "zeroize"] aescbc_native = ["aead", "hex", "rand", "openssl", "zeroize"] aesgcm = ["aead", "aes-gcm", "hex", "rand", "zeroize"] aesgcm_native = ["aead", "hex", "rand", "openssl", "zeroize"] asm = ["encryption_asm", "ffi", "hashes_asm", "serde", "signatures_asm"] benchmarkaescbc = ["openssl"] benchmarkaesgcm = ["openssl"] benchmarked25519 = ["libsodium-ffi"] benchmarksecp256k1 = ["bitcoinsecp256k1", "openssl"] benchmarkxchacha20poly1305 = ["libsodium-ffi"] bls_bls12381 = ["amcl_wrapper", "hex", "hkdf", "zeroize"] bls_bn254 = ["amcl", "failure", "log", "rand", "sha2/std", "sha3"] bls_bn254_asm = ["amcl", "failure", "log", "rand", "sha2/asm", "sha3"] chacha20poly1305 = ["aead", "hex", "rand", "rustchacha20poly1305", "zeroize"] chacha20poly1305_native = ["aead", "hex", "lazy_static", "libsodium-ffi", "rand", "zeroize"] cl = ["amcl", "failure", "glass_pumpkin", "int_traits", "lazy_static", "log", "num-bigint", "num-integer", "num-traits", "rand", "sha2/std", "time"] cl_native = ["amcl", "failure", "int_traits", "lazy_static", "log", "openssl", "rand", "time"] default = ["encryption", "hashes", "kex", "serde", "signatures_native", "sharing_native"] ecdh_secp256k1 = ["amcl", "arrayref", "failure", "hex", "rand", "rand_chacha", "k256", "sha2/std", "zeroize"] ecdh_secp256k1_asm = ["arrayref", "failure", "hex", "log", "rand", "bitcoinsecp256k1", "rand_chacha", "sha2/asm", "zeroize"] ecdh_secp256k1_native = ["arrayref", "failure", "hex", "log", "rand", "bitcoinsecp256k1", "rand_chacha", "sha2/std", "zeroize"] ecdsa_secp256k1 = ["amcl", "arrayref", "failure", "hex", "rand", "rand_chacha", "k256", "sha2/std", "zeroize"] ecdsa_secp256k1_asm = ["arrayref", "failure", "hex", "log", "rand", "bitcoinsecp256k1", "rand_chacha", "sha2/asm", "zeroize"] ecdsa_secp256k1_native = ["arrayref", "failure", "hex", "log", "rand", "bitcoinsecp256k1", "rand_chacha", "sha2/std", "zeroize"] ed25519 = ["arrayref", "ed25519-dalek/std", "ed25519-dalek/u64_backend", "hex", "rand", "rand_chacha", "sha2/std", "zeroize"] ed25519_asm = ["arrayref", "ed25519-dalek/nightly", "ed25519-dalek/simd_backend", "hex", "rand", "rand_chacha", "sha2/asm", "zeroize"] encryption = ["aescbc", "aesgcm", "chacha20poly1305"] encryption_asm = ["aescbc_native", "aesgcm_native", "chacha20poly1305_native"] ffi = ["failure", "ffi-support", "logger", "serde", "serde_json", "time"] hashes = ["blake2/std", "sha2/std", "sha3"] hashes_asm = ["blake2/simd_asm", "sha2/asm", "sha3"] kex = ["ecdh_secp256k1", "x25519"] kex_asm = ["ecdh_secp256k1_asm", "x25519_asm"] kex_native = ["ecdh_secp256k1_native", "x25519"] logger = ["env_logger", "log"] portable = ["clear_on_drop/no_cc", "encryption", "hashes", "kex", "serde", "signatures", "sharing"] portable_wasm = ["portable", "wasm"] sharing = ["failure", "glass_pumpkin", "int_traits", "lazy_static", "num-bigint", "num-integer", "num-traits", "log", "rand", "sha2/std", "time"] sharing_native = ["failure", "int_traits", "lazy_static", "log", "openssl", "rand", "time"] signatures = ["cl", "ed25519", "ecdsa_secp256k1", "bls_bls12381", "bls_bn254"] signatures_asm = ["cl_native", "ed25519_asm", "ecdsa_secp256k1_asm", "bls_bls12381", "bls_bn254_asm"] signatures_native = ["cl_native", "ed25519", "ecdsa_secp256k1_native", "bls_bls12381", "bls_bn254"] wasm = ["console_error_panic_hook", "failure", "hex", "js-sys", "log", "rand/wasm-bindgen", "serde", "serde_json", "wasm-bindgen", "zeroize"] x25519 = ["arrayref", "curve25519-dalek/std", "curve25519-dalek/u64_backend", "hex", "rand", "rand_chacha", "sha2/std", "x25519-dalek/std", "x25519-dalek/u64_backend", "zeroize"] x25519_asm = ["arrayref", "curve25519-dalek/nightly", "curve25519-dalek/avx2_backend", "hex", "rand", "rand_chacha", "sha2/asm", "x25519-dalek/nightly", "x25519-dalek/u64_backend", "zeroize"]