com php-src: sodium ext: use crypto_scalarmult_BYTES for points coordinates: ext/sodium/libsodium.c

From: Date: Fri, 21 Jul 2017 12:02:33 +0000
Subject: com php-src: sodium ext: use crypto_scalarmult_BYTES for points coordinates: ext/sodium/libsodium.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98690@lists.php.net to get a copy of this message
Commit: 0e2a7fc82961bfef5c947cf9c0c31c88e4add831 Author: Frank Denis <github@pureftpd.org> Thu, 20 Jul 2017 22:30:58 +0200 Parents: 557029e8e6fa621d3951f7f912a6755bedb49901 Branches: PHP-7.2 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0e2a7fc82961bfef5c947cf9c0c31c88e4add831 Log: sodium ext: use crypto_scalarmult_BYTES for points coordinates Just for consistency. Changed paths: M ext/sodium/libsodium.c Diff: diff --git a/ext/sodium/libsodium.c b/ext/sodium/libsodium.c index e0b5b91..96e3f74 100644 --- a/ext/sodium/libsodium.c +++ b/ext/sodium/libsodium.c @@ -2487,7 +2487,7 @@ PHP_FUNCTION(sodium_crypto_scalarmult) return; } if (n_len != crypto_scalarmult_SCALARBYTES || - p_len != crypto_scalarmult_SCALARBYTES) { + p_len != crypto_scalarmult_BYTES) { zend_throw_exception(sodium_exception_ce, "scalar and point must be " "CRYPTO_SCALARMULT_SCALARBYTES bytes", 0);

« previous php.cvs (#98690) next »