INNER CODE UNIT · Rust

add

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

    fn add(self, other: Self) -> Self {
        Self {
            value: self.value + other.value,
        }
    }
}

impl<T: Sub<Output = T>> Sub for PrivateKey<T> {
    type Output = Self;

    fn sub(self, other: Self) -> Self {
        Self {
            value: self.value - other.value,
        }
    }
}

impl<T> BitRepr for PrivateKey<T>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…