mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 10:49:39 +02:00
Kotlin conversion: XDHSpec
This commit is contained in:
parent
ac245fb56b
commit
521424c23a
2 changed files with 15 additions and 34 deletions
|
@ -0,0 +1,15 @@
|
|||
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package org.pgpainless.key.generation.type.xdh
|
||||
|
||||
enum class XDHSpec(
|
||||
val algorithmName: String,
|
||||
val curveName: String,
|
||||
val bitStrength: Int) {
|
||||
_X25519("X25519", "curve25519", 256),
|
||||
;
|
||||
|
||||
fun getName() = algorithmName
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue