Skip to main content

MulVartime

Trait MulVartime 

Source
pub trait MulVartime<Rhs = Self>: Mul<Rhs> {
    // Required method
    fn mul_vartime(self, rhs: Rhs) -> <Self as Mul<Rhs>>::Output;
}
Expand description

Variable-time equivalent of the Mul trait.

Should always compute the same results as Mul, but may provide a faster implementation.

Security Warning

Variable-time operations should only be used on non-secret values, and may potentially leak secret values!

Required Methods§

Source

fn mul_vartime(self, rhs: Rhs) -> <Self as Mul<Rhs>>::Output

Multiply self by rhs in variable-time.

Implementors§