Home
last modified time | relevance | path

Searched refs:content_type (Results 1 – 18 of 18) sorted by relevance

/webrtc/dtls/src/
H A Dcontent.rs41 pub fn content_type(&self) -> ContentType { in content_type() method
43 Content::ChangeCipherSpec(c) => c.content_type(), in content_type()
44 Content::Alert(c) => c.content_type(), in content_type()
45 Content::Handshake(c) => c.content_type(), in content_type()
46 Content::ApplicationData(c) => c.content_type(), in content_type()
68 pub fn unmarshal<R: Read>(content_type: ContentType, reader: &mut R) -> Result<Self> { in unmarshal()
69 match content_type { in unmarshal()
H A Dlistener.rs37 let content_type = h.content_type; in listen() localVariable
38 Box::pin(async move { content_type == ContentType::Handshake }) in listen()
H A Dapplication_data.rs17 pub fn content_type(&self) -> ContentType { in content_type() method
/webrtc/dtls/src/record_layer/
H A Drecord_layer_header.rs39 pub content_type: ContentType, field
52 writer.write_u8(self.content_type as u8)?; in marshal()
66 let content_type = reader.read_u8()?.into(); in unmarshal() localVariable
83 content_type, in unmarshal()
H A Dmod.rs42 content_type: content.content_type(), in new()
60 let content = match record_layer_header.content_type { in unmarshal()
H A Drecord_layer_test.rs84 content_type: ContentType::ChangeCipherSpec, in test_record_layer_round_trip()
/webrtc/dtls/src/crypto/
H A Dcrypto_cbc.rs66 h.content_type, in encrypt()
95 if h.content_type == ContentType::ChangeCipherSpec { in decrypt()
114 h.content_type, in decrypt()
H A Dcrypto_test.rs118 content_type: ContentType::ApplicationData, in test_ccm_encryption_and_decryption()
H A Dcrypto_gcm.rs89 if h.content_type == ContentType::ChangeCipherSpec { in decrypt()
H A Dcrypto_ccm.rs149 if h.content_type == ContentType::ChangeCipherSpec { in decrypt()
H A Dmod.rs510 additional_data[8] = h.content_type as u8; in generate_aead_additional_data()
/webrtc/dtls/src/change_cipher_spec/
H A Dmod.rs19 pub fn content_type(&self) -> ContentType { in content_type() method
/webrtc/dtls/src/prf/
H A Dmod.rs296 content_type: ContentType, in prf_mac()
306 msg[8] = content_type as u8; in prf_mac()
/webrtc/dtls/src/fragment_buffer/
H A Dmod.rs52 if record_layer_header.content_type != ContentType::Handshake { in push()
/webrtc/dtls/src/alert/
H A Dmod.rs157 pub fn content_type(&self) -> ContentType { in content_type() method
/webrtc/dtls/src/handshake/
H A Dmod.rs182 pub fn content_type(&self) -> ContentType { in content_type() method
/webrtc/dtls/src/conn/
H A Dmod.rs662 content_type: p.record.record_layer_header.content_type, in process_handshake_packet()
H A Dconn_test.rs2090 h.content_type, in test_protocol_version_validation()
2232 h.content_type, in test_protocol_version_validation()