syntax = "proto3";

message TwonlySafeBackupContent {
  string secure_storage_json = 1;
  bytes  twonly_database     = 2;
}

message TwonlySafeBackupEncrypted {
  bytes mac         = 1;
  bytes nonce       = 2;
  bytes cipher_text = 3;
}

message CloudMediaBackupEncrypted {
  string addition = 1;
  bytes encrypted_media_key = 2; // Generated by Rust MainKey
  bytes media_nonce = 3;         // Nonce used for ChaCha20
  bytes media_ciphertext = 4;    // The actual media_ciphertext (including the Poly1305 MAC)
}