[−][src]Enum accumulator::group::Rsa2048
RSA-2048 group implementation. Modulus taken from
here. Note: If you want to use
Rsa2048
outside the context of this crate, be advised that it treats x
and -x
as the same
element for sound proofs-of-exponentiation. See BBF (page 9).
Trait Implementations
impl Group for Rsa2048
[src]
type Elem = Rsa2048Elem
The associated group element type for this group.
fn op_(modulus: &Integer, a: &Rsa2048Elem, b: &Rsa2048Elem) -> Rsa2048Elem
[src]
fn id_(_: &Integer) -> Rsa2048Elem
[src]
fn inv_(modulus: &Integer, x: &Rsa2048Elem) -> Rsa2048Elem
[src]
fn exp_(modulus: &Integer, x: &Rsa2048Elem, n: &Integer) -> Rsa2048Elem
[src]
fn id() -> Self::Elem
[src]
Returns the identity element of the group.
fn op(a: &Self::Elem, b: &Self::Elem) -> Self::Elem
[src]
Applies the group operation to elements a
and b
and returns the result.
fn exp(a: &Self::Elem, n: &Integer) -> Self::Elem
[src]
Applies the group operation to a
and itself n
times and returns the result.
fn inv(a: &Self::Elem) -> Self::Elem
[src]
Returns the group inverse of a
.
impl UnknownOrderGroup for Rsa2048
[src]
fn unknown_order_elem_(_: &Integer) -> Rsa2048Elem
[src]
fn unknown_order_elem() -> Self::Elem
[src]
Returns an element of unknown order in the group.
impl<T> ElemFrom<T> for Rsa2048 where
Integer: From<T>,
[src]
Integer: From<T>,
fn elem(t: T) -> Rsa2048Elem
[src]
impl TypeRep for Rsa2048
[src]
type Rep = Integer
The associated type of the simulated type-level static information.
fn rep() -> &'static Self::Rep
[src]
impl Eq for Rsa2048
[src]
impl PartialEq<Rsa2048> for Rsa2048
[src]
fn eq(&self, other: &Rsa2048) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for Rsa2048
[src]
fn clone(&self) -> Rsa2048
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Rsa2048
[src]
impl Hash for Rsa2048
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self