Skip to content

Commit

Permalink
revert default to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
doersf committed Sep 10, 2022
1 parent 5ec3a5e commit 056f0d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ private function getNetwork($n)
return $nf;
}

public function encrypt($data, $key, $cipher_type = "AES-256-ECB", $iv = "", $auth_data = null)
public function encrypt($data, $key, $cipher_type = "AES-256-ECB", $iv = NULL, $auth_data = null)
{
# encryption using AES-256-ECB, AES-256-CBC, AES-256-GCM
# data is string, key is hex string
Expand Down Expand Up @@ -496,7 +496,7 @@ public function pinToAesKey($pin, $iterations = 2048, $salt = "", $hash_function
return $enc_key_32;
}

public function decrypt($b64ciphertext, $key, $cipher_type = "AES-256-ECB", $iv = "", $auth_tag = NULL, $auth_data = NULL)
public function decrypt($b64ciphertext, $key, $cipher_type = "AES-256-ECB", $iv = NULL, $auth_tag = NULL, $auth_data = NULL)
{
# data must be in base64 string, $key is binary of hashed pincode

Expand Down

0 comments on commit 056f0d5

Please sign in to comment.