Fix incorrect null parameter in generichash function, as null is no longer an acceptable value
This commit is contained in:
parent
a41313c221
commit
ec7adec9bf
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@
|
|||
}
|
||||
|
||||
$sharedSecret = sodium_crypto_scalarmult($decodedPrivateKey, $decodedPublicKey);
|
||||
$derivedKey = sodium_crypto_generichash($sharedSecret, null, SODIUM_CRYPTO_SECRETBOX_KEYBYTES);
|
||||
$derivedKey = sodium_crypto_generichash($sharedSecret, '', SODIUM_CRYPTO_SECRETBOX_KEYBYTES);
|
||||
$result = sodium_bin2base64($derivedKey, self::BASE64_VARIANT);
|
||||
|
||||
// Clean up sensitive data
|
||||
|
|
Loading…
Add table
Reference in a new issue