Trait ring::digest::sha2::Word

source ·
pub(super) trait Word: 'static + Sized + Copy + Add<Output = Self> + AddAssign + BitAnd<Output = Self> + BitOr<Output = Self> + Not<Output = Self> {
    type InputBytes: Copy;

    const ZERO: Self;

    // Required methods
    fn from_be_bytes(input: Self::InputBytes) -> Self;
    fn rotr(self, count: u32) -> Self;
}

Required Associated Types§

Required Associated Constants§

source

const ZERO: Self

Required Methods§

source

fn from_be_bytes(input: Self::InputBytes) -> Self

source

fn rotr(self, count: u32) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Word for Wrapping<u32>

source§

const ZERO: Self = _

§

type InputBytes = [u8; 4]

source§

fn from_be_bytes(input: Self::InputBytes) -> Self

source§

fn rotr(self, count: u32) -> Self

source§

impl Word for Wrapping<u64>

source§

const ZERO: Self = _

§

type InputBytes = [u8; 8]

source§

fn from_be_bytes(input: Self::InputBytes) -> Self

source§

fn rotr(self, count: u32) -> Self

Implementors§