pub struct AgreementPrivateKey { /* private fields */ }Expand description
Wraps a key-agreement private SecKeyRef.
Implementations§
Source§impl AgreementPrivateKey
impl AgreementPrivateKey
Sourcepub fn generate_p256() -> Result<Self>
pub fn generate_p256() -> Result<Self>
Wraps the corresponding private SecKeyRef agreement operation.
Sourcepub fn public_key(&self) -> Result<AgreementPublicKey>
pub fn public_key(&self) -> Result<AgreementPublicKey>
Wraps the corresponding private SecKeyRef agreement operation.
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Wraps the corresponding private SecKeyRef agreement operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgreementPrivateKey
impl RefUnwindSafe for AgreementPrivateKey
impl !Send for AgreementPrivateKey
impl !Sync for AgreementPrivateKey
impl Unpin for AgreementPrivateKey
impl UnsafeUnpin for AgreementPrivateKey
impl UnwindSafe for AgreementPrivateKey
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