Skip to content

Commit 06133ed

Browse files
committed
Add secp256k1 & brainpool EC curves
1 parent 186a420 commit 06133ed

File tree

1 file changed

+7
-0
lines changed
  • cryptography-core/src/commonMain/kotlin/algorithms

1 file changed

+7
-0
lines changed

cryptography-core/src/commonMain/kotlin/algorithms/EC.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ public interface EC<PublicK : EC.PublicKey, PrivateK : EC.PrivateKey, KP : EC.Ke
2020
public val P256: Curve get() = Curve("P-256")
2121
public val P384: Curve get() = Curve("P-384")
2222
public val P521: Curve get() = Curve("P-521")
23+
24+
public val secp256k1: Curve get() = Curve("secp256k1")
25+
26+
// Brainpool curves (used in European standards and some government applications)
27+
public val brainpoolP256r1: Curve get() = Curve("brainpoolP256r1")
28+
public val brainpoolP384r1: Curve get() = Curve("brainpoolP384r1")
29+
public val brainpoolP512r1: Curve get() = Curve("brainpoolP512r1")
2330
}
2431
}
2532

0 commit comments

Comments
 (0)