\r
$privateKey = Crypt::symmetricDecryptFileContent( $encryptedKey, $params['password'] );\r
\r
- $session = new Session( $view );\r
+ $session = new \OCA\Encryption\Session( $view );\r
\r
$session->setPrivateKey( $privateKey, $params['uid'] );\r
\r
\r
$view = new \OC_FilesystemView('/');\r
\r
- $session = new Session($view);\r
+ $session = new \OCA\Encryption\Session($view);\r
\r
// Get existing decrypted private key\r
$privateKey = $session->getPrivateKey();\r
if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {\r
\r
$view = new \OC_FilesystemView('/');\r
- $session = new Session($view);\r
+ $session = new \OCA\Encryption\Session($view);\r
$userId = \OCP\User::getUser();\r
$util = new Util($view, $userId);\r
$path = $util->fileIdToPath($params['itemSource']);\r
\OC_FileProxy::$enabled = false;\r
\r
$view = new \OC_FilesystemView('/');\r
- $session = new Session($view);\r
+ $session = new \OCA\Encryption\Session($view);\r
$userId = \OCP\User::getUser();\r
$util = new Util( $view, $userId );\r
\r
$userId = \OCP\USER::getUser();
$view = new \OC_FilesystemView( '/' );
$util = new Util( $view, $userId );
- $session = new Session( $view );
+ $session = new \OCA\Encryption\Session( $view );
$privateKey = $session->getPrivateKey();
$filePath = $util->stripUserFilesPath( $path );
// Set the filesize for userland, before encrypting
\OC_FileProxy::$enabled = false;
// init session
- $session = new Session( $view );
+ $session = new \OCA\Encryption\Session( $view );
// If data is a catfile
if (
\OC_FileProxy::$enabled = false;
$view = new \OC_FilesystemView( '/' );
- $session = new Session( $view );
+ $session = new \OCA\Encryption\Session( $view );
$userId = \OCP\User::getUser();
$util = new Util( $view, $userId );
// If a keyfile already exists
if ( $this->encKeyfile ) {
- $session = new Session( $this->rootView );
+ $session = new \OCA\Encryption\Session( $this->rootView );
$privateKey = $session->getPrivateKey( $this->userId );
if ($item['type'] == 'dir') {
$this->addRecoveryKeys($filePath . '/');
} else {
- $session = new Session(new \OC_FilesystemView('/'));
+ $session = new \OCA\Encryption\Session(new \OC_FilesystemView('/'));
$sharingEnabled = \OCP\Share::isEnabled();
$file = substr($filePath, 0, -4);
$usersSharing = $this->getSharingUsersArray($sharingEnabled, $file);
$shareKey = Encryption\Keymanager::getShareKey($this->view, $this->userId, $filename);
// get session
- $session = new Encryption\Session($this->view);
+ $session = new \OCA\Encryption\Session($this->view);
// get private key
$privateKey = $session->getPrivateKey($this->userId);
$shareKey = Encryption\Keymanager::getShareKey($this->view, $this->userId, $filename);
// get session
- $session = new Encryption\Session($this->view);
+ $session = new \OCA\Encryption\Session($this->view);
// get private key
$privateKey = $session->getPrivateKey($this->userId);