Skip to content

Fix: null string error in hkdf encryption - #1956

Open
toekaa-lnu wants to merge 1 commit into
alextselegidis:developfrom
toekaa-lnu:fix/hkdf-null-salt-deprecation
Open

Fix: null string error in hkdf encryption#1956
toekaa-lnu wants to merge 1 commit into
alextselegidis:developfrom
toekaa-lnu:fix/hkdf-null-salt-deprecation

Conversation

@toekaa-lnu

Copy link
Copy Markdown

PHP 8.1+ deprecates passing NULL to strlen(). $salt defaults to NULL in hkdf()'s signature, and both encrypt() and decrypt() call hkdf() with an explicit NULL salt for their HMAC key derivation — so this is hit on every encrypt/decrypt call, not just an edge case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant