diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2023-08-10 03:21:47 +0530 |
|---|---|---|
| committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-08-10 03:31:08 +0530 |
| commit | 959a56d7ffbc20db60721d7a09f399c8bdefe07e (patch) | |
| tree | 0d9b14e0bb770fd6da2e04295f2c22c087142439 /crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt | |
| parent | efef72b6327c8e683c8844146e23d12104f12dd1 (diff) | |
| download | HardenedPass-959a56d7ffbc20db60721d7a09f399c8bdefe07e.tar.gz HardenedPass-959a56d7ffbc20db60721d7a09f399c8bdefe07e.zip | |
refactor: un-flatten module structure
Diffstat (limited to 'crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt')
| -rw-r--r-- | crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt deleted file mode 100644 index 90b98ac9..00000000 --- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ -@file:Suppress("RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS") - -package app.passwordstore.crypto - -object TestUtils { - fun getArmoredSecretKey() = this::class.java.classLoader.getResource("secret_key").readBytes() - - fun getArmoredPublicKey() = this::class.java.classLoader.getResource("public_key").readBytes() - - fun getArmoredSecretKeyWithMultipleIdentities() = - this::class.java.classLoader.getResource("secret_key_multiple_identities").readBytes() - - fun getArmoredPublicKeyWithMultipleIdentities() = - this::class.java.classLoader.getResource("public_key_multiple_identities").readBytes() - - fun getAEADPublicKey() = this::class.java.classLoader.getResource("aead_pub").readBytes() - - fun getAEADSecretKey() = this::class.java.classLoader.getResource("aead_sec").readBytes() - - enum class AllKeys(val keyMaterial: ByteArray) { - ARMORED_SEC(getArmoredSecretKey()), - ARMORED_PUB(getArmoredPublicKey()), - MULTIPLE_IDENTITIES_SEC(getArmoredSecretKeyWithMultipleIdentities()), - MULTIPLE_IDENTITIES_PUB(getArmoredPublicKeyWithMultipleIdentities()), - AEAD_SEC(getAEADSecretKey()), - AEAD_PUB(getAEADPublicKey()), - } -} |
