Skip to content

Commit

Permalink
fix: implicit string to array conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
clphillips committed Jun 3, 2017
1 parent b30c992 commit 155eaa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AES.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function encrypt($x) {
* @returns plaintext string
**/
public function decrypt($y) {
$t = ''; // 16-byte block
$t = array(); // 16-byte block
$x = ''; // returned plain text;
$y_block = $this->iv;
$x_block = '';
Expand Down Expand Up @@ -553,7 +553,7 @@ private function invMixColumns() {
* @returns void
**/
private function invShiftRows() {
$temp = '';
$temp = array();
for ($i=1; $i<4; $i++) {
for ($j=0; $j<self::$Nb; $j++) {
$temp[($i+$j)%self::$Nb] = $this->s[$i][$j];
Expand Down

0 comments on commit 155eaa6

Please sign in to comment.