pub(crate) trait NtorServerKeys {
// Required methods
fn ident(&self) -> &RsaIdentity;
fn public_key(&self) -> &PublicKey;
fn secret_key(&self) -> &StaticSecret;
// Provided method
fn matches_pk(&self, pk: &PublicKey) -> Choice { ... }
}Expand description
An object holding the keys necessary for a server-side ntor handshake.
Required Methods§
Sourcefn ident(&self) -> &RsaIdentity
fn ident(&self) -> &RsaIdentity
The server’s identity.
Sourcefn public_key(&self) -> &PublicKey
fn public_key(&self) -> &PublicKey
The server’s public key.
Sourcefn secret_key(&self) -> &StaticSecret
fn secret_key(&self) -> &StaticSecret
The server’s secret key.
Provided Methods§
Sourcefn matches_pk(&self, pk: &PublicKey) -> Choice
fn matches_pk(&self, pk: &PublicKey) -> Choice
Return true if the curve25519 public key in self matches pk.
Used for looking up keys in an array.
This should not be implemented manually.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".