Skip to content

sodium: Use opaque objects for SHAKE state - #24351

Open
TimWolla wants to merge 3 commits into
php:PHP-8.6from
TimWolla:sodium-xof-opaque
Open

TimWolla wants to merge 3 commits into
php:PHP-8.6from
TimWolla:sodium-xof-opaque

Conversation

@TimWolla

Copy link
Copy Markdown
Member

Alternative to #24182.

@TimWolla
TimWolla requested review from a team, DanielEScherzer, edorian and jedisct1 October 15, 2026 13:38
@TimWolla
TimWolla requested a review from kocsismate as a code owner October 15, 2026 13:38
@TimWolla TimWolla changed the title Sodium xof opaque sodium: Use opaque objects for SHAKE state Oct 15, 2026
function sodium_crypto_xof_shake128_init(?int $domain = null): SodiumCryptoXofShake128State {}

function sodium_crypto_xof_shake128_update(string &$state, string $message): true {}
function sodium_crypto_xof_shake128_update(SodiumCryptoXofShake128State $state, string $message): void {}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should $message also have #[\SensitiveParameter]?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a bad idea.

TimWolla

This comment was marked as resolved.

Comment thread ext/sodium/libsodium.c
Comment thread ext/sodium/libsodium.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants