{"id":13428444,"url":"https://github.com/dufkan/JCEd25519","last_synced_at":"2025-03-16T01:32:35.307Z","repository":{"id":85546510,"uuid":"382698674","full_name":"dufkan/JCEd25519","owner":"dufkan","description":"JavaCard implementation of Ed25519 signature algorithm for smartcards that do not support EdDSA algorithm introduced in JavaCard API version 3.1.","archived":false,"fork":false,"pushed_at":"2024-02-21T19:05:57.000Z","size":639,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-01T01:28:52.231Z","etag":null,"topics":["cryptography","ed25519","javacard"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dufkan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-07-03T19:52:17.000Z","updated_at":"2023-08-20T05:01:48.000Z","dependencies_parsed_at":"2024-01-18T13:45:10.050Z","dependency_job_id":"93daa695-57b1-44e4-b3b2-2c80d0280eb3","html_url":"https://github.com/dufkan/JCEd25519","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dufkan%2FJCEd25519","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dufkan%2FJCEd25519/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dufkan%2FJCEd25519/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dufkan%2FJCEd25519/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dufkan","download_url":"https://codeload.github.com/dufkan/JCEd25519/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221631927,"owners_count":16855023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","ed25519","javacard"],"created_at":"2024-07-31T01:00:57.341Z","updated_at":"2024-10-27T05:31:07.209Z","avatar_url":"https://github.com/dufkan.png","language":"Java","funding_links":[],"categories":["Cryptographic Libraries"],"sub_categories":[],"readme":"# JCEd25519\n\nJCEd25519 is a JavaCard implementation of Ed25519 signature algorithm for smartcards that do not support [Named Elliptic Curves](https://blogs.oracle.com/java/post/java-card-31-cryptographic-extensions) and the [EdDSA signature algorithm](https://docs.oracle.com/en/java/javacard/3.1/jc_api_srvc/api_classic/javacard/security/Signature.html#SIG_CIPHER_EDDSA) introduced in JavaCard API version 3.1.\n\nThe implementation uses (modified) [JCMathLib library](https://github.com/OpenCryptoProject/JCMathLib) to perform necessary operations with elliptic curve points and modular arithmetic. In case SHA512 is not supported by a JavaCard, its [software re-implementation](https://www.fi.muni.cz/~xsvenda/jcalgs.html) is used.\n\n## :warning: WARNING :warning:\n\nThis implementation is only suited for proof-of-concept purposes and **NOT for production use**. The implementation relies on the [JCMathLib library](https://github.com/OpenCryptoProject/JCMathLib), that provides the underlying low-level operations, but not in constant time. An attacker observing signing time with sufficient precision may be able to use this information to **extract the private key**.\n\n## Usage\n\n- Clone this repository with submodules\n\n\n```bash\ngit clone --recursive https://github.com/dufkan/JCEd25519\n```\n- Configure your card type in `JCEd25519.java` file (currently are supported only [SIMULATOR](https://github.com/licel/jcardsim), J3R180, J2E145G)\n\n- Build the applet\n\n```bash\n./gradlew buildJavaCard  --info --rerun-tasks\n```\n\n- Send initialize APDU `00DF000000` to the card. For example, using GlobalPlatform Pro\n\n```bash\ngp --apdu 00A404000C6A6365643235353139617070 --apdu 00DF000000 -d\n```\n\n## Details\n\nThe optimizations in the implementation require the nonce to be generated randomly to be secure; otherwise, the implementation could be made to reuse nonce for signing of a different challenge. This is a minor deviation from Ed25519 specification, but it cannot be externally observed, unless multiple signatures of the same data are issued.\n\n## Supported Cards\n\nThe implementation was tested on NXP J3R200, NXP J3H145, NXP J2E145G, and Infineon Secora ID S.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdufkan%2FJCEd25519","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdufkan%2FJCEd25519","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdufkan%2FJCEd25519/lists"}