pub struct Table<C: Curve> { /* private fields */ }Expand description
Every multiple of the generator this algorithm needs.
The windows live on the heap and are pushed one at a time. An array sized
for the widest curve would be about 116 KiB for P-521, and building it as a
stack temporary before moving it into the OnceLock overflowed the stack –
which is how this first failed, in the FIPS self-test doctests. A Vec also
sizes each curve to what it actually uses rather than to P-521.
Implementations§
Auto Trait Implementations§
impl<C> Freeze for Table<C>
impl<C> RefUnwindSafe for Table<C>where
Vec<Window<C>>: RefUnwindSafe,
impl<C> Send for Table<C>
impl<C> Sync for Table<C>
impl<C> Unpin for Table<C>
impl<C> UnsafeUnpin for Table<C>where
Vec<Window<C>>: UnsafeUnpin,
impl<C> UnwindSafe for Table<C>where
Vec<Window<C>>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more