Skip to main content

ScratchArenaTakeCore

Trait ScratchArenaTakeCore 

Source
pub trait ScratchArenaTakeCore<'a, B: Backend>: ScratchArenaTakeBasic<'a, B> + Sized {
Show 13 methods // Provided methods fn take_lwe_scratch<A>(self, infos: &A) -> (LWEViewMut<'a, B>, Self) where B: 'a, A: LWEInfos { ... } fn take_lwe_plaintext_scratch<A>( self, infos: &A, ) -> (LWEPlaintextViewMut<'a, B>, Self) where B: 'a, A: LWEInfos { ... } fn take_glwe_scratch<A>(self, infos: &A) -> (GLWEViewMut<'a, B>, Self) where B: 'a, A: GLWEInfos { ... } fn take_glwe_slice_scratch<A>( self, size: usize, infos: &A, ) -> (Vec<GLWEViewMut<'a, B>>, Self) where B: 'a, A: GLWEInfos { ... } fn take_glwe_tensor_scratch<A>( self, infos: &A, ) -> (GLWETensorViewMut<'a, B>, Self) where B: 'a, A: GLWEInfos { ... } fn take_glwe_plaintext_scratch<A>( self, infos: &A, ) -> (GLWEPlaintextViewMut<'a, B>, Self) where B: 'a, A: GLWEInfos { ... } fn take_glwe_secret_prepared_scratch<M>( self, module: &M, rank: Rank, ) -> (GLWESecretPreparedViewMut<'a, B>, Self) where B: 'a, M: ModuleN + SvpPPolBytesOf { ... } fn take_glwe_secret_scratch( self, n: Degree, rank: Rank, ) -> (GLWESecretViewMut<'a, B>, Self) where B: 'a { ... } fn take_glwe_secret_tensor_scratch( self, n: Degree, rank: Rank, ) -> (GLWESecretTensorViewMut<'a, B>, Self) where B: 'a { ... } fn take_gglwe_scratch<A>(self, infos: &A) -> (GGLWEViewMut<'a, B>, Self) where B: 'a, A: GGLWEInfos { ... } fn take_gglwe_prepared_scratch<A, M>( self, module: &M, infos: &A, ) -> (GGLWEPreparedViewMut<'a, B>, Self) where B: 'a, A: GGLWEInfos, M: ModuleN + VmpPMatBytesOf { ... } fn take_ggsw_scratch<A>(self, infos: &A) -> (GGSWViewMut<'a, B>, Self) where B: 'a, A: GGSWInfos { ... } fn take_ggsw_prepared_scratch<A, M>( self, module: &M, infos: &A, ) -> (GGSWPreparedViewMut<'a, B>, Self) where B: 'a, A: GGSWInfos, M: ModuleN + VmpPMatBytesOf { ... }
}
Expand description

Backend-native arena allocation for core ciphertext/key layouts.

Returns backend-native borrows (B::BufMut<'a>) carved from a ScratchArena.

Provided Methods§

Source

fn take_lwe_scratch<A>(self, infos: &A) -> (LWEViewMut<'a, B>, Self)
where B: 'a, A: LWEInfos,

Allocates an LWE ciphertext from scratch space.

Source

fn take_lwe_plaintext_scratch<A>( self, infos: &A, ) -> (LWEPlaintextViewMut<'a, B>, Self)
where B: 'a, A: LWEInfos,

Allocates an LWEPlaintext from scratch space.

Source

fn take_glwe_scratch<A>(self, infos: &A) -> (GLWEViewMut<'a, B>, Self)
where B: 'a, A: GLWEInfos,

Allocates a GLWE ciphertext from scratch space.

Source

fn take_glwe_slice_scratch<A>( self, size: usize, infos: &A, ) -> (Vec<GLWEViewMut<'a, B>>, Self)
where B: 'a, A: GLWEInfos,

Allocates a Vec of size GLWE ciphertexts from scratch space.

Source

fn take_glwe_tensor_scratch<A>( self, infos: &A, ) -> (GLWETensorViewMut<'a, B>, Self)
where B: 'a, A: GLWEInfos,

Allocates a GLWETensor from scratch space.

Source

fn take_glwe_plaintext_scratch<A>( self, infos: &A, ) -> (GLWEPlaintextViewMut<'a, B>, Self)
where B: 'a, A: GLWEInfos,

Allocates a GLWEPlaintext from scratch space.

Source

fn take_glwe_secret_prepared_scratch<M>( self, module: &M, rank: Rank, ) -> (GLWESecretPreparedViewMut<'a, B>, Self)
where B: 'a, M: ModuleN + SvpPPolBytesOf,

Allocates a GLWESecretPrepared (DFT-domain secret key) from scratch space.

Source

fn take_glwe_secret_scratch( self, n: Degree, rank: Rank, ) -> (GLWESecretViewMut<'a, B>, Self)
where B: 'a,

Allocates a GLWESecret from scratch space.

Source

fn take_glwe_secret_tensor_scratch( self, n: Degree, rank: Rank, ) -> (GLWESecretTensorViewMut<'a, B>, Self)
where B: 'a,

Allocates a GLWESecretTensor from scratch space.

Source

fn take_gglwe_scratch<A>(self, infos: &A) -> (GGLWEViewMut<'a, B>, Self)
where B: 'a, A: GGLWEInfos,

Allocates a GGLWE ciphertext from scratch space.

Source

fn take_gglwe_prepared_scratch<A, M>( self, module: &M, infos: &A, ) -> (GGLWEPreparedViewMut<'a, B>, Self)
where B: 'a, A: GGLWEInfos, M: ModuleN + VmpPMatBytesOf,

Allocates a GGLWEPrepared (DFT-domain GGLWE) from scratch space.

Source

fn take_ggsw_scratch<A>(self, infos: &A) -> (GGSWViewMut<'a, B>, Self)
where B: 'a, A: GGSWInfos,

Allocates a GGSW ciphertext from scratch space.

Source

fn take_ggsw_prepared_scratch<A, M>( self, module: &M, infos: &A, ) -> (GGSWPreparedViewMut<'a, B>, Self)
where B: 'a, A: GGSWInfos, M: ModuleN + VmpPMatBytesOf,

Allocates a GGSWPrepared (DFT-domain GGSW) from scratch space.

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.

Implementations on Foreign Types§

Source§

impl<'a, B: Backend> ScratchArenaTakeCore<'a, B> for ScratchArena<'a, B>

Implementors§