I need to download a large video file and save it to the hard drive. Then I need to play this video file using a XAML media element. But the file must be encrypted using AES 256 algorithm and encryption key. An unencrypted data must not be written to the hard drive at any time.
E.g. I can have a stream that can transform unencrypted data to a file and vice-versa.
WinRT has an API that allows me to encrypt buffers. But if the file is large this will not work. WinRT has an API that allows to encrypt streams DataProtectionProvider. But there is a magical protectionDescriptor parameter and I did not found an information about how to specify an algorithm and a key.
What I was able to do is to implement IRandomAccessStream in C#. It works but it is slow.
Please do not provide answers that are not related to WinRT platform. Any other help would be appreciated.