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;
Implementations
impl RistrettoBasepointTable[src]
impl RistrettoBasepointTable[src]pub fn create(basepoint: &RistrettoPoint) -> RistrettoBasepointTable[src]
Create a precomputed table of multiples of the given basepoint.
pub fn basepoint(&self) -> RistrettoPoint[src]
Get the basepoint for this table as a RistrettoPoint.
Trait Implementations
impl Clone for RistrettoBasepointTable[src]
impl Clone for RistrettoBasepointTable[src]fn clone(&self) -> RistrettoBasepointTable[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a, 'b> Mul<&'a RistrettoBasepointTable> for &'b Scalar[src]
impl<'a, 'b> Mul<&'a RistrettoBasepointTable> for &'b Scalar[src]type Output = RistrettoPoint
The resulting type after applying the * operator.
fn mul(self, basepoint_table: &'a RistrettoBasepointTable) -> RistrettoPoint[src]
impl<'a, 'b> Mul<&'b Scalar> for &'a RistrettoBasepointTable[src]
impl<'a, 'b> Mul<&'b Scalar> for &'a RistrettoBasepointTable[src]type Output = RistrettoPoint
The resulting type after applying the * operator.