import org.signal.libsignal.zkgroup.InvalidInputException;
import org.signal.libsignal.zkgroup.profiles.ProfileKey;
import org.whispersystems.signalservice.api.account.PreKeyCollection;
+import org.whispersystems.signalservice.api.backup.MediaRootBackupKey;
import org.whispersystems.signalservice.api.kbs.MasterKey;
import java.security.SecureRandom;
return MasterKey.createNew(secureRandom);
}
+ public static MediaRootBackupKey createMediaRootBackupKey() {
+ return new MediaRootBackupKey(getSecretBytes(32));
+ }
+
public static byte[] createRawStorageId() {
return getSecretBytes(16);
}