aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/Crypto
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/Crypto')
-rw-r--r--apps/encryption/lib/Crypto/Crypt.php10
-rw-r--r--apps/encryption/lib/Crypto/Encryption.php4
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 24b1f21ecd0..fe12bfaf727 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -54,16 +54,16 @@ use OCP\IUserSession;
* @package OCA\Encryption\Crypto
*/
class Crypt {
- const DEFAULT_CIPHER = 'AES-256-CTR';
+ public const DEFAULT_CIPHER = 'AES-256-CTR';
// default cipher from old Nextcloud versions
- const LEGACY_CIPHER = 'AES-128-CFB';
+ public const LEGACY_CIPHER = 'AES-128-CFB';
// default key format, old Nextcloud version encrypted the private key directly
// with the user password
- const LEGACY_KEY_FORMAT = 'password';
+ public const LEGACY_KEY_FORMAT = 'password';
- const HEADER_START = 'HBEGIN';
- const HEADER_END = 'HEND';
+ public const HEADER_START = 'HBEGIN';
+ public const HEADER_END = 'HEND';
/** @var ILogger */
private $logger;
diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php
index 57cf4e2edac..39dfece7629 100644
--- a/apps/encryption/lib/Crypto/Encryption.php
+++ b/apps/encryption/lib/Crypto/Encryption.php
@@ -45,8 +45,8 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class Encryption implements IEncryptionModule {
- const ID = 'OC_DEFAULT_MODULE';
- const DISPLAY_NAME = 'Default encryption module';
+ public const ID = 'OC_DEFAULT_MODULE';
+ public const DISPLAY_NAME = 'Default encryption module';
/**
* @var Crypt