A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/rustls/0.22.3/rustls/crypto/cipher/trait.Tls13AeadAlgorithm.html below:

Tls13AeadAlgorithm in rustls::crypto::cipher - Rust

pub trait Tls13AeadAlgorithm: Send + Sync {
    // Required methods
    fn encrypter(&self, key: AeadKey, iv: Iv) -> Box<dyn MessageEncrypter>;
    fn decrypter(&self, key: AeadKey, iv: Iv) -> Box<dyn MessageDecrypter>;
    fn key_len(&self) -> usize;
    fn extract_keys(
        &self,
        key: AeadKey,
        iv: Iv
    ) -> Result<ConnectionTrafficSecrets, UnsupportedOperationError>;
}
Expand description

Factory trait for building MessageEncrypter and MessageDecrypter for a TLS1.3 cipher suite.

source

Build a MessageEncrypter for the given key/iv.

source

Build a MessageDecrypter for the given key/iv.

source

The length of key in bytes required by encrypter() and decrypter().

Convert the key material from key/iv, into a ConnectionTrafficSecrets item.

May return UnsupportedOperationError if the AEAD algorithm is not a supported variant of ConnectionTrafficSecrets.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4