From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 4270644ED4 for ; Wed, 28 Dec 2022 14:27:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C860E68B7DE; Wed, 28 Dec 2022 16:27:41 +0200 (EET) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0280B68B3E9 for ; Wed, 28 Dec 2022 16:27:35 +0200 (EET) Received: by mail-ej1-f46.google.com with SMTP id u19so38664504ejm.8 for ; Wed, 28 Dec 2022 06:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=wDu1xNx2JK4WiG53ApernkfUMoCN8+I3YoROfN7vlbo=; b=YawF+rhCu4gwVP7f9fx+hgKogEvW7WXUxWhkw/lbj6QdhbVzMwfAsupXNnhjfTASRf jzvgCHeQlEkfN5cUqmffVsajtkqnVeYpetqXaUZ83pcmPmVUQnC4EDU/7gtzCurq0fPc mT+aiHHWpzDgErl3xTbI6+W81J+0twk5/1TsSanHWtLOhLa85eo3UxaHVhVuqgDkU+BQ n4QGh9e2jKcjPUogMvZLXBF3shvWuLYcJy7RekxxqqIRsmX+Gqa4lCBDnVDgTnS6GNIb 9HbDbkH0h0PZa2O9SOo7OPh9yllvXqLnsoybFv/+xC/RCc5VUffuRq+3SQFoDVszFoyN zfYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wDu1xNx2JK4WiG53ApernkfUMoCN8+I3YoROfN7vlbo=; b=0NwAmfoSQ438QAfXeKi9X1Ba6Hiu/8W8e1CyZZRyC5LrqjIugH1tuY5h74PYzwqmhZ /h2XcXKcMzEejuZ0QPnVUHh9mJPLRRNLbjU8S8imImc8JpR+lbFVYEfmiVFQv/XSP8Is YGc7yVP3CQTWXmRK/6nRwYCVJ76EBlSMKFq25R0xljfRpdKgaPxEv6Mw5YNMWpO5zKxF jwgrnOnz2bfFx2ZTsp9r8EnnpLPsYofI6zW7oqsuWavUT2PQ946GbO9vyek2yNjEZIgj zpdN5NaebRbds+6ze5GfloFnIqaeiN47KCOAwcnkze79veTExAF28ztRx8tDAnrq5kZy ETcg== X-Gm-Message-State: AFqh2kqZsDJJ8vP7Yl0HbaUnS7wK1TRTcSvo2uqNesDAWb5K4YJY+nc7 ANVhEf1B+wpJWN/EmUmNV4o4h56DASrZXVLVfCqRQbS+ X-Google-Smtp-Source: AMrXdXuAmWzi9qHILj6U4MOEMN+Y7K5ec2jzJWVJwDt10VbGfk14og3WAteIMxIco9PEpVqKSg8zR0UxiZIVf8an89k= X-Received: by 2002:a17:906:50c:b0:836:9bcf:1702 with SMTP id j12-20020a170906050c00b008369bcf1702mr3265978eja.509.1672237654878; Wed, 28 Dec 2022 06:27:34 -0800 (PST) MIME-Version: 1.0 References: <20221227214033.GS3806951@pb2> In-Reply-To: From: "Ronald S. Bultje" Date: Wed, 28 Dec 2022 09:27:23 -0500 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] Would a crypto file be acceptable? X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Hi Mark, On Tue, Dec 27, 2022 at 5:47 PM Mark Gaiser wrote: > The tricky part here is for anyone using this scheme to play this file. > Right now i'm doing this with a command line like: > ffplay crypto://encrypted_file -decryption_key $AES_KEY -decryption_iv > $AES_IV > > For brevity's sake, consider the "metadata" file named above to be the > _encrypted_ version of the ".crypto" file i'm proposing. > [..] > There's many ways to do this key part. My intention for now was to keep it > "simple" and have the key in the file itself. > There's multiple things going on here, and you're sort of putting them all together to solve all problems at once: - a mechanism for crypto-data exchange in your application or server/client protocol - a way for your application to pass the crypto-data to the underlying library I think once you split these out as separate entities, you'll see that you don't necessarily need the same solution for it. The second one, in particular, is already solved in FFmpeg, and this is called an AVOption. (And the first question is really out of FFmpeg scope anyway.) Have you considered simply using AVOption, and/or is there a reason AVOption isn't a suitable solution for your use case? Ronald _______________________________________________ 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".