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]
impl<State> Hashcrypt<State>
[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.
fn deref(&self) -> &Self::Target
[src]
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,
State: Send,
impl<State = Unknown> !Sync for Hashcrypt<State>
impl<State> Unpin for Hashcrypt<State> where
State: Unpin,
State: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,