Repository Public Apache-2.0
1# cbindgen 0.29.4 — regenerate with ./scripts/gen-header.sh (CI fails if the2# committed include/spb_pqc.h differs from the generated one).3language = "C"4include_guard = "SPB_PQC_H"5cpp_compat = true6documentation = true7documentation_style = "c99"8usize_is_size_t = true9no_includes = true10sys_includes = ["stdint.h", "stddef.h"]11line_length = 10012header = """/*13 * SPB Quantum Crypto — C ABI, version 1.14 * EXPERIMENTAL / NOT AUDITED. Not a FIPS 140-3 validated module.15 *16 * Generated from crates/spb-pqc-ffi/src/lib.rs by cbindgen; do not edit by hand.17 *18 * Conventions (every function):19 * - returns 0 on success, a negative SPB_PQC_ERR_* value otherwise;20 * - all buffers are caller-owned (pointer, length) pairs; a null pointer is21 * accepted only with length 0; inputs and outputs must not overlap;22 * - output buffers must have the exact length given by the *_sizes functions23 * (DER outputs take a capacity and report the length);24 * - on failure every output buffer is zero-filled;25 * - reentrant and thread-safe; no allocation is handed to the caller;26 * - randomness comes from the operating-system CSPRNG inside the library27 * (WebAssembly build: from the single imported host function28 * spb_pqc_host.random_fill, which must wrap crypto.getRandomValues).29 *30 * Licensed under the Apache License, Version 2.0.31 * Copyright (c) 2026 Simon-Pierre Boucher. https://pqce.spboucher.ai32 */"""3334[export]35item_types = ["constants", "functions"]36