Struct lpc55_hal::peripherals::hashcrypt::Hashcrypt [−][src]
pub struct Hashcrypt<State = Unknown> { pub _state: State, // some fields omitted }
Fields
_state: State
Implementations
impl Hashcrypt<Enabled>
[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]
impl<State> Deref for Hashcrypt<State>
[src]type Target = RegisterBlock
The resulting type after dereferencing.