Trait xxxdh::SecretKey [−][src]
pub trait SecretKey: Zeroize + Debug {
type P: PublicKey;
fn generate_with<R: CryptoRng + RngCore>(csprng: R) -> Self
where
Self: Sized;
fn to_public(&self) -> Self::P;
}
Expand description
A secret key for use in X3DH protocol.
Associated Types
Required methods
fn generate_with<R: CryptoRng + RngCore>(csprng: R) -> Self where
Self: Sized,
fn generate_with<R: CryptoRng + RngCore>(csprng: R) -> Self where
Self: Sized,
Generate an “unbiased” SecretKey
directly from a user
suplied csprng
uniformly.