summaryrefslogtreecommitdiff
path: root/common/src/main/kotlin/crypto/CryptoUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/kotlin/crypto/CryptoUtil.kt')
-rw-r--r--common/src/main/kotlin/crypto/CryptoUtil.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/main/kotlin/crypto/CryptoUtil.kt b/common/src/main/kotlin/crypto/CryptoUtil.kt
index a508c5b2..f6079ffe 100644
--- a/common/src/main/kotlin/crypto/CryptoUtil.kt
+++ b/common/src/main/kotlin/crypto/CryptoUtil.kt
@@ -76,8 +76,8 @@ object CryptoUtil {
/** Extract an RSA public key from a [raw] X.509 certificate */
fun RSAPublicFromCertificate(raw: ByteArray): RSAPublicKey {
- val certificate = CertificateFactory.getInstance("X.509").generateCertificate(raw.inputStream());
- return certificate.getPublicKey() as RSAPublicKey
+ val certificate = CertificateFactory.getInstance("X.509").generateCertificate(raw.inputStream())
+ return certificate.publicKey as RSAPublicKey
}
/** Generate an RSA public key from a [private] one */