aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Security
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-14 12:47:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-14 12:47:35 +0100
commitbe5c050acc9f9dffa6a28f04822f5f1fd7e73127 (patch)
tree084209d3749416be5212e39ae3854631cf44dcfa /lib/public/Security
parentfef51895c2689275805bc166bc3f5be95a836b35 (diff)
downloadnextcloud-server-be5c050acc9f9dffa6a28f04822f5f1fd7e73127.tar.gz
nextcloud-server-be5c050acc9f9dffa6a28f04822f5f1fd7e73127.zip
Throw exception if decryption fails
For #11868 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Security')
-rw-r--r--lib/public/Security/ICrypto.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/Security/ICrypto.php b/lib/public/Security/ICrypto.php
index ef5bd2bf7c9..3e17d461b64 100644
--- a/lib/public/Security/ICrypto.php
+++ b/lib/public/Security/ICrypto.php
@@ -60,6 +60,7 @@ interface ICrypto {
* @param string $password Password to encrypt, if not specified the secret from config.php will be taken
* @return string plaintext
* @throws \Exception If the HMAC does not match
+ * @throws \Exception If the decryption failed
* @since 8.0.0
*/
public function decrypt(string $authenticatedCiphertext, string $password = ''): string;