Skip to content

ext/sodium: Add support for libsodium 1.0.21 APIs#20960

Merged
jedisct1 merged 1 commit intophp:masterfrom
dip-proto:sodium1021
Feb 27, 2026
Merged

ext/sodium: Add support for libsodium 1.0.21 APIs#20960
jedisct1 merged 1 commit intophp:masterfrom
dip-proto:sodium1021

Conversation

@jedisct1
Copy link
Contributor

Add support for new functions present in recent libsodium versions:

Functions for IP address encryption:

  • sodium_crypto_ipcrypt_*
  • sodium_bin2ip/sodium_ip2bin helpers

Extendable output functions:

  • SHAKE128/SHAKE256
  • TurboSHAKE128/TurboSHAKE256

@jedisct1 jedisct1 requested a review from kocsismate as a code owner January 17, 2026 13:57
@jedisct1 jedisct1 force-pushed the sodium1021 branch 2 times, most recently from 88369f4 to 9df46c0 Compare January 26, 2026 15:21
@jedisct1 jedisct1 force-pushed the sodium1021 branch 3 times, most recently from 73576b3 to 5cfd588 Compare February 10, 2026 21:48
@bukka
Copy link
Member

bukka commented Feb 22, 2026

This should add some tests. Looks like MacOS has got already 1.0.21 so it should run at least there for now. It means there should be some skip for older versions...

Add support for new functions present in recent libsodium
versions:

- Functions for IP address encryption:
  - sodium_crypto_ipcrypt_*
  - sodium_bin2ip/sodium_ip2bin helpers

- Extendable output functions:
  - SHAKE128/SHAKE256
  - TurboSHAKE128/TurboSHAKE256
@jedisct1
Copy link
Contributor Author

Tests have been added for all the new functions.

@jedisct1 jedisct1 merged commit 8a907a9 into php:master Feb 27, 2026
18 checks passed
@jedisct1 jedisct1 deleted the sodium1021 branch February 27, 2026 12:11
@bukka
Copy link
Member

bukka commented Feb 27, 2026

@jedisct1 UPGRADING needs to contain all changes (it means listing there all new functions and constants)...

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.

2 participants