+#ifdef DCPOMATIC_SWAROOP
+ FILE* f = fopen_boost (path("private"), "wb");
+ if (!f) {
+ throw FileError ("Could not open file for writing", path("private"));
+ }
+ shared_array<uint8_t> iv = dcpomatic::random_iv ();
+ dcp::Data encrypted_key = dcpomatic::encrypt (_signer_chain->key().get(), key, iv);
+ fwrite (encrypted_key.data().get(), encrypted_key.data().size(), 1, f);
+ fclose (f);
+#else