From c8af2288c69c7acbae4a6d397680952c5708009c Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 14 Jan 2020 22:44:01 +0000 Subject: [PATCH] Format RsaTest --- .../java/dev/openrs2/common/crypto/RsaTest.kt | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/common/src/test/java/dev/openrs2/common/crypto/RsaTest.kt b/common/src/test/java/dev/openrs2/common/crypto/RsaTest.kt index 5f19e7015e..93b116b597 100644 --- a/common/src/test/java/dev/openrs2/common/crypto/RsaTest.kt +++ b/common/src/test/java/dev/openrs2/common/crypto/RsaTest.kt @@ -18,16 +18,18 @@ object RsaTest { // example data from https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Example private val PUBLIC_KEY = allowUnsafeMod { RSAKeyParameters(false, BigInteger("3233"), BigInteger("17")) } private val PRIVATE_KEY = allowUnsafeMod { RSAKeyParameters(true, BigInteger("3233"), BigInteger("413")) } - private val PRIVATE_KEY_CRT = allowUnsafeMod { RSAPrivateCrtKeyParameters( - BigInteger("3233"), // modulus - BigInteger("17"), // public exponent - BigInteger("413"), // private exponent - BigInteger("61"), // p - BigInteger("53"), // q - BigInteger("53"), // dP - BigInteger("49"), // dQ - BigInteger("38") // qInv - ) } + private val PRIVATE_KEY_CRT = allowUnsafeMod { + RSAPrivateCrtKeyParameters( + BigInteger("3233"), // modulus + BigInteger("17"), // public exponent + BigInteger("413"), // private exponent + BigInteger("61"), // p + BigInteger("53"), // q + BigInteger("53"), // dP + BigInteger("49"), // dQ + BigInteger("38") // qInv + ) + } private val PUBLIC_KEY_PEM = listOf( "-----BEGIN PUBLIC KEY-----",