Struct lpc55_hal::peripherals::hashcrypt::Hashcrypt[][src]

pub struct Hashcrypt<State = Unknown> {
    pub _state: State,
    // some fields omitted
}

Fields

_state: State

Implementations

impl Hashcrypt[src]

pub unsafe fn steal() -> Self[src]

impl<State> Hashcrypt<State>[src]

pub fn release(self) -> HASHCRYPT[src]

impl<State> Hashcrypt<State>[src]

pub fn enabled(self, syscon: &mut Syscon) -> Hashcrypt<Enabled>[src]

pub fn disabled(self, syscon: &mut Syscon) -> Hashcrypt<Disabled>[src]

impl Hashcrypt<Enabled>[src]

pub fn sha1<'a>(&'a mut self) -> Sha1<'a>[src]

SHA-1, as in RustCrypto digest trait

pub fn sha256<'a>(&'a mut self) -> Sha256<'a>[src]

SHA-256, as in RustCrypto digest trait

pub fn aes128<'a>(&'a mut self, key: &[u8; 16]) -> Aes128<'a>[src]

AES-128 “ECB”, as in RustCrypto block-cipher trait

pub fn aes192<'a>(&'a mut self, key: &[u8; 24]) -> Aes192<'a>[src]

AES-192 “ECB”, as in RustCrypto block-cipher trait

pub fn aes256<'a>(&'a mut self, key: &[u8; 32]) -> Aes256<'a>[src]

AES-256 “ECB”, as in RustCrypto block-cipher trait

pub fn puf_aes<'a>(&'a mut self) -> Aes256<'a>[src]

AES “ECB” with PUF key, for use as in RustCrypto block-cipher trait

DOES NOT PROPERLY CHECK IF PUF AES KEY IS SETUP YET! TODO: have user pass in some token signaling PUF AES key is setup

Trait Implementations

impl<State> Deref for Hashcrypt<State>[src]

type Target = RegisterBlock

The resulting type after dereferencing.

impl<'a, Size: OutputSize> From<&'a mut Hashcrypt<Enabled<()>>> for Sha<'a, Size>[src]

impl From<HASHCRYPT> for Hashcrypt[src]

Auto Trait Implementations

impl<State> Send for Hashcrypt<State> where
    State: Send

impl<State = Unknown> !Sync for Hashcrypt<State>

impl<State> Unpin for Hashcrypt<State> where
    State: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.