summaryrefslogtreecommitdiffstats
path: root/libavformat/srtp.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '8a4f26206d7914eaf2903954ce97cb7686933382'Michael Niedermayer2013-01-211-2/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | * commit '8a4f26206d7914eaf2903954ce97cb7686933382': dsputil: remove butterflies_float_interleave. srtp: Move a variable to a local scope srtp: Add tests for the crypto suite with 32/80 bit HMAC Conflicts: libavcodec/x86/dsputil.asm libavcodec/x86/dsputil_mmx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * srtp: Move a variable to a local scopeMartin Storsjö2013-01-211-2/+2
| | | | | | | | | | | | This simplifies the code slightly. Signed-off-by: Martin Storsjö <martin@martin.st>
| * srtp: Add tests for the crypto suite with 32/80 bit HMACMartin Storsjö2013-01-211-0/+32
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '3ef6d22e1ba544ab37c73e8fc61382f13aac250f'Michael Niedermayer2013-01-211-24/+14
|\ \ | |/ | | | | | | | | | | | | * commit '3ef6d22e1ba544ab37c73e8fc61382f13aac250f': srtp: cosmetics: Use fewer lines for the test vectors srtp: Don't require more input data than what actually is needed Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * srtp: cosmetics: Use fewer lines for the test vectorsMartin Storsjö2013-01-211-22/+8
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * srtp: Don't require more input data than what actually is neededMartin Storsjö2013-01-211-2/+6
| | | | | | | | | | | | | | | | | | | | The theoretical minimum for a (not totally well formed) RTCP packet is 8 bytes, so we shouldn't require 12 bytes as minimum input. Also return AVERROR_INVALIDDATA instead of 0 if something that is not a proper packet is given. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'a2a991b2ddf951454ffceb7bcedc9db93e26c610'Michael Niedermayer2013-01-211-15/+29
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit 'a2a991b2ddf951454ffceb7bcedc9db93e26c610': srtp: Improve the minimum encryption buffer size check srtp: Add support for a few DTLS-SRTP related crypto suites Conflicts: libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * srtp: Improve the minimum encryption buffer size checkMartin Storsjö2013-01-211-6/+10
| | | | | | | | | | | | | | This clarifies where the limit number comes from, and only requires exactly as much padding space as will be needed. Signed-off-by: Martin Storsjö <martin@martin.st>
| * srtp: Add support for a few DTLS-SRTP related crypto suitesMartin Storsjö2013-01-211-11/+21
| | | | | | | | | | | | | | | | The main difference to the existing suites from RFC 4568 is that the version with a 32 bit HMAC still uses 80 bit HMAC for RTCP packets. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'f53490cc0c809975f8238d5a9edbd26f83bd2f84'Michael Niedermayer2013-01-211-1/+14
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * commit 'f53490cc0c809975f8238d5a9edbd26f83bd2f84': rtpdec/srtp: Handle CSRC fields being present rtpdec: Check the return value from av_new_packet ac3dec: fix non-optimal dithering of zero bit mantissas Conflicts: libavcodec/ac3dec.c libavformat/rtpdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rtpdec/srtp: Handle CSRC fields being presentMartin Storsjö2013-01-211-1/+14
| | | | | | | | | | | | This is untested in practice, but follows the spec. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '977d4a3b8a2dbc2fb5e747c7072485016c9cdfaa'Michael Niedermayer2013-01-161-2/+2
|\ \ | |/ | | | | | | | | | | | | * commit '977d4a3b8a2dbc2fb5e747c7072485016c9cdfaa': rtpdec_mpeg4: Check the return value from malloc srtp: Mark a few variables as uninitialized Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * srtp: Mark a few variables as uninitializedMartin Storsjö2013-01-151-2/+2
| | | | | | | | | | | | | | This squelches false positive warnings (with gcc) about them being used uninitalized. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '0eecafc948b74c247ebbc59f18f508db5d590d0b'Michael Niedermayer2013-01-161-0/+129
|\ \ | |/ | | | | | | | | | | | | | | * commit '0eecafc948b74c247ebbc59f18f508db5d590d0b': configure: Make the new srtp protocol depend on the rtp protocol lavf: Add a fate test for the SRTP functions lavu: Add a fate test for the HMAC API Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: Add a fate test for the SRTP functionsMartin Storsjö2013-01-151-0/+129
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'ab2ad8bd56882c0ea160b154e8b836eb71abc49d'Michael Niedermayer2013-01-151-4/+4
|/ | | | | | | | | | | | * commit 'ab2ad8bd56882c0ea160b154e8b836eb71abc49d': lavf: Add functions for SRTP decryption/encryption lavu: Add an API for calculating HMAC (RFC 2104) Conflicts: doc/APIchanges libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavf: Add functions for SRTP decryption/encryptionMartin Storsjö2013-01-151-0/+293
This supports the AES_CM_128_HMAC_SHA1_80 and AES_CM_128_HMAC_SHA1_32 cipher suites (from RFC 4568) at the moment. The main missing features are replay protection (which can be added later without changing the internal API), and the F8 and null ciphers. Signed-off-by: Martin Storsjö <martin@martin.st>
OpenPOWER on IntegriCloud