Struct rpi_derive_key::DeriverBuilder
source · pub struct DeriverBuilder { /* private fields */ }
Expand description
A builder for Deriver
.
Implementations§
source§impl DeriverBuilder
impl DeriverBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new DeriverBuilder
.
sourcepub fn with_salt<S: AsRef<[u8]>>(self, salt: Option<S>) -> Self
pub fn with_salt<S: AsRef<[u8]>>(self, salt: Option<S>) -> Self
Set the optional salt to use for the HKDF algorithm.
pub fn use_customer_otp(&self) -> bool
sourcepub fn with_use_customer_otp(self, enable: bool) -> Self
pub fn with_use_customer_otp(self, enable: bool) -> Self
Enable the usage of the customer-programable OTP values instead of the OTP private key.
pub fn set_use_customer_otp(&mut self, enable: bool)
sourcepub fn initialize(self, enable: bool) -> Self
pub fn initialize(self, enable: bool) -> Self
Enable the automatic initialization of the OTP memory with a randomly generated secret.
pub fn set_initialize(&mut self, enable: bool)
Trait Implementations§
source§impl Clone for DeriverBuilder
impl Clone for DeriverBuilder
source§fn clone(&self) -> DeriverBuilder
fn clone(&self) -> DeriverBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeriverBuilder
impl Debug for DeriverBuilder
source§impl Default for DeriverBuilder
impl Default for DeriverBuilder
source§fn default() -> DeriverBuilder
fn default() -> DeriverBuilder
Returns the “default value” for a type. Read more