Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-7.1
/
share
/
test
/
libsodium
/
tests
/
//proc/thread-self/root/opt/php-7.1/share/test/libsodium/tests/crypto_scalarmult.phpt
--TEST-- Check for libsodium scalarmult --SKIPIF-- <?php if (!extension_loaded("libsodium")) print "skip"; ?> --FILE-- <?php $n = \Sodium\hex2bin("5dab087e624a8a4b79e17f8b83800ee66f3bb1292618b6fd1c2f8b27ff88e0eb"); $p = \Sodium\hex2bin("8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a"); $q = \Sodium\crypto_scalarmult($n, $p); var_dump(\Sodium\bin2hex($q)); ?> --EXPECT-- string(64) "4a5d9d5ba4ce2de1728e3bf480350f25e07e21c947d19e3376f09b3c1e161742"