├── .github └── workflows │ └── ci.yml ├── .gitignore ├── LICENSE ├── README.md ├── autoload-shim.php ├── composer.json ├── phpunit.xml.dist ├── psalm.xml ├── src ├── Curve25519 │ ├── EdwardsPublicKey.php │ ├── EdwardsSecretKey.php │ ├── MontgomeryPublicKey.php │ ├── MontgomerySecretKey.php │ └── X25519.php ├── ECDSA │ ├── ConstantTimeMath.php │ ├── HedgedRandomNumberGenerator.php │ ├── PublicKey.php │ ├── PublicKeyDerParser.php │ ├── SecretKey.php │ └── Signature.php ├── EasyECC.php ├── EncryptionInterface.php ├── Exception │ ├── ConfigException.php │ ├── EasyEccException.php │ ├── InvalidPublicKeyException.php │ └── NotImplementedException.php └── Integration │ └── Defuse.php └── tests ├── ECDSA ├── ConstantTimeMathTest.php └── SignatureTest.php ├── EasyECCTest.php ├── Integration └── DefuseTest.php ├── K256Test.php ├── KeyLengthTest.php ├── P256Test.php ├── P384Test.php ├── P521Test.php └── SodiumTest.php /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /vendor 3 | /composer.lock 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/README.md -------------------------------------------------------------------------------- /autoload-shim.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/autoload-shim.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /psalm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/psalm.xml -------------------------------------------------------------------------------- /src/Curve25519/EdwardsPublicKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Curve25519/EdwardsPublicKey.php -------------------------------------------------------------------------------- /src/Curve25519/EdwardsSecretKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Curve25519/EdwardsSecretKey.php -------------------------------------------------------------------------------- /src/Curve25519/MontgomeryPublicKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Curve25519/MontgomeryPublicKey.php -------------------------------------------------------------------------------- /src/Curve25519/MontgomerySecretKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Curve25519/MontgomerySecretKey.php -------------------------------------------------------------------------------- /src/Curve25519/X25519.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Curve25519/X25519.php -------------------------------------------------------------------------------- /src/ECDSA/ConstantTimeMath.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/ECDSA/ConstantTimeMath.php -------------------------------------------------------------------------------- /src/ECDSA/HedgedRandomNumberGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/ECDSA/HedgedRandomNumberGenerator.php -------------------------------------------------------------------------------- /src/ECDSA/PublicKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/ECDSA/PublicKey.php -------------------------------------------------------------------------------- /src/ECDSA/PublicKeyDerParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/ECDSA/PublicKeyDerParser.php -------------------------------------------------------------------------------- /src/ECDSA/SecretKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/ECDSA/SecretKey.php -------------------------------------------------------------------------------- /src/ECDSA/Signature.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/ECDSA/Signature.php -------------------------------------------------------------------------------- /src/EasyECC.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/EasyECC.php -------------------------------------------------------------------------------- /src/EncryptionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/EncryptionInterface.php -------------------------------------------------------------------------------- /src/Exception/ConfigException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Exception/ConfigException.php -------------------------------------------------------------------------------- /src/Exception/EasyEccException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Exception/EasyEccException.php -------------------------------------------------------------------------------- /src/Exception/InvalidPublicKeyException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Exception/InvalidPublicKeyException.php -------------------------------------------------------------------------------- /src/Exception/NotImplementedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Exception/NotImplementedException.php -------------------------------------------------------------------------------- /src/Integration/Defuse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/src/Integration/Defuse.php -------------------------------------------------------------------------------- /tests/ECDSA/ConstantTimeMathTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/ECDSA/ConstantTimeMathTest.php -------------------------------------------------------------------------------- /tests/ECDSA/SignatureTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/ECDSA/SignatureTest.php -------------------------------------------------------------------------------- /tests/EasyECCTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/EasyECCTest.php -------------------------------------------------------------------------------- /tests/Integration/DefuseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/Integration/DefuseTest.php -------------------------------------------------------------------------------- /tests/K256Test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/K256Test.php -------------------------------------------------------------------------------- /tests/KeyLengthTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/KeyLengthTest.php -------------------------------------------------------------------------------- /tests/P256Test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/P256Test.php -------------------------------------------------------------------------------- /tests/P384Test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/P384Test.php -------------------------------------------------------------------------------- /tests/P521Test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/P521Test.php -------------------------------------------------------------------------------- /tests/SodiumTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paragonie/easy-ecc/HEAD/tests/SodiumTest.php --------------------------------------------------------------------------------