Browse Source

Merge pull request #10386 from dmromanov/pull-req/code-cleanup

Removed unused variable
Mark Story 9 years ago
parent
commit
b99a7b20fb
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Utility/Crypto/OpenSsl.php

+ 1 - 2
src/Utility/Crypto/OpenSsl.php

@@ -53,11 +53,10 @@ class OpenSsl
      *
      * @param string $plain The value to encrypt.
      * @param string $key The 256 bit/32 byte key to use as a cipher key.
-     * @param string|null $hmacSalt The salt to use for the HMAC process. Leave null to use Security.salt.
      * @return string Encrypted data.
      * @throws \InvalidArgumentException On invalid data or key.
      */
-    public static function encrypt($plain, $key, $hmacSalt = null)
+    public static function encrypt($plain, $key)
     {
         $method = 'AES-256-CBC';
         $ivSize = openssl_cipher_iv_length($method);