Struct curve25519_dalek::ristretto::RistrettoBasepointTable [−][src]
pub struct RistrettoBasepointTable(_);
A precomputed table of multiples of a basepoint, used to accelerate scalar multiplication.
A precomputed table of multiples of the Ristretto basepoint is
available in the constants
module:
use curve25519_dalek::constants; use curve25519_dalek::scalar::Scalar; let a = Scalar::from(87329482u64); let P = &a * &constants::RISTRETTO_BASEPOINT_TABLE;
Methods
impl RistrettoBasepointTable
[src]
impl RistrettoBasepointTable
pub fn create(basepoint: &RistrettoPoint) -> RistrettoBasepointTable
[src]
pub fn create(basepoint: &RistrettoPoint) -> RistrettoBasepointTable
Create a precomputed table of multiples of the given basepoint
.
pub fn basepoint(&self) -> RistrettoPoint
[src]
pub fn basepoint(&self) -> RistrettoPoint
Get the basepoint for this table as a RistrettoPoint
.
Trait Implementations
impl Clone for RistrettoBasepointTable
[src]
impl Clone for RistrettoBasepointTable
fn clone(&self) -> RistrettoBasepointTable
[src]
fn clone(&self) -> RistrettoBasepointTable
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a, 'b> Mul<&'b Scalar> for &'a RistrettoBasepointTable
[src]
impl<'a, 'b> Mul<&'b Scalar> for &'a RistrettoBasepointTable
type Output = RistrettoPoint
The resulting type after applying the *
operator.
fn mul(self, scalar: &'b Scalar) -> RistrettoPoint
[src]
fn mul(self, scalar: &'b Scalar) -> RistrettoPoint
Performs the *
operation.
impl<'a, 'b> Mul<&'a RistrettoBasepointTable> for &'b Scalar
[src]
impl<'a, 'b> Mul<&'a RistrettoBasepointTable> for &'b Scalar
type Output = RistrettoPoint
The resulting type after applying the *
operator.
fn mul(self, basepoint_table: &'a RistrettoBasepointTable) -> RistrettoPoint
[src]
fn mul(self, basepoint_table: &'a RistrettoBasepointTable) -> RistrettoPoint
Performs the *
operation.
Auto Trait Implementations
impl Send for RistrettoBasepointTable
impl Send for RistrettoBasepointTable
impl Sync for RistrettoBasepointTable
impl Sync for RistrettoBasepointTable