]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/streams/crypto/openssl/class_OpenSslStream.php
Continued:
[core.git] / framework / main / classes / streams / crypto / openssl / class_OpenSslStream.php
index 72b9b7066f1a9d065a048af0500ac313660b91ba..6fad925e88f274e90c868eadca759c964a4acabb 100644 (file)
@@ -65,7 +65,7 @@ class OpenSslStream extends BaseCryptoStream implements EncryptableStream {
         * @param       $key            Optional key, if none provided, a random key will be generated
         * @return      $encrypted      Encrypted string
         */
-       public function encryptStream ($str, $key = NULL) {
+       public function encryptStream (string $str, string $key = NULL) {
                // @TODO unfinished
                return $str;
 
@@ -135,7 +135,7 @@ class OpenSslStream extends BaseCryptoStream implements EncryptableStream {
         * @param       $key            Optional key, if none provided, a random key will be generated
         * @return      $str            The unencrypted string
         */
-       public function decryptStream ($encrypted, $key = NULL) {
+       public function decryptStream (string $encrypted, string $key = NULL) {
                // @TODO unfinished
                return $encrypted;