Struct win_crypto_ng::asymmetric::agreement::SecretHandle
source · pub struct SecretHandle { /* private fields */ }
Expand description
Handle representing a secret agreement value. Used for key derivation.
Implementations§
source§impl SecretHandle
impl SecretHandle
sourcepub fn derive_raw(&self) -> Result<Box<[u8]>>
pub fn derive_raw(&self) -> Result<Box<[u8]>>
Returns the little-endian representation of the raw secret without any modification.
NOTE: Supported only on Windows 10.
Trait Implementations§
source§impl Drop for SecretHandle
impl Drop for SecretHandle
source§impl Handle for SecretHandle
impl Handle for SecretHandle
fn as_ptr(&self) -> BCRYPT_SECRET_HANDLE
fn as_mut_ptr(&mut self) -> *mut BCRYPT_SECRET_HANDLE
fn set_property<T: Property>(&self, value: &T::Value) -> Result<()>
fn get_property<T: Property>(&self) -> Result<T::Value>where T::Value: Sized,
fn get_property_unsized<T: Property>(&self) -> Result<Box<T::Value>>
impl Send for SecretHandle
Auto Trait Implementations§
impl RefUnwindSafe for SecretHandle
impl !Sync for SecretHandle
impl Unpin for SecretHandle
impl UnwindSafe for SecretHandle
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