pub trait FheEncoderVariableTime<V>where
Self: FhePlaintext,{
type Error;
// Required method
unsafe fn try_encode_vt(
value: V,
encoding: Self::Encoding,
par: &Arc<Self::Parameters>,
) -> Result<Self, Self::Error>;
}Expand description
Encode a value using a specified encoding.
Required Associated Types§
Required Methods§
Sourceunsafe fn try_encode_vt(
value: V,
encoding: Self::Encoding,
par: &Arc<Self::Parameters>,
) -> Result<Self, Self::Error>
unsafe fn try_encode_vt( value: V, encoding: Self::Encoding, par: &Arc<Self::Parameters>, ) -> Result<Self, Self::Error>
Attempt to encode a value using a specified encoding.
§Safety
This encoding runs in variable time and may leak information about the value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.