paragonie / sodium_compat

Pure PHP polyfill for ext/sodium

Home Page:https://paragonie.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

64-bit format codes are not available for 32-bit versions of PHP

tuupola opened this issue · comments

A recent change causes some issues with 32-bit versions of PHP 7. This affects at least calls to Compat::crypto_aead_xchacha20poly1305_ietf_encrypt().

pack(): 64-bit format codes are not available for 32-bit versions of PHP

Code causing the error assumes PHP 7 is always 64bit. For more info see also tuupola/branca-php#2.

commented

That's strange. It should be using Crypto32/Core32 instead of Crypto/Core on 32-bit OSes.

commented

Oh, I see what's happening. I'll get a fix out soon.