paragonie / paseto

Platform-Agnostic Security Tokens
https://paseto.io
Other
3.24k stars 108 forks source link

Fix preAuthEncode on 32-bit PHP #82

Closed minus7 closed 6 years ago

minus7 commented 6 years ago

32-bit PHP does not support the P format for pack(), thus fails with: pack(): 64-bit format codes are not available for 32-bit versions of PHP

Fix by using the store64_le function from sodium_compat. Related fix there: https://github.com/paragonie/sodium_compat/issues/60