pub struct TlsCipherSuite {
pub name: &'static str,
pub id: TlsCipherSuiteID,
pub kx: TlsCipherKx,
pub au: TlsCipherAu,
pub enc: TlsCipherEnc,
pub enc_mode: TlsCipherEncMode,
pub enc_size: u16,
pub mac: TlsCipherMac,
pub mac_size: u16,
pub prf: TlsPRF,
}Expand description
TLS Ciphersuite
A CipherSuite is a set of algorithm and parameters used to secure a network connection.
Fields§
§name: &'static strThe IANA name of this ciphersuite
id: TlsCipherSuiteIDThe 16-bit identifier, provided by IANA, for this ciphersuite
kx: TlsCipherKxThe Key Exchange method for this ciphersuite
au: TlsCipherAuThe Authentication method for this ciphersuite
enc: TlsCipherEncEncryption cipher
enc_mode: TlsCipherEncModeEncryption mode
enc_size: u16Key size of the encryption, in bits
mac: TlsCipherMacMessage Authentication Code (MAC) algorithm
mac_size: u16Message Authentication Code (MAC) length
prf: TlsPRFPseudo-Random Function, if specific
Implementations§
Source§impl TlsCipherSuite
impl TlsCipherSuite
Sourcepub fn from_id(id: u16) -> Option<&'static TlsCipherSuite>
pub fn from_id(id: u16) -> Option<&'static TlsCipherSuite>
Attempt to get reference on TlsCipherSuite identified by id.
Sourcepub fn from_name(name: &str) -> Option<&'static TlsCipherSuite>
pub fn from_name(name: &str) -> Option<&'static TlsCipherSuite>
Attempt to get reference on TlsCipherSuite identified by name.
Sourcepub const fn enc_key_size(&self) -> usize
pub const fn enc_key_size(&self) -> usize
Get the key of this ciphersuite encryption algorithm, in bytes
Sourcepub const fn enc_block_size(&self) -> usize
pub const fn enc_block_size(&self) -> usize
Get the block size of this ciphersuite encryption algorithm, in bytes
Sourcepub const fn mac_length(&self) -> usize
pub const fn mac_length(&self) -> usize
Get the length of this ciphersuite MAC algorithm, in bytes
Trait Implementations§
Source§impl Clone for TlsCipherSuite
impl Clone for TlsCipherSuite
Source§fn clone(&self) -> TlsCipherSuite
fn clone(&self) -> TlsCipherSuite
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more