Skip to content

Commit 1182f60

Browse files
authored
Added flags when exporting the key (#1)
1 parent 12ffd65 commit 1182f60

File tree

1 file changed

+3
-1
lines changed
  • src/main/kotlin/me/stojan/kmspgp/crypto

1 file changed

+3
-1
lines changed

src/main/kotlin/me/stojan/kmspgp/crypto/PGP.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ object PGP {
124124
// https://datatracker.ietf.org/doc/html/rfc4880#section-5.2.3.21
125125
setFeature(false, 0x01 or 0x02)
126126

127+
setKeyFlags(false, 0x03)
128+
127129
pubRes.signingAlgorithms().map {
128130
when (it) {
129131
SigningAlgorithmSpec.ECDSA_SHA_256,
@@ -289,4 +291,4 @@ object PGP {
289291
}
290292
.toByteArray()
291293
)
292-
}
294+
}

0 commit comments

Comments
 (0)