|
@@ -15,7 +15,7 @@ discard block |
|
|
block discarded – undo |
|
15
|
15
|
* @method static string generateRandomKey(integer $length = 32) Generates specified number of random bytes. |
|
16
|
16
|
* @method static string generateRandomString(integer $length = 32) Generates a random string of specified length. |
|
17
|
17
|
* @method static array getAllowedCiphers() Returns $allowedCiphers. The value is an array of two integers, the first is the cipher's block size in bytes and the second is |
|
18
|
|
- * the key size in bytes. |
|
|
18
|
+ * the key size in bytes. |
|
19
|
19
|
* @method static string getAuthKeyInfo() Returns $authKeyInfo - HKDF info value for derivation of message authentication key. |
|
20
|
20
|
* @method static string getCipher() Returns $cipher - The cipher to use for encryption and decryption. |
|
21
|
21
|
* @method static integer getDerivationIterations() Returns $derivationIterations - derivation iterations count. |
|
@@ -27,7 +27,7 @@ discard block |
|
|
block discarded – undo |
|
27
|
27
|
* @method static string hkdf(string $algo, string $inputKey, string $salt = null, string $info = null, integer $length = 0) Derives a key from the given input key using the standard HKDF algorithm. |
|
28
|
28
|
* @method static string pbkdf2(string $algo, string $password, string $salt, integer $iterations, integer $length = 0) Derives a key from the given password using the standard PBKDF2 algorithm. |
|
29
|
29
|
* @method static setAllowedCiphers(array $value) Sets $allowedCiphers. The value is an array of two integers, the first is the cipher's block size in bytes and the second is |
|
30
|
|
- * the key size in bytes. |
|
|
30
|
+ * the key size in bytes. |
|
31
|
31
|
* @method static setAuthKeyInfo(string $value) Sets $authKeyInfo - HKDF info value for derivation of message authentication key. |
|
32
|
32
|
* @method static setCipher(string $value) Sets $cipher - The cipher to use for encryption and decryption. |
|
33
|
33
|
* @method static setDerivationIterations(integer $value) Sets $derivationIterations - derivation iterations count. |