INNER CODE UNIT · Rust

square

IronCoreLabs/recrypt-rs · src/internal/mod.rs:351

    fn square(&self) -> Self;
}

impl Square for Fp256 {
    fn square(&self) -> Self {
        *self * *self
    }
}

impl Square for fp_256::Monty {
    fn square(&self) -> Self {
        *self * *self
    }
}

impl Square for Fr256 {
    fn square(&self) -> Self {
        *self * *self

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…