Skip to content

Commit

Permalink
feat: Add public key (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
behzodhalil committed Jan 26, 2024
1 parent e43ca41 commit 72eefc3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.spherelabs.sshkey

import java.security.PublicKey as JavaPublicKey

actual class PublicKey(var publicKey: JavaPublicKey) {
actual val encoded: ByteArray = publicKey.encoded
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package io.spherelabs.sshkey

expect class PublicKey {
val encoded: ByteArray
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package io.spherelabs.sshkey

actual class PublicKey {
actual val encoded: ByteArray = byteArrayOf()
}

0 comments on commit 72eefc3

Please # to comment.