Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add false as return type for encrypt/decrypt #1679

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions phpseclib/Crypt/Common/SymmetricKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ private static function pkcs12helper($n, $hashObj, $i, $d, $count)
* @see self::decrypt()
* @access public
* @param string $plaintext
* @return string $ciphertext
* @return string|false $ciphertext
*/
public function encrypt($plaintext)
{
Expand Down Expand Up @@ -1476,7 +1476,7 @@ public function encrypt($plaintext)
* @see self::encrypt()
* @access public
* @param string $ciphertext
* @return string $plaintext
* @return string|false $plaintext
* @throws \LengthException if we're inside a block cipher and the ciphertext length is not a multiple of the block size
*/
public function decrypt($ciphertext)
Expand Down