Enum alure::instr::Curve25519Op [−][src]
pub enum Curve25519Op { Gen(Reg32, Reg8), Mul(RegBlock, Reg32, Reg32, Reg32), Add(Reg32, Reg32, Reg32, bool), Neg(Reg32, Reg8), }
Expand description
Operations on Curve25519 elliptic curve
Variants
Generates new elliptic curve point value saved into destination
register in r512
set using scalar value from the source r256
register
Multiplies elliptic curve point on a scalar
Adds two elliptic curve points
Negates elliptic curve point
Trait Implementations
impl Bytecode for Curve25519Op
[src]
impl Bytecode for Curve25519Op
[src]fn byte_count(&self) -> u16
[src]
fn byte_count(&self) -> u16
[src]Returns number of bytes which instruction and its argument occupies
fn instr_range() -> RangeInclusive<u8>
[src]
fn instr_range() -> RangeInclusive<u8>
[src]Returns range of instruction btecodes covered by a set of operations
fn instr_byte(&self) -> u8
[src]
fn instr_byte(&self) -> u8
[src]Returns byte representing instruction code (without its arguments)
fn write_args<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]
fn write_args<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]Writes instruction arguments as bytecode, omitting instruction code byte
fn read<R>(reader: &mut R) -> Result<Self, DecodeError> where
R: Read,
DecodeError: From<<R as Read>::Error>,
[src]
fn read<R>(reader: &mut R) -> Result<Self, DecodeError> where
R: Read,
DecodeError: From<<R as Read>::Error>,
[src]Reads the instruction from bytecode
fn write<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]
fn write<W>(&self, writer: &mut W) -> Result<(), EncodeError> where
W: Write,
EncodeError: From<<W as Write>::Error>,
[src]Writes the instruction as bytecode
impl Clone for Curve25519Op
[src]
impl Clone for Curve25519Op
[src]fn clone(&self) -> Curve25519Op
[src]
fn clone(&self) -> Curve25519Op
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Curve25519Op
[src]
impl Debug for Curve25519Op
[src]impl Display for Curve25519Op
[src]
impl Display for Curve25519Op
[src]impl Hash for Curve25519Op
[src]
impl Hash for Curve25519Op
[src]impl InstructionSet for Curve25519Op
[src]
impl InstructionSet for Curve25519Op
[src]impl Ord for Curve25519Op
[src]
impl Ord for Curve25519Op
[src]impl PartialEq<Curve25519Op> for Curve25519Op
[src]
impl PartialEq<Curve25519Op> for Curve25519Op
[src]fn eq(&self, other: &Curve25519Op) -> bool
[src]
fn eq(&self, other: &Curve25519Op) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Curve25519Op) -> bool
[src]
fn ne(&self, other: &Curve25519Op) -> bool
[src]This method tests for !=
.
impl PartialOrd<Curve25519Op> for Curve25519Op
[src]
impl PartialOrd<Curve25519Op> for Curve25519Op
[src]fn partial_cmp(&self, other: &Curve25519Op) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Curve25519Op) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Curve25519Op
[src]
impl Eq for Curve25519Op
[src]
impl StructuralEq for Curve25519Op
[src]
impl StructuralPartialEq for Curve25519Op
[src]
Auto Trait Implementations
impl RefUnwindSafe for Curve25519Op
impl Send for Curve25519Op
impl Sync for Curve25519Op
impl Unpin for Curve25519Op
impl UnwindSafe for Curve25519Op
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more