[php-src] PR #18363: test: Add GMP ECC test
| From: | famoser | Date: | Sun, 20 Apr 2025 09:55:15 +0000 |
| Subject: | [php-src] PR #18363: test: Add GMP ECC test | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31445@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18363
Author: famoser
Add a test that executes GMP operations in the context of elliptic curve.
This work is motivated by a bug from a couple of months ago (see https://github.com/php/php-src/issues/16870),
which showed this use-cases is uncovered by tests in PHP. The bug was fixed quickly, and in https://github.com/php/php-src/pull/16896 a
unit test already landed for finite field cryptography. The test for elliptic curve cryptography is
more complicated (as seen in this PR), so this was decided to be done later: https://github.com/php/php-src/pull/16896#issuecomment-2508876993
This unit test is written based on code developed for https://github.com/famoser/elliptic, which has been
tested extensively. However, the code is not ready to use for security-related applications, as it
has not been hardened nor tested against possible side channels. Side channels could leak the secret
values, and therefore compromise the security of the algorithms.