pub struct X25519 {}Expand description
Alias-ish type for X25519-dalek key pairs.
Trait Implementations§
Source§impl Blind<X25519> for PublicKey
impl Blind<X25519> for PublicKey
Source§fn blind(&self, csprng: &mut impl CryptoRngCore) -> BlindedPublicKey<X25519>
fn blind(&self, csprng: &mut impl CryptoRngCore) -> BlindedPublicKey<X25519>
Blind a public key with the supplied RNG.
Source§impl<A: Aead + KeyInit, const L: usize> Hinting<X25519, L> for Hint<X25519, A, L>
impl<A: Aead + KeyInit, const L: usize> Hinting<X25519, L> for Hint<X25519, A, L>
Source§fn new(
blinded_public_key: &BlindedPublicKey<X25519>,
message: &[u8; L],
salt: &[u8],
csprng: &mut impl CryptoRngCore,
) -> Result<Self, Error>
fn new( blinded_public_key: &BlindedPublicKey<X25519>, message: &[u8; L], salt: &[u8], csprng: &mut impl CryptoRngCore, ) -> Result<Self, Error>
Create a new
Hint.Source§fn from_blinding_factor_secret(
blinding_factor_secret: &StaticSecret,
blinded_public_key: &BlindedPublicKey<X25519>,
message: &[u8; L],
salt: &[u8],
) -> Result<Self, Error>
fn from_blinding_factor_secret( blinding_factor_secret: &StaticSecret, blinded_public_key: &BlindedPublicKey<X25519>, message: &[u8; L], salt: &[u8], ) -> Result<Self, Error>
Create a new
Hint using a blinding factor secret.Source§fn bytes_length() -> usize
fn bytes_length() -> usize
Return the underlying
Hint’s length when serializedAuto Trait Implementations§
impl Freeze for X25519
impl RefUnwindSafe for X25519
impl Send for X25519
impl Sync for X25519
impl Unpin for X25519
impl UnwindSafe for X25519
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