pub struct AgreementKeyOptions { /* private fields */ }Expand description
Mint-time policy for agreement secret keys, following the
package-wide options contract (see README.md). The derive grants
are the W3C Web Cryptography API’s usage pair for agreement keys,
and flow to every derive-input the key’s agree mints.
extractable gates the secret-key exports (export-key-jwk/
-pkcs8 and the to-wrap-input-* functions); platform key
storage honors it too (the signing-key precedent).
Implementations§
Source§impl AgreementKeyOptions
impl AgreementKeyOptions
Sourcepub fn can_derive_bits(&self, allowed: bool)
pub fn can_derive_bits(&self, allowed: bool)
Whether inputs agreed by the minted key may yield raw bits. Disabled by default.
Source§impl AgreementKeyOptions
impl AgreementKeyOptions
Sourcepub fn can_derive_key(&self, allowed: bool)
pub fn can_derive_key(&self, allowed: bool)
Whether inputs agreed by the minted key may mint keys. Disabled by default.
Source§impl AgreementKeyOptions
impl AgreementKeyOptions
Sourcepub fn extractable(&self, allowed: bool)
pub fn extractable(&self, allowed: bool)
Whether the minted key’s material may be exported
(secret-key.export-key-jwk/-pkcs8). Disabled by default.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AgreementKeyOptions
impl RefUnwindSafe for AgreementKeyOptions
impl Send for AgreementKeyOptions
impl Sync for AgreementKeyOptions
impl Unpin for AgreementKeyOptions
impl UnsafeUnpin for AgreementKeyOptions
impl UnwindSafe for AgreementKeyOptions
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