pub struct DecryptionKeyOptions { /* private fields */ }Expand description
Mint-time policy for decryption-keys, following the package-wide
options contract (see README.md). The two grants separate
disclosure from minting: decrypt returns plaintext to the
caller, while unwrap mints keys whose material the caller never
sees — a key granted only can-unwrap cannot leak what it
transports (the derive-bits/derive-key split’s reasoning).
Implementations§
Source§impl DecryptionKeyOptions
impl DecryptionKeyOptions
Sourcepub fn can_decrypt(&self, allowed: bool)
pub fn can_decrypt(&self, allowed: bool)
Whether the minted key may decrypt. Disabled by default.
Source§impl DecryptionKeyOptions
impl DecryptionKeyOptions
Sourcepub fn can_unwrap(&self, allowed: bool)
pub fn can_unwrap(&self, allowed: bool)
Whether the minted key may unwrap. Disabled by default.
Source§impl DecryptionKeyOptions
impl DecryptionKeyOptions
Sourcepub fn extractable(&self, allowed: bool)
pub fn extractable(&self, allowed: bool)
Whether the minted key’s material may be exported
(decryption-key.export-key-jwk/-pkcs8 and the
to-wrap-input-* functions). Disabled by default.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DecryptionKeyOptions
impl RefUnwindSafe for DecryptionKeyOptions
impl Send for DecryptionKeyOptions
impl Sync for DecryptionKeyOptions
impl Unpin for DecryptionKeyOptions
impl UnsafeUnpin for DecryptionKeyOptions
impl UnwindSafe for DecryptionKeyOptions
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