pub struct DeriveOptions { /* private fields */ }Expand description
Mint-time policy for derivation base secrets, following the
package-wide options contract (see README.md): the constructor
grants nothing, at least one grant is required to mint, and the
vocabulary is WebCrypto’s usage pair for derive-capable keys.
Implementations§
Source§impl DeriveOptions
impl DeriveOptions
Source§impl DeriveOptions
impl DeriveOptions
Sourcepub fn can_derive_bits(&self, allowed: bool)
pub fn can_derive_bits(&self, allowed: bool)
Whether inputs built on this base secret may yield raw bits
through derive-input.derive-bits, and — because an extractable
key is bits disclosure by other means — whether they may mint
extractable keys. Disabled by default.
Source§impl DeriveOptions
impl DeriveOptions
Sourcepub fn can_derive_key(&self, allowed: bool)
pub fn can_derive_key(&self, allowed: bool)
Whether inputs built on this base secret may mint keys through
the target interfaces’ derive-key. Disabled by default.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DeriveOptions
impl RefUnwindSafe for DeriveOptions
impl Send for DeriveOptions
impl Sync for DeriveOptions
impl Unpin for DeriveOptions
impl UnsafeUnpin for DeriveOptions
impl UnwindSafe for DeriveOptions
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