From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] avformat/mov: add support for multiple decryption keys
Date: Sun, 12 Nov 2023 18:18:46 +0100
Message-ID: <20231112171846.GE3543730@pb2> (raw)
In-Reply-To: <8047ac88-e449-4e46-9527-c4ba407fb38f@guinet.me>
[-- Attachment #1.1: Type: text/plain, Size: 2057 bytes --]
On Sun, Nov 12, 2023 at 06:06:01PM +0100, Adrien Guinet wrote:
> This commit introduces new options to support more than one decryption
> keys:
> * add a decryption_keys option to MOV, that supports a dictionnary of
> KID=>key (in hex), using AV_OPT_TYPE_DICT
> * add the corresponding cenc_decryption_keys option to DASH
>
> Signed-off-by: Adrien Guinet <adrien@guinet.me>
> ---
> doc/demuxers.texi | 12 +++-
> libavformat/dashdec.c | 6 +-
> libavformat/isom.h | 5 +-
> libavformat/mov.c | 80 ++++++++++++++++++----
> tests/fate/mov.mak | 12 ++++
> tests/ref/fate/mov-3elist-encrypted-kid | 57 +++++++++++++++
> tests/ref/fate/mov-frag-encrypted-kid | 57 +++++++++++++++
> tests/ref/fate/mov-tenc-only-encrypted-kid | 57 +++++++++++++++
> 8 files changed, 269 insertions(+), 17 deletions(-)
> create mode 100644 tests/ref/fate/mov-3elist-encrypted-kid
> create mode 100644 tests/ref/fate/mov-frag-encrypted-kid
> create mode 100644 tests/ref/fate/mov-tenc-only-encrypted-kid
>
> diff --git a/doc/demuxers.texi b/doc/demuxers.texi
> index ca1563abb0..9d0ab6025c 100644
> --- a/doc/demuxers.texi
> +++ b/doc/demuxers.texi
> @@ -281,7 +281,11 @@ This demuxer accepts the following option:
> @table @option
> @item cenc_decryption_key
> -16-byte key, in hex, to decrypt files encrypted using ISO Common Encryption
> (CENC/AES-128 CTR; ISO/IEC 23001-7).
> +Default 16-byte key, in hex, to decrypt files encrypted using ISO Common
> Encryption (CENC/AES-128 CTR; ISO/IEC 23001-7).
error: corrupt patch at line 51
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-11-12 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-12 17:06 Adrien Guinet
2023-11-12 17:18 ` Michael Niedermayer [this message]
2023-11-13 8:35 ` Adrien Guinet
2023-11-13 8:40 Adrien Guinet
2024-08-01 0:53 ` Kacper Michajlow
2024-08-01 17:30 ` Michael Niedermayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231112171846.GE3543730@pb2 \
--to=michael@niedermayer.cc \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git