Skip to main content

Module ffi

Module ffi 

Source
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§

ByteBuffer
C-compatible byte buffer
PqcFormatHandle
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