Trait webrtc_dtls::cipher_suite::CipherSuite [−][src]
pub trait CipherSuite { fn to_string(&self) -> String; fn id(&self) -> CipherSuiteId; fn certificate_type(&self) -> ClientCertificateType; fn hash_func(&self) -> CipherSuiteHash; fn is_psk(&self) -> bool; fn is_initialized(&self) -> bool; fn init(
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>; fn encrypt(
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>; fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>, Error>; }
Required methods
fn to_string(&self) -> String
[src]
fn id(&self) -> CipherSuiteId
[src]
fn certificate_type(&self) -> ClientCertificateType
[src]
fn hash_func(&self) -> CipherSuiteHash
[src]
fn is_psk(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]
fn init(
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
[src]
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
fn encrypt(
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>, Error>
[src]
Implementors
impl CipherSuite for CipherSuiteAes128Ccm
[src]
impl CipherSuite for CipherSuiteAes128Ccm
[src]fn to_string(&self) -> String
[src]
fn id(&self) -> CipherSuiteId
[src]
fn certificate_type(&self) -> ClientCertificateType
[src]
fn hash_func(&self) -> CipherSuiteHash
[src]
fn is_psk(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]
fn init(
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
[src]
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
fn encrypt(
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>, Error>
[src]
impl CipherSuite for CipherSuiteAes128GcmSha256
[src]
impl CipherSuite for CipherSuiteAes128GcmSha256
[src]fn to_string(&self) -> String
[src]
fn id(&self) -> CipherSuiteId
[src]
fn certificate_type(&self) -> ClientCertificateType
[src]
fn hash_func(&self) -> CipherSuiteHash
[src]
fn is_psk(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]
fn init(
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
[src]
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
fn encrypt(
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>, Error>
[src]
impl CipherSuite for CipherSuiteAes256CbcSha
[src]
impl CipherSuite for CipherSuiteAes256CbcSha
[src]fn to_string(&self) -> String
[src]
fn id(&self) -> CipherSuiteId
[src]
fn certificate_type(&self) -> ClientCertificateType
[src]
fn hash_func(&self) -> CipherSuiteHash
[src]
fn is_psk(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]
fn init(
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
[src]
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
fn encrypt(
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
fn decrypt(&self, input: &[u8]) -> Result<Vec<u8>, Error>
[src]
impl CipherSuite for CipherSuiteTlsPskWithAes128GcmSha256
[src]
impl CipherSuite for CipherSuiteTlsPskWithAes128GcmSha256
[src]fn to_string(&self) -> String
[src]
fn id(&self) -> CipherSuiteId
[src]
fn certificate_type(&self) -> ClientCertificateType
[src]
fn hash_func(&self) -> CipherSuiteHash
[src]
fn is_psk(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]
fn init(
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
[src]
&mut self,
master_secret: &[u8],
client_random: &[u8],
server_random: &[u8],
is_client: bool
) -> Result<(), Error>
fn encrypt(
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>
[src]
&self,
pkt_rlh: &RecordLayerHeader,
raw: &[u8]
) -> Result<Vec<u8>, Error>