1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 10:49:39 +02:00

Kotlin conversion: EdDSACurve

This commit is contained in:
Paul Schaub 2023-09-07 15:08:10 +02:00
parent 89b73895f5
commit 8f49b01d51
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 14 additions and 28 deletions

View file

@ -0,0 +1,14 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.key.generation.type.eddsa
enum class EdDSACurve(
val curveName: String,
val bitStrength: Int) {
_Ed25519("ed25519", 256),
;
fun getName() = curveName
}