pub trait Tls12AeadAlgorithm: Send + Sync + 'static {
// Required methods
fn encrypter(
&self,
key: AeadKey,
iv: &[u8],
extra: &[u8]
) -> Box<dyn MessageEncrypter>;
fn decrypter(&self, key: AeadKey, iv: &[u8]) -> Box<dyn MessageDecrypter>;
fn key_block_shape(&self) -> KeyBlockShape;
fn extract_keys(
&self,
key: AeadKey,
iv: &[u8],
explicit: &[u8]
) -> Result<ConnectionTrafficSecrets, UnsupportedOperationError>;
}
Expand description
Factory trait for building MessageEncrypter
and MessageDecrypter
for a TLS1.2 cipher suite.
Return a KeyBlockShape
that defines how large the key_block
is and how it is split up prior to calling encrypter()
, decrypter()
and/or extract_keys()
.
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