Struct ChachaEndianness
#[repr(transparent)]pub struct ChachaEndianness(pub u32);Expand description
CHACHA engine data order configuration.
Tuple Fields§
§0: u32Implementations§
§impl ChachaEndianness
impl ChachaEndianness
pub const fn chacha_din_word_order(&self) -> ChachaDinWordOrder
pub const fn chacha_din_word_order(&self) -> ChachaDinWordOrder
Change the word order of the input data.
pub const fn set_chacha_din_word_order(&mut self, val: ChachaDinWordOrder)
pub const fn set_chacha_din_word_order(&mut self, val: ChachaDinWordOrder)
Change the word order of the input data.
pub const fn chacha_din_byte_order(&self) -> ChachaDinByteOrder
pub const fn chacha_din_byte_order(&self) -> ChachaDinByteOrder
Change the byte order of the input data.
pub const fn set_chacha_din_byte_order(&mut self, val: ChachaDinByteOrder)
pub const fn set_chacha_din_byte_order(&mut self, val: ChachaDinByteOrder)
Change the byte order of the input data.
pub const fn chacha_core_matrix_lbe_order(&self) -> ChachaCoreMatrixLbeOrder
pub const fn chacha_core_matrix_lbe_order(&self) -> ChachaCoreMatrixLbeOrder
Change the quarter of a matrix order in the engine.
pub const fn set_chacha_core_matrix_lbe_order(
&mut self,
val: ChachaCoreMatrixLbeOrder,
)
pub const fn set_chacha_core_matrix_lbe_order( &mut self, val: ChachaCoreMatrixLbeOrder, )
Change the quarter of a matrix order in the engine.
pub const fn chacha_dout_word_order(&self) -> ChachaDoutWordOrder
pub const fn chacha_dout_word_order(&self) -> ChachaDoutWordOrder
Change the word order of the output data.
pub const fn set_chacha_dout_word_order(&mut self, val: ChachaDoutWordOrder)
pub const fn set_chacha_dout_word_order(&mut self, val: ChachaDoutWordOrder)
Change the word order of the output data.
pub const fn chacha_dout_byte_order(&self) -> ChachaDoutByteOrder
pub const fn chacha_dout_byte_order(&self) -> ChachaDoutByteOrder
Change the byte order of the output data.
pub const fn set_chacha_dout_byte_order(&mut self, val: ChachaDoutByteOrder)
pub const fn set_chacha_dout_byte_order(&mut self, val: ChachaDoutByteOrder)
Change the byte order of the output data.
Trait Implementations§
§impl Clone for ChachaEndianness
impl Clone for ChachaEndianness
§fn clone(&self) -> ChachaEndianness
fn clone(&self) -> ChachaEndianness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChachaEndianness
§impl Debug for ChachaEndianness
impl Debug for ChachaEndianness
§impl Default for ChachaEndianness
impl Default for ChachaEndianness
§fn default() -> ChachaEndianness
fn default() -> ChachaEndianness
Returns the “default value” for a type. Read more
impl Eq for ChachaEndianness
§impl PartialEq for ChachaEndianness
impl PartialEq for ChachaEndianness
impl StructuralPartialEq for ChachaEndianness
Auto Trait Implementations§
impl Freeze for ChachaEndianness
impl RefUnwindSafe for ChachaEndianness
impl Send for ChachaEndianness
impl Sync for ChachaEndianness
impl Unpin for ChachaEndianness
impl UnsafeUnpin for ChachaEndianness
impl UnwindSafe for ChachaEndianness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more