
Line‑by‑line transliteration of Rust elliptic‑curves, offering NIST P‑256 ECC primitives: scalars, points, public/secret keys, and provenance headers for faithful, auditable porting.
This is a Kotlin Multiplatform line-by-line transliteration port of RustCrypto/elliptic-curves.
Original Project: This port is based on RustCrypto/elliptic-curves. All design credit and project intent belong to the upstream authors; this repository is a faithful port to Kotlin Multiplatform with no behavioural changes intended.
This is an in-progress port. The goal is feature parity with the upstream Rust crate while providing a native Kotlin Multiplatform API. Every Kotlin file carries a // port-lint: source <path> header naming its upstream Rust counterpart so the AST-distance tool can track provenance.
The text below is reproduced and lightly edited from
https://github.com/RustCrypto/elliptic-curves. It is the upstream project's own description and remains under the upstream authors' authorship; links have been rewritten to absolute upstream URLs so they continue to resolve from this repository.
General purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof.
All curves reside in the separate crates and implemented using traits from
the elliptic-curve crate.
Crates in this repo do not require the standard library (i.e. no_std capable)
and can be easily used for bare-metal or WebAssembly programming.
| Name | Curve | Crates.io | Documentation | Build Status |
|---|---|---|---|---|
bignp256 |
bign-curve256v1 | |||
bp256 |
brainpoolP256r1/brainpoolP256t1 | |||
bp384 |
brainpoolP384r1/brainpoolP384t1 | |||
hash2curve |
||||
k256 |
secp256k1 | |||
p192 |
NIST P-192 | |||
p224 |
NIST P-224 | |||
p256 |
NIST P-256 | |||
p384 |
NIST P-384 | |||
p521 |
NIST P-521 | |||
sm2 |
SM2 |
Please see our tracking issue for additional elliptic curves if you are interested in curves beyond the ones listed here.
All crates in this repository support Rust 1.85 or higher.
Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.
All crates licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
dependencies {
implementation("io.github.kotlinmania:p256-kotlin:0.1.0")
}./gradlew build
./gradlew testSee AGENTS.md and CLAUDE.md for translator discipline, port-lint header convention, and Rust → Kotlin idiom mapping.
This Kotlin port is distributed under the same Apache-2.0 license as the upstream RustCrypto/elliptic-curves. See LICENSE (and any sibling LICENSE-* / NOTICE files mirrored from upstream) for the full text.
Original work copyrighted by the elliptic-curves authors.
Kotlin port: Copyright (c) 2026 Sydney Renee and The Solace Project.
Thanks to the RustCrypto/elliptic-curves maintainers and contributors for the original Rust implementation. This port reproduces their work in Kotlin Multiplatform; bug reports about upstream design or behavior should go to the upstream repository.
This is a Kotlin Multiplatform line-by-line transliteration port of RustCrypto/elliptic-curves.
Original Project: This port is based on RustCrypto/elliptic-curves. All design credit and project intent belong to the upstream authors; this repository is a faithful port to Kotlin Multiplatform with no behavioural changes intended.
This is an in-progress port. The goal is feature parity with the upstream Rust crate while providing a native Kotlin Multiplatform API. Every Kotlin file carries a // port-lint: source <path> header naming its upstream Rust counterpart so the AST-distance tool can track provenance.
The text below is reproduced and lightly edited from
https://github.com/RustCrypto/elliptic-curves. It is the upstream project's own description and remains under the upstream authors' authorship; links have been rewritten to absolute upstream URLs so they continue to resolve from this repository.
General purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof.
All curves reside in the separate crates and implemented using traits from
the elliptic-curve crate.
Crates in this repo do not require the standard library (i.e. no_std capable)
and can be easily used for bare-metal or WebAssembly programming.
| Name | Curve | Crates.io | Documentation | Build Status |
|---|---|---|---|---|
bignp256 |
bign-curve256v1 | |||
bp256 |
brainpoolP256r1/brainpoolP256t1 | |||
bp384 |
brainpoolP384r1/brainpoolP384t1 | |||
hash2curve |
||||
k256 |
secp256k1 | |||
p192 |
NIST P-192 | |||
p224 |
NIST P-224 | |||
p256 |
NIST P-256 | |||
p384 |
NIST P-384 | |||
p521 |
NIST P-521 | |||
sm2 |
SM2 |
Please see our tracking issue for additional elliptic curves if you are interested in curves beyond the ones listed here.
All crates in this repository support Rust 1.85 or higher.
Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.
All crates licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
dependencies {
implementation("io.github.kotlinmania:p256-kotlin:0.1.0")
}./gradlew build
./gradlew testSee AGENTS.md and CLAUDE.md for translator discipline, port-lint header convention, and Rust → Kotlin idiom mapping.
This Kotlin port is distributed under the same Apache-2.0 license as the upstream RustCrypto/elliptic-curves. See LICENSE (and any sibling LICENSE-* / NOTICE files mirrored from upstream) for the full text.
Original work copyrighted by the elliptic-curves authors.
Kotlin port: Copyright (c) 2026 Sydney Renee and The Solace Project.
Thanks to the RustCrypto/elliptic-curves maintainers and contributors for the original Rust implementation. This port reproduces their work in Kotlin Multiplatform; bug reports about upstream design or behavior should go to the upstream repository.