Struct curve25519_dalek::edwards::EdwardsBasepointTable
[−]
[src]
pub struct EdwardsBasepointTable(_);
A precomputed table of multiples of a basepoint, for accelerating
fixed-base scalar multiplication. One table, for the Ed25519
basepoint, is provided in the constants
module.
The basepoint tables are reasonably large (30KB), so they should probably be boxed.
Methods
impl EdwardsBasepointTable
[src]
fn create(basepoint: &EdwardsPoint) -> EdwardsBasepointTable
[src]
Create a table of precomputed multiples of basepoint
.
fn basepoint(&self) -> EdwardsPoint
[src]
Get the basepoint for this table as an EdwardsPoint
.
XXX maybe this would be better as a From
impl
Trait Implementations
impl Clone for EdwardsBasepointTable
[src]
fn clone(&self) -> EdwardsBasepointTable
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, 'b> Mul<&'b Scalar> for &'a EdwardsBasepointTable
[src]
type Output = EdwardsPoint
The resulting type after applying the *
operator.
fn mul(self, scalar: &'b Scalar) -> EdwardsPoint
[src]
Construct an EdwardsPoint
from a Scalar
\(a\) by
computing the multiple \(aB\) of this basepoint \(B\).