Skip to main content

Crate tfhe_safe_serialize

Crate tfhe_safe_serialize 

Source
Expand description

Serialization utilities with some safety checks

Structs§

DeserializationConfig
A configuration used to Serialize TFHE-rs objects. This configuration decides the various sanity checks that will be performed during deserialization.
EnumSet
A set of C-style enum values. This can be seen as a lightweight HashSet that derives Copy.
NonConformantDeserializationConfig
A configuration used to Serialize TFHE-rs objects. This is similar to DeserializationConfig but it will not require conformance parameters.
SerializationConfig
A configuration used to Serialize TFHE-rs objects. This configuration decides if the object will be versioned and holds the max byte size of the written data.

Traits§

Named
ParameterSetConformant
A trait for objects which can be checked to be conformant with a parameter set

Functions§

safe_deserialize
Serialize an object with the default configuration (with size limit, header check and versioning).
safe_deserialize_conformant
Serialize an object with the default configuration and conformance checks (with size limit, header check and versioning).
safe_serialize
Serialize an object with the default configuration (with size limit and versioning). This is an alias for SerializationConfig::new(serialized_size_limit).serialize_into
safe_serialized_size
Return the size the object would take if serialized using safe_serialize