Expand description
C/C++ FFI bindings for PQC Binary Format
This module provides C-compatible foreign function interface (FFI) for use in C/C++ applications and Go (via cgo).
Re-exports§
pub use crate::algorithm::c_constants::*;
Structs§
- Byte
Buffer - C-compatible byte buffer
- PqcFormat
Handle - Opaque handle to PqcBinaryFormat
Functions§
- pqc_
format_ ⚠free - Free a PqcBinaryFormat handle
- pqc_
format_ ⚠from_ bytes - Deserialize PQC Binary Format from bytes
- pqc_
format_ ⚠get_ algorithm_ id - Get algorithm ID from format
- pqc_
format_ ⚠get_ algorithm_ name - Get algorithm name from format
- pqc_
format_ ⚠get_ data - Get encrypted data from format
- pqc_
format_ ⚠get_ total_ size - Get total size of serialized format
- pqc_
format_ ⚠new - Create a new PQC Binary Format structure
- pqc_
format_ ⚠new_ with_ kem - Create PQC Binary Format with KEM parameters
- pqc_
format_ ⚠to_ bytes - Serialize PQC Binary Format to bytes
- pqc_
format_ ⚠validate - Validate format structure
- pqc_
free_ ⚠buffer - Free a byte buffer allocated by this library
- pqc_
free_ ⚠string - Free a string allocated by this library
- pqc_
get_ binary_ version - Get binary format version
- pqc_
get_ version - Get library version string