Browse Source

The encryption decrypt position can be int or string

The public API said string, internally we treated it as int. In reality
both are used. Let's reflect that in the documented argument type.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/23410/head
Christoph Wurst 5 years ago
parent
commit
b2de9a6f9e
No known key found for this signature in database GPG Key ID: CC42AC2A7F0E56D8
  1. 2
      apps/encryption/lib/Crypto/Crypt.php
  2. 2
      apps/encryption/lib/Crypto/Encryption.php
  3. 2
      lib/public/Encryption/IEncryptionModule.php

2
apps/encryption/lib/Crypto/Crypt.php

@ -459,7 +459,7 @@ class Crypt {
* @param string $passPhrase
* @param string $cipher
* @param int $version
* @param int $position
* @param int|string $position
* @return string
* @throws DecryptionFailedException
*/

2
apps/encryption/lib/Crypto/Encryption.php

@ -360,7 +360,7 @@ class Encryption implements IEncryptionModule {
* decrypt data
*
* @param string $data you want to decrypt
* @param int $position
* @param int|string $position
* @return string decrypted data
* @throws DecryptionFailedException
*/

2
lib/public/Encryption/IEncryptionModule.php

@ -102,7 +102,7 @@ interface IEncryptionModule {
* decrypt data
*
* @param string $data you want to decrypt
* @param string $position position of the block we want to decrypt
* @param int|string $position position of the block we want to decrypt
*
* @return mixed decrypted data
*

Loading…
Cancel
Save