Added notes where to reuse old keys instead of generating new ones

remotes/origin/stable6
Sam Tuke 12 years ago
parent 953319a2c3
commit 0bc7d3bcf8
  1. 1
      apps/files_encryption/lib/stream.php
  2. 1
      apps/files_encryption/lib/util.php

@ -318,6 +318,7 @@ class Stream {
// one), save the newly generated keyfile
if ( ! $this->getKey() ) {
// TODO: Reuse the keyfile, it it exists, instead of making a new one
$this->keyfile = Crypt::generateKey();
$this->publicKey = Keymanager::getPublicKey( $this->rootView, $this->userId );

@ -692,6 +692,7 @@ class Util {
// Save the recrypted key to it's owner's keyfiles directory
// Save new sharekeys to all necessary user directory
// TODO: Reuse the keyfile, it it exists, instead of making a new one
if (
! Keymanager::setFileKey( $this->view, $filePath, $fileOwner, $multiEncKey['data'] )
|| ! Keymanager::setShareKeys( $this->view, $filePath, $multiEncKey['keys'] )

Loading…
Cancel
Save