• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AVCaptureMovieFileOutput + encryption
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AVCaptureMovieFileOutput + encryption


  • Subject: Re: AVCaptureMovieFileOutput + encryption
  • From: Carl Hoefs <email@hidden>
  • Date: Fri, 23 Jun 2017 10:22:43 -0700

> On Jun 22, 2017, at 11:30 PM, Jens Alfke <email@hidden> wrote:
>
>> On Jun 22, 2017, at 5:18 PM, Carl Hoefs <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>> Is it possible to add encryption to this chain, so the movie file is written
>> out encrypted?
>
> I’ve never seen any crypto stuff in AVFoundation (but it’s been a few years.)
> You’ll probably need to hook something in to run your own callbacks, and then
> write callbacks to do the encryption (e.g. using CommonCrypto or
> SecTransform.)
>
> (Warning: It’s easy to shoot yourself in the foot using crypto primitives,
> and end up with something that’s trivially breakable. For example, most block
> ciphers like AES have the “fun” property that if you ever encrypt two
> different messages with the same key and initialization vector, the
> encryption can be broken by XOR’ing the messages.)
>
> (Also, IIRC many media formats require random access during playback. Making
> an encrypted file format with random access capabilities turns out to be
> annoyingly hard; I had to do it a year or so ago.)

Thanks for your insights.  I'm currently recording 1280x720 at 240fps H.264
video on the iPhone, then encrypting the video file as a post-recording step
(using AES256 to be HIPAA-compliant).  At this high frame rate, I'm expecting
that callbacks would not be able to keep up in real time without an
unacceptably high rate of dropped frames.

Having the encryption integrated within the capture / movie file chain would be
ideal (perhaps implemented by utilizing the iPhone's GPU to keep up pace), but
it doesn't sound like iOS supports it at this point.

-Carl

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AVCaptureMovieFileOutput + encryption
      • From: Jens Alfke <email@hidden>
    • Re: AVCaptureMovieFileOutput + encryption
      • From: Steve Bird <email@hidden>
References: 
 >AVCaptureMovieFileOutput + encryption (From: Carl Hoefs <email@hidden>)
 >Re: AVCaptureMovieFileOutput + encryption (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Doubled Pixels
  • Next by Date: Re: AVCaptureMovieFileOutput + encryption
  • Previous by thread: Re: AVCaptureMovieFileOutput + encryption
  • Next by thread: Re: AVCaptureMovieFileOutput + encryption
  • Index(es):
    • Date
    • Thread