summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/Crypto/Crypt.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/Crypto/Crypt.php')
-rw-r--r--apps/encryption/lib/Crypto/Crypt.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 4d5c20ea75f..49b1bcb41aa 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -196,9 +196,7 @@ class Crypt {
// combine content to encrypt the IV identifier and actual IV
$catFile = $this->concatIV($encryptedContent, $iv);
$catFile = $this->concatSig($catFile, $sig);
- $padded = $this->addPadding($catFile);
-
- return $padded;
+ return $this->addPadding($catFile);
}
/**
@@ -495,8 +493,7 @@ class Crypt {
*/
private function createSignature($data, $passPhrase) {
$passPhrase = hash('sha512', $passPhrase . 'a', true);
- $signature = hash_hmac('sha256', $data, $passPhrase);
- return $signature;
+ return hash_hmac('sha256', $data, $passPhrase);
}