pub struct RecipientSecret(/* private fields */);Expand description
Implementations§
Source§impl RecipientSecret
impl RecipientSecret
pub fn generate() -> Result<Self, CryptoError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, CryptoError>
pub fn public_key(&self) -> Result<RecipientPublic, CryptoError>
Sourcepub fn expose_seed_for_sealing(&self) -> &[u8] ⓘ
pub fn expose_seed_for_sealing(&self) -> &[u8] ⓘ
Exposes the raw seed so it can be sealed for storage. Deliberately named to make a plaintext write of the result look wrong at the call site.
Sourcepub fn export_test_secret(&self) -> Zeroizing<Vec<u8>>
pub fn export_test_secret(&self) -> Zeroizing<Vec<u8>>
Explicit secret export for this experimental CLI only. The caller must protect the result and avoid logging or copying it.
Auto Trait Implementations§
impl Forget for RecipientSecret
impl Freeze for RecipientSecret
impl Move for RecipientSecret
impl RefUnwindSafe for RecipientSecret
impl Send for RecipientSecret
impl Sync for RecipientSecret
impl Unpin for RecipientSecret
impl UnsafeUnpin for RecipientSecret
impl UnwindSafe for RecipientSecret
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