mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-03 14:20:10 +08:00
action
This commit is contained in:
parent
209dfac519
commit
632e654191
mirai-core/src/commonTest/kotlin/utils/crypto
@ -18,7 +18,7 @@ import kotlin.test.assertEquals
|
||||
|
||||
internal class AESTest {
|
||||
@Test
|
||||
fun `can aes crypto works`() {
|
||||
fun `can do crypto`() {
|
||||
val random = Random(currentTimeMillis())
|
||||
repeat(5) { i ->
|
||||
val key = getRandomString(16, random).encodeToByteArray()
|
||||
|
@ -18,7 +18,7 @@ import kotlin.test.assertEquals
|
||||
@DisabledOnJvmLikePlatform(Platform.AndroidUnitTest::class)
|
||||
class RSATest {
|
||||
@Test
|
||||
fun `can gen rsa key pair`() {
|
||||
fun `can generate key pair`() {
|
||||
repeat(4) { exp ->
|
||||
val keySize = 2.0.pow(9 + exp).toInt()
|
||||
val rsaKeyPair = generateRSAKeyPair(keySize)
|
||||
|
Loading…
Reference in New Issue
Block a user