anon
1876a53a94
add stuff
2023-10-26 18:08:16 +03:00
Jonas Herzig
6c0223d8a4
Merge pull request #2 from Skgland/replace-rust-crypto2
...
replace unmaintained rust-crypto crate
2021-01-17 16:37:11 +01:00
Skgland
3f56dd92c8
fix sorting of non-optional dependencies
2020-11-30 11:19:52 +01:00
Skgland
2fe70b3900
replace unmaintained rust-crypto crate
...
using the `RustCrypto` crates instead of the `rust-crypto` crate as
mentioned in the `RustCrypto GitHub Org` Section of [this
Advisory](https://rustsec.org/advisories/RUSTSEC-2016-0005 )
2020-11-09 13:27:00 +01:00
Jonas Herzig
1444b3c063
Update rfc5764 to use futures 0.3 AsyncRead/Write
...
With futures 0.3, the AsyncRead/Write traits are no longer marker traits, so we
can no longer easily support both, non-blocking and blocking APIs.
The code can however still be used in a blocking way buy just calling
`now_or_never` on any futures it returns, which will block if the underlying
streams are blocking.
2020-04-05 14:25:14 +02:00
Jonas Herzig
3510417ce4
Rust 2018 edition
2020-04-04 01:08:43 +02:00
Jonas Herzig
ee8be93855
Fix panic in SRTP crypto when the most significant byte of IV is 0
2018-12-10 21:08:51 +01:00
Jonas Herzig
a2cfaf2d3e
Fix writing of SdesChunk (length is 8, not 16 bits)
2018-12-10 20:38:33 +01:00
Jonas Herzig
0a8ec94f7d
Add DTLS-SRTP support (rfc5764)
...
https://tools.ietf.org/html/rfc5764
2018-12-02 18:47:24 +01:00
Jonas Herzig
6e21908845
Support adding not-yet-known SSRCs to an SRTP session
2018-12-02 13:53:47 +01:00
Jonas Herzig
f8097adbae
Cleanup unused variables
2018-11-18 03:27:36 +01:00
Jonas Herzig
ad85e55b66
Support multiple SSRCs on the same SRT(C)P session
2018-11-18 03:21:50 +01:00
Jonas Herzig
5a770f79c3
Use ROC of current packet, not last one, for SRTP signatures
2018-11-12 23:01:06 +01:00
Jonas Herzig
a554f58696
Add test for production SRTP sample with rollover
2018-11-12 23:01:06 +01:00
Jonas Herzig
cad2e1d846
Re-export Rtp/RtcpPacketWriter from rfc3350/mod.rs
2018-11-12 22:22:44 +01:00
Jonas Herzig
bda8ce2295
Add SRT(C)P replay protection
2018-11-09 13:35:04 +01:00
Jonas Herzig
aa4927724b
Support writing of SRTP and SRTCP packets
2018-11-09 02:35:09 +01:00
Jonas Herzig
6b240df1f2
Merge SrtpContext and SrtcpContext into Context<Protocol>
...
Primarily to reduce duplication of code
2018-11-09 02:31:43 +01:00
Jonas Herzig
0b5229d36f
Support key_derivation_rate and fix update_session_keys only working by accident
2018-11-08 17:15:15 +01:00
Jonas Herzig
febcc71ac8
Fix SRTCP packet index being 47 bits (it's 31 bits)
2018-11-08 17:13:50 +01:00
Jonas Herzig
1a1d40a175
Add method for estimating SRTP packet indices
2018-11-08 17:06:19 +01:00
Jonas Herzig
2cce4ef3bb
Allow configuration of the authentication algorithm used in rfc3711
...
Only one algorithm is currently implemented. This is mainly for
future-proofing.
2018-11-08 14:00:03 +01:00
Takeru Ohta
5ac9928255
Add LICENSE
2018-11-05 20:27:09 +09:00
Takeru Ohta
4cbba5358c
Apply rustfmt-0.99.4
2018-11-05 20:26:45 +09:00
Takeru Ohta
88b02115fc
Refactor AES decription code
2017-03-27 10:45:20 -07:00
Takeru Ohta
e766d719b7
Fix SRTP packet decryption bug
2017-03-27 09:37:22 -07:00
Takeru Ohta
26581d8744
Add SRTP server example
2017-03-27 09:26:24 -07:00
Takeru Ohta
523d224a05
Add `RtcpCompoundPacket`
2017-03-26 08:23:57 -07:00
Takeru Ohta
79cab9d2c5
Add rfc3711 module
2017-03-26 06:00:12 -07:00
Takeru Ohta
77ad3db255
Add `ReadPacket` and `WritePacket` traits
2017-03-26 03:12:29 -07:00
Takeru Ohta
26cb2783bc
Add `supports_type` trait method
2017-03-26 02:13:56 -07:00
Takeru Ohta
66ec4f0743
Add rfc4585 module
2017-03-26 16:08:31 +09:00
Takeru Ohta
1662c3392b
Implement `RtpPacket` and `RtcpPacket` traits
2017-03-26 15:09:27 +09:00
Takeru Ohta
3f755e781d
Add rfc5761 module
2017-03-26 14:54:39 +09:00
Takeru Ohta
0a6553f965
Add `RtcpPacket`
2017-03-26 04:07:56 +09:00
Takeru Ohta
0b71263817
Initial commit
2017-03-25 23:26:29 +09:00