]> source.dussan.org Git - nextcloud-server.git/commitdiff
The encryption decrypt position can be int or string 23410/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 13 Oct 2020 08:51:22 +0000 (10:51 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 13 Oct 2020 08:51:22 +0000 (10:51 +0200)
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>
apps/encryption/lib/Crypto/Crypt.php
apps/encryption/lib/Crypto/Encryption.php
lib/public/Encryption/IEncryptionModule.php

index 6559deb9400506c2ff51fb8de4c1a4f3c4e26452..57aecf956338833403265bc1bbb9324215522091 100644 (file)
@@ -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
         */
index 263e9a15df89707c89802a571e077ce8c82bccc5..6fa388e887594eb8ed373296905262f1cafe3a53 100644 (file)
@@ -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
         */
index 7d306d3c2fedc68d755d5cc6d003407dee360f42..050cdf2555b960f426b8e2ab3715c8a53a357684 100644 (file)
@@ -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
         *