#[non_exhaustive]pub struct Encryption {
pub server_keys: Vec<String>,
pub unauthenticated: bool,
pub bind_session: bool,
}Expand description
End-to-end encryption: a session with the server inside the connection, so whatever terminates TLS in between (a proxy, a load balancer) sees nothing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server_keys: Vec<String>The server’s identity public keys (base64 of the uncompressed
point, from the server’s e2e_identity_public_key): its answer must
be signed by one of them.
unauthenticated: boolWithout server_keys: go on with a server that does not sign.
Protects from passive observers only.
bind_session: boolWith Config::signing_key, the session is bound to it (true, the
default): the client proves the key inside the session, and goes on
only once the server confirms the session is bound to that key, as
its token names it (cnf). A token copied on the way then opens
nothing. False for a token that names no key, whose key the server
application binds itself (set_client_key).
Implementations§
Source§impl Encryption
impl Encryption
Sourcepub fn pinned<I, K>(server_keys: I) -> Self
pub fn pinned<I, K>(server_keys: I) -> Self
A session with a server holding one of server_keys.
Sourcepub fn unauthenticated() -> Self
pub fn unauthenticated() -> Self
A session with whatever server answers.