mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
generate-key: Use API instance when generating keys
This commit is contained in:
parent
5e3f6a1d47
commit
2a0e4e1d2d
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ class GenerateKeyImpl(private val api: PGPainless) : GenerateKey {
|
|||
val keyBuilder: KeyRingBuilder =
|
||||
when (profile) {
|
||||
CURVE25519_PROFILE.name ->
|
||||
PGPainless.buildKeyRing()
|
||||
api.buildKey()
|
||||
.setPrimaryKey(
|
||||
KeySpec.getBuilder(
|
||||
KeyType.EDDSA_LEGACY(EdDSALegacyCurve._Ed25519),
|
||||
|
@ -110,7 +110,7 @@ class GenerateKeyImpl(private val api: PGPainless) : GenerateKey {
|
|||
}
|
||||
}
|
||||
RSA4096_PROFILE.name -> {
|
||||
PGPainless.buildKeyRing()
|
||||
api.buildKey()
|
||||
.setPrimaryKey(
|
||||
KeySpec.getBuilder(KeyType.RSA(RsaLength._4096), KeyFlag.CERTIFY_OTHER))
|
||||
.addSubkey(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue