From ae035ee77725830684ec833795817ed7d3dcce03 Mon Sep 17 00:00:00 2001 From: morki Date: Sun, 21 Apr 2024 09:25:19 +0200 Subject: [PATCH] Fix up formatting after merging #43 --- src/main/kotlin/com/interaso/webpush/Crypto.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/com/interaso/webpush/Crypto.kt b/src/main/kotlin/com/interaso/webpush/Crypto.kt index 8fc4993..b447275 100644 --- a/src/main/kotlin/com/interaso/webpush/Crypto.kt +++ b/src/main/kotlin/com/interaso/webpush/Crypto.kt @@ -21,11 +21,10 @@ private const val CURVE = "secp256r1" * which is also known as the P-256 curve. It is commonly used in cryptographic * algorithms such as the Elliptic Curve Digital Signature Algorithm (ECDSA). */ -private val secp256r1parameterSpec: ECParameterSpec = - AlgorithmParameters.getInstance("EC").run { - init(ECGenParameterSpec(CURVE)) - getParameterSpec(ECParameterSpec::class.java) - } +private val secp256r1parameterSpec: ECParameterSpec = AlgorithmParameters.getInstance("EC").run { + init(ECGenParameterSpec(CURVE)) + getParameterSpec(ECParameterSpec::class.java) +} /** * Generates a key pair using the secp256r1 elliptic curve algorithm.