pub struct ReachingSecretKeys {
pub ec_secret_key: X25519Secret,
pub pq_secret_key: MlKemSecret,
pub pq_public_key: MlKemPublic,
}Fields§
§ec_secret_key: X25519Secret§pq_secret_key: MlKemSecret§pq_public_key: MlKemPublicImplementations§
Source§impl ReachingSecretKeys
impl ReachingSecretKeys
pub fn from_passphrase<W>( passphrase: &str, wordlist: &W, salts: &Salts, ) -> Result<(Self, Self), PassphraseError>
pub fn unsigned_public_keys(&self) -> UnsignedReachingPublicKeys
Trait Implementations§
Source§impl From<&ReachingSecretKeys> for UnsignedReachingPublicKeys
impl From<&ReachingSecretKeys> for UnsignedReachingPublicKeys
Source§fn from(from: &ReachingSecretKeys) -> Self
fn from(from: &ReachingSecretKeys) -> Self
Converts to this type from the input type.
Source§impl HintTaker for ReachingSecretKeys
impl HintTaker for ReachingSecretKeys
Source§fn take_the_hint(
&self,
envelope_id_hint: &Hint<X25519, ChaChaPoly1305<StreamCipherCoreWrapper<XChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>, 54>,
salts: &Salts,
) -> Result<HintedEnvelopeId, CryptError>where
Self: ParticipantSecretKeys,
fn take_the_hint(
&self,
envelope_id_hint: &Hint<X25519, ChaChaPoly1305<StreamCipherCoreWrapper<XChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>, 54>,
salts: &Salts,
) -> Result<HintedEnvelopeId, CryptError>where
Self: ParticipantSecretKeys,
Decrypt a single envelope ID hint.
Source§fn take_all_the_hints(
&self,
envelope_id_hints: &Hints<Hint<X25519, ChaChaPoly1305<StreamCipherCoreWrapper<XChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>, 54>, 5000>,
salts: &Salts,
) -> Result<Vec<HintedEnvelopeId>, DecodeError>where
Self: ParticipantSecretKeys,
fn take_all_the_hints(
&self,
envelope_id_hints: &Hints<Hint<X25519, ChaChaPoly1305<StreamCipherCoreWrapper<XChaChaCore<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>>, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>, 54>, 5000>,
salts: &Salts,
) -> Result<Vec<HintedEnvelopeId>, DecodeError>where
Self: ParticipantSecretKeys,
Decrypt a set of envelope ID hints.
Source§impl ParticipantSecretKeys for ReachingSecretKeys
impl ParticipantSecretKeys for ReachingSecretKeys
Source§fn ec_secret_key(&self) -> &X25519Secret
fn ec_secret_key(&self) -> &X25519Secret
Access to a type’s X25519 elliptic curve secret key.
Source§fn pq_secret_key(&self) -> &MlKemSecret
fn pq_secret_key(&self) -> &MlKemSecret
Access to a type’s ML-KEM post-quantum secret key.
Source§impl<A> PublicKeyDecrypter<A> for ReachingSecretKeyswhere
A: PublicKeyEncrypted + Ciphertext,
impl<A> PublicKeyDecrypter<A> for ReachingSecretKeyswhere
A: PublicKeyEncrypted + Ciphertext,
Source§fn decrypt<D>(&self, encrypted: &A, salts: &Salts) -> Result<D, CryptError>where
D: ProstDecode + Decryptable<A>,
fn decrypt<D>(&self, encrypted: &A, salts: &Salts) -> Result<D, CryptError>where
D: ProstDecode + Decryptable<A>,
Decrypt hybrid encrypted data using participant’s secret keys. Read more
Generate the MAC shared secret for verifying key authenticity. Read more
Source§impl RandomFromRng for ReachingSecretKeys
impl RandomFromRng for ReachingSecretKeys
fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self
Auto Trait Implementations§
impl Freeze for ReachingSecretKeys
impl RefUnwindSafe for ReachingSecretKeys
impl Send for ReachingSecretKeys
impl Sync for ReachingSecretKeys
impl Unpin for ReachingSecretKeys
impl UnwindSafe for ReachingSecretKeys
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