Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
83d5080e
Commit
83d5080e
authored
Feb 22, 2016
by
Thomas Müller
Browse files
Merge pull request #22581 from owncloud/fix_interface
since 9.0 we have a additional parameter $position used for integrity…
parents
d45314be
33ec70d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/public/encryption/iencryptionmodule.php
View file @
83d5080e
...
...
@@ -71,29 +71,41 @@ interface IEncryptionModule {
* buffer.
*
* @param string $path to the file
* @param string $position id of the last block (looks like "<Number>end")
*
* @return string remained data which should be written to the file in case
* of a write operation
*
* @since 8.1.0
* @since 9.0.0 parameter $position added
*/
public
function
end
(
$path
);
public
function
end
(
$path
,
$position
);
/**
* encrypt data
*
* @param string $data you want to encrypt
* @param string $position position of the block we want to encrypt (starts with '0')
*
* @return mixed encrypted data
*
* @since 8.1.0
* @since 9.0.0 parameter $position added
*/
public
function
encrypt
(
$data
);
public
function
encrypt
(
$data
,
$position
);
/**
* decrypt data
*
* @param string $data you want to decrypt
* @param string $position position of the block we want to decrypt
*
* @return mixed decrypted data
*
* @since 8.1.0
* @since 9.0.0 parameter $position added
*/
public
function
decrypt
(
$data
);
public
function
decrypt
(
$data
,
$position
);
/**
* update encrypted file, e.g. give additional users access to the file
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment