From a8e0bd1f122ecfc35d7834f73d2fff9b276ace29 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 8 Feb 2021 13:37:48 +0000 Subject: keyutils tests --- tests/unit/Lib/KeyutilsTest.php | 87 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 tests/unit/Lib/KeyutilsTest.php diff --git a/tests/unit/Lib/KeyutilsTest.php b/tests/unit/Lib/KeyutilsTest.php new file mode 100644 index 000000000..67b71d70e --- /dev/null +++ b/tests/unit/Lib/KeyutilsTest.php @@ -0,0 +1,87 @@ +loadKey([ + 'e' => new BigInteger($e, 256), + 'n' => new BigInteger($m, 256) + ]); + + self::assertEquals($gen_key->getPublicKey(), $orig_key); + } + +} -- cgit v1.2.3