private void uploadMasterFile(File masterFile, TransferManager transferManager) throws Exception { transferManager.upload(masterFile, new MasterRemoteFile()); }
private SaltedSecretKey askPasswordAndCreateMasterKey() throws CipherException, StorageException { File tmpMasterFile = downloadFile(transferManager, new MasterRemoteFile()); MasterTO masterTO = readMasterFile(tmpMasterFile); tmpMasterFile.delete(); String masterKeyPassword = getOrAskPassword(); byte[] masterKeySalt = masterTO.getSalt(); return createMasterKeyFromPassword(masterKeyPassword, masterKeySalt); // This takes looong! }