Skip to content

Add secp256k1 & brainpool EC curves #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cryptography-core/src/commonMain/kotlin/algorithms/EC.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ public interface EC<PublicK : EC.PublicKey, PrivateK : EC.PrivateKey, KP : EC.Ke
public val P256: Curve get() = Curve("P-256")
public val P384: Curve get() = Curve("P-384")
public val P521: Curve get() = Curve("P-521")

public val secp256k1: Curve get() = Curve("secp256k1")

// Brainpool curves (used in European standards and some government applications)
public val brainpoolP256r1: Curve get() = Curve("brainpoolP256r1")
public val brainpoolP384r1: Curve get() = Curve("brainpoolP384r1")
public val brainpoolP512r1: Curve get() = Curve("brainpoolP512r1")
}
}

Expand Down