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]
impl EdwardsBasepointTable
pub fn create(basepoint: &EdwardsPoint) -> EdwardsBasepointTable
[src]
pub fn create(basepoint: &EdwardsPoint) -> EdwardsBasepointTable
Create a table of precomputed multiples of basepoint
.
pub fn basepoint(&self) -> EdwardsPoint
[src]
pub fn basepoint(&self) -> EdwardsPoint
Get the basepoint for this table as an EdwardsPoint
.
Trait Implementations
impl Clone for EdwardsBasepointTable
[src]
impl Clone for EdwardsBasepointTable
fn clone(&self) -> EdwardsBasepointTable
[src]
fn clone(&self) -> EdwardsBasepointTable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a, 'b> Mul<&'b Scalar> for &'a EdwardsBasepointTable
[src]
impl<'a, 'b> Mul<&'b Scalar> for &'a EdwardsBasepointTable
type Output = EdwardsPoint
The resulting type after applying the *
operator.
fn mul(self, scalar: &'b Scalar) -> EdwardsPoint
[src]
fn mul(self, scalar: &'b Scalar) -> EdwardsPoint
Construct an EdwardsPoint
from a Scalar
\(a\) by
computing the multiple \(aB\) of this basepoint \(B\).
impl<'a, 'b> Mul<&'a EdwardsBasepointTable> for &'b Scalar
[src]
impl<'a, 'b> Mul<&'a EdwardsBasepointTable> for &'b Scalar
type Output = EdwardsPoint
The resulting type after applying the *
operator.
fn mul(self, basepoint_table: &'a EdwardsBasepointTable) -> EdwardsPoint
[src]
fn mul(self, basepoint_table: &'a EdwardsBasepointTable) -> EdwardsPoint
Construct an EdwardsPoint
from a Scalar
\(a\) by
computing the multiple \(aB\) of this basepoint \(B\).
impl Debug for EdwardsBasepointTable
[src]
impl Debug for EdwardsBasepointTable
Auto Trait Implementations
impl Send for EdwardsBasepointTable
impl Send for EdwardsBasepointTable
impl Sync for EdwardsBasepointTable
impl Sync for EdwardsBasepointTable