lib-q-prf 0.0.5

Legendre and Gold (power-residue) PRFs over large prime fields (Fiat-Shamir transcript building blocks)
Documentation
# 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 are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.96.0"
name = "lib-q-prf"
version = "0.0.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Legendre and Gold (power-residue) PRFs over large prime fields (Fiat-Shamir transcript building blocks)"
readme = "README.md"
keywords = [
    "cryptography",
    "post-quantum",
    "prf",
    "legendre",
    "no-std",
]
categories = [
    "cryptography",
    "no-std",
]
license = "Apache-2.0"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Oz",
    "--enable-bulk-memory",
]

[features]
alloc = ["lib-q-sha3/alloc"]
default = ["std"]
no_std_panic_handler = []
std = ["alloc"]
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:serde_json",
    "dep:serde-wasm-bindgen",
    "dep:hex",
    "alloc",
    "dep:lib-q-core",
    "lib-q-core/wasm",
]

[lib]
name = "lib_q_prf"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[test]]
name = "accept_reference_vectors"
path = "tests/accept_reference_vectors.rs"

[[test]]
name = "legendre_algebra"
path = "tests/legendre_algebra.rs"

[[test]]
name = "wasm_smoke"
path = "tests/wasm_smoke.rs"
required-features = ["wasm"]

[dependencies.crypto-bigint]
version = "0.7.3"
features = ["zeroize"]
default-features = false

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.js-sys]
version = "0.3.99"
optional = true

[dependencies.lib-q-core]
version = "0.0.5"
optional = true
default-features = false

[dependencies.lib-q-sha3]
version = "0.0.5"
default-features = false

[dependencies.rand_core]
version = "0.10.1"
default-features = false

[dependencies.serde-wasm-bindgen]
version = "0.6.5"
optional = true

[dependencies.serde_json]
version = "1.0.150"
features = ["alloc"]
optional = true
default-features = false

[dependencies.subtle]
version = "2.6.1"
default-features = false

[dependencies.wasm-bindgen]
version = "0.2.122"
features = ["serde-serialize"]
optional = true

[dependencies.zeroize]
version = "1.8.2"
features = [
    "derive",
    "alloc",
]
default-features = false

[dev-dependencies.crypto-bigint]
version = "0.7.3"
features = ["zeroize"]
default-features = false

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.sha2]
version = "0.11.0"
default-features = false

[dev-dependencies.wasm-bindgen-test]
version = "0.3.72"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(lib_q_prf_docs)",
    'cfg(feature, values("alloc", "default", "no_std_panic_handler", "std", "wasm"))',
]