Skip to content

Commit

Permalink
Fix up formatting after merging #43
Browse files Browse the repository at this point in the history
  • Loading branch information
morki committed Apr 21, 2024
1 parent f219660 commit ae035ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/kotlin/com/interaso/webpush/Crypto.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ae035ee

Please sign in to comment.