summaryrefslogtreecommitdiffstats
path: root/lib/public/security/icrypto.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-17 09:13:04 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-17 09:13:04 +0200
commit852cc6f2c643fa5f84c48b3bea84783512324129 (patch)
tree9c6793db76dca099c92bc71d05d80d39b4694267 /lib/public/security/icrypto.php
parentda44df2cfae16f396316816f75f0900c24015e96 (diff)
parent7644950b48b094bfe5675348aefb7cf5747d325b (diff)
downloadnextcloud-server-852cc6f2c643fa5f84c48b3bea84783512324129.tar.gz
nextcloud-server-852cc6f2c643fa5f84c48b3bea84783512324129.zip
Merge pull request #15680 from owncloud/add-since-tags-to-public-namespace
Add @since tags to all methods in public namespace
Diffstat (limited to 'lib/public/security/icrypto.php')
-rw-r--r--lib/public/security/icrypto.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/security/icrypto.php b/lib/public/security/icrypto.php
index 2b1c0bf8e4d..167baab8233 100644
--- a/lib/public/security/icrypto.php
+++ b/lib/public/security/icrypto.php
@@ -31,6 +31,7 @@ namespace OCP\Security;
* $encryptWithCustomPassword = \OC::$server->getCrypto()->encrypt('EncryptedText', 'password');
*
* @package OCP\Security
+ * @since 8.0.0
*/
interface ICrypto {
@@ -38,6 +39,7 @@ interface ICrypto {
* @param string $message The message to authenticate
* @param string $password Password to use (defaults to `secret` in config.php)
* @return string Calculated HMAC
+ * @since 8.0.0
*/
public function calculateHMAC($message, $password = '');
@@ -46,6 +48,7 @@ interface ICrypto {
* @param string $plaintext
* @param string $password Password to encrypt, if not specified the secret from config.php will be taken
* @return string Authenticated ciphertext
+ * @since 8.0.0
*/
public function encrypt($plaintext, $password = '');
@@ -55,6 +58,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
+ * @since 8.0.0
*/
public function decrypt($authenticatedCiphertext, $password = '');
}