Added notes where to reuse old keys instead of generating new ones
This commit is contained in:
parent
953319a2c3
commit
0bc7d3bcf8
|
@ -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…
Reference in New Issue