Struct hc_seed_bundle::SeedCipherBuilder
source · pub struct SeedCipherBuilder { /* private fields */ }
Expand description
To lock a SeedBundle, we need a list of ciphers and their secrets. This builder allows specifying those, then generating the locked bytes.
Implementations§
source§impl SeedCipherBuilder
impl SeedCipherBuilder
sourcepub fn add_pwhash_cipher<P>(self, passphrase: P) -> Self
pub fn add_pwhash_cipher<P>(self, passphrase: P) -> Self
Add a simple pwhash passphrase cipher to the cipher list.
sourcepub fn add_security_question_cipher<A>(
self,
question_list: (String, String, String),
answer_list: (A, A, A)
) -> Self
pub fn add_security_question_cipher<A>( self, question_list: (String, String, String), answer_list: (A, A, A) ) -> Self
Add a security question based cipher to the cipher list.
sourcepub async fn lock(self) -> SodokenResult<Box<[u8]>>
pub async fn lock(self) -> SodokenResult<Box<[u8]>>
Process the seed ciphers and generate the locked bytes of this bundle.
Auto Trait Implementations§
impl !RefUnwindSafe for SeedCipherBuilder
impl Send for SeedCipherBuilder
impl !Sync for SeedCipherBuilder
impl Unpin for SeedCipherBuilder
impl !UnwindSafe for SeedCipherBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more