diff --git a/hedera-node/hedera-app/src/main/java/module-info.java b/hedera-node/hedera-app/src/main/java/module-info.java index 8f82f33fd6cf..d8f36a06acf0 100644 --- a/hedera-node/hedera-app/src/main/java/module-info.java +++ b/hedera-node/hedera-app/src/main/java/module-info.java @@ -2,8 +2,6 @@ import com.swirlds.config.api.ConfigurationExtension; module com.hedera.node.app { - uses com.hedera.cryptography.pairings.api.PairingFriendlyCurve; - requires transitive com.hedera.node.app.hapi.utils; requires transitive com.hedera.node.app.service.addressbook.impl; requires transitive com.hedera.node.app.service.addressbook; diff --git a/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/CryptoStatic.java b/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/CryptoStatic.java index db04165d4696..a2a541887ebf 100644 --- a/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/CryptoStatic.java +++ b/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/CryptoStatic.java @@ -24,6 +24,10 @@ import static com.swirlds.platform.crypto.CryptoConstants.PUBLIC_KEYS_FILE; import static com.swirlds.platform.crypto.KeyCertPurpose.SIGNING; +import com.hedera.cryptography.bls.BlsKeyPair; +import com.hedera.cryptography.bls.GroupAssignment; +import com.hedera.cryptography.bls.SignatureSchema; +import com.hedera.cryptography.pairings.api.Curve; import com.hedera.pbj.runtime.io.buffer.Bytes; import com.swirlds.common.crypto.CryptographyException; import com.swirlds.common.crypto.config.CryptoConfig; @@ -93,6 +97,8 @@ * A collection of various static crypto methods */ public final class CryptoStatic { + public static final SignatureSchema SIGNATURE_SCHEMA = + SignatureSchema.create(Curve.ALT_BN128, GroupAssignment.SHORT_SIGNATURES); private static final Logger logger = LogManager.getLogger(CryptoStatic.class); private static final int SERIAL_NUMBER_BITS = 64; private static final int MASTER_KEY_MULTIPLIER = 157; @@ -626,6 +632,22 @@ public static Map initNodeSecurity( return store; } + /** + * Generate a {@link BlsKeyPair} using a {@link SignatureSchema} and a {@link SecureRandom} instance + * @param secureRandom the secure random number generator to use + * @return a new {@link BlsKeyPair} + * @throws NoSuchAlgorithmException the algorithm is not supported + */ + public static BlsKeyPair generateBlsKeyPair(@Nullable final SecureRandom secureRandom) + throws NoSuchAlgorithmException { + if (secureRandom == null) { + logger.debug("Generating a new BLS key pair using a default secure random number generator"); + return BlsKeyPair.generate(SIGNATURE_SCHEMA); + } + logger.debug("Generating a new BLS key pair using a custom secure random number generator"); + return BlsKeyPair.generate(SIGNATURE_SCHEMA, secureRandom); + } + /** * Check if a certificate is valid. A certificate is valid if it is not null, has a public key, and can be encoded. * diff --git a/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoader.java b/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoader.java index 8e891f5dd6ce..c9a661bd13f1 100644 --- a/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoader.java +++ b/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoader.java @@ -25,6 +25,10 @@ import static com.swirlds.platform.crypto.CryptoStatic.loadKeys; import static com.swirlds.platform.state.address.AddressBookNetworkUtils.isLocal; +import com.hedera.cryptography.asciiarmored.AsciiArmoredFiles; +import com.hedera.cryptography.bls.BlsKeyPair; +import com.hedera.cryptography.bls.BlsPrivateKey; +import com.hedera.cryptography.bls.BlsPublicKey; import com.swirlds.common.crypto.config.CryptoConfig; import com.swirlds.common.platform.NodeId; import com.swirlds.config.api.Configuration; @@ -204,6 +208,16 @@ public class EnhancedKeyStoreLoader { */ private final Map agrPrivateKeys; + /** + * The private tss encryption keys loaded from disk. + */ + private final Map tssPrivateKeys; + + /** + * The public tss encryption keys. + */ + private final Map tssPublicKeys; + /** * The X.509 Certificates loaded from the key stores. */ @@ -244,6 +258,8 @@ private EnhancedKeyStoreLoader( this.agrPrivateKeys = HashMap.newHashMap(addressBook.getSize()); this.agrCertificates = HashMap.newHashMap(addressBook.getSize()); this.localNodes = HashSet.newHashSet(addressBook.getSize()); + this.tssPrivateKeys = HashMap.newHashMap(addressBook.getSize()); + this.tssPublicKeys = HashMap.newHashMap(addressBook.getSize()); } /** @@ -298,6 +314,11 @@ public EnhancedKeyStoreLoader scan() throws KeyLoadingException, KeyStoreExcepti localNodes.add(nodeId); sigPrivateKeys.compute( nodeId, (k, v) -> resolveNodePrivateKey(nodeId, nodeAlias, KeyCertPurpose.SIGNING)); + + BlsPrivateKey tssPrivateKey = resolveTssPrivateKey(nodeId, nodeAlias); + if (tssPrivateKey != null) { + tssPrivateKeys.put(nodeId, tssPrivateKey); + } } sigCertificates.compute( @@ -309,6 +330,29 @@ public EnhancedKeyStoreLoader scan() throws KeyLoadingException, KeyStoreExcepti return this; } + @Nullable + private BlsPrivateKey resolveTssPrivateKey(@NonNull final NodeId nodeId, @NonNull final String nodeAlias) + throws KeyLoadingException { + Objects.requireNonNull(nodeId, MSG_NODE_ID_NON_NULL); + Objects.requireNonNull(nodeAlias, MSG_NODE_ALIAS_NON_NULL); + + Path keyLocation = keyStoreDirectory.resolve(String.format("t-private-%s.tss", nodeAlias)); + if (Files.exists(keyLocation)) { + logger.trace( + STARTUP.getMarker(), + "Found tss encryption private key for node {} [ fileName = {} ]", + nodeId, + keyLocation.getFileName()); + try { + return AsciiArmoredFiles.readPrivateKey(keyLocation); + } catch (final Exception e) { + logger.error(ERROR.getMarker(), "Failed to read TSS encryption private key from disk", e); + throw new KeyLoadingException("Failed to read TSS encryption private key from disk", e); + } + } + return null; + } + /** * Iterates over the local nodes and creates the agreement key and certificate for each. This method should be * called after {@link #scan()} and before {@link #verify()}. @@ -349,6 +393,28 @@ public EnhancedKeyStoreLoader generate() SecureRandom.getInstanceStrong()); agrCertificates.put(node, agrCert); } + + if (!tssPrivateKeys.containsKey(node) || tssPrivateKeys.get(node) == null) { + // Create a new public/private key pair for the TSS encryption key + BlsKeyPair tssKeyPair = CryptoStatic.generateBlsKeyPair(SecureRandom.getInstanceStrong()); + tssPrivateKeys.put(node, tssKeyPair.privateKey()); + tssPublicKeys.put(node, tssKeyPair.publicKey()); + // Write the private key to disk + final String nodeAlias = + nameToAlias(addressBook.getAddress(node).getSelfName()); + Path tssEncryptionPrivateKeyLocation = + keyStoreDirectory.resolve(String.format("t-private-%s.tss", nodeAlias)); + try { + AsciiArmoredFiles.writeKey(tssEncryptionPrivateKeyLocation, tssKeyPair.privateKey()); + } catch (IOException e) { + logger.error(ERROR.getMarker(), "Failed to write TSS encryption private key to disk", e); + throw new KeyGeneratingException("Failed to write TSS encryption private key to disk", e); + } + } else { + // Create the BlsPublicKey from the private TSS encryption key + BlsPrivateKey tssPrivateKey = tssPrivateKeys.get(node); + tssPublicKeys.put(node, tssPrivateKey.createPublicKey()); + } } return this; } @@ -406,6 +472,16 @@ public EnhancedKeyStoreLoader verify(@NonNull final AddressBook validatingBook) throw new KeyLoadingException("No certificate found for node %s [ alias = %s, purpose = %s ]" .formatted(nodeId, nodeAlias, KeyCertPurpose.AGREEMENT)); } + + if (!tssPrivateKeys.containsKey(nodeId)) { + throw new KeyLoadingException( + "No TSS private key found for node %s [ alias = %s ]".formatted(nodeId, nodeAlias)); + } + + if (!tssPublicKeys.containsKey(nodeId)) { + throw new KeyLoadingException( + "No TSS public key found for node %s [ alias = %s ]".formatted(nodeId, nodeAlias)); + } } if (!sigCertificates.containsKey(nodeId)) { @@ -481,7 +557,11 @@ public Map keysAndCerts(@NonNull final AddressBook validat final KeyPair sigKeyPair = new KeyPair(sigCert.getPublicKey(), sigPrivateKey); final KeyPair agrKeyPair = new KeyPair(agrCert.getPublicKey(), agrPrivateKey); - final KeysAndCerts kc = new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores); + final BlsPrivateKey tssPrivateKey = tssPrivateKeys.get(nodeId); + final BlsPublicKey tssPublicKey = tssPublicKeys.get(nodeId); + + final KeysAndCerts kc = new KeysAndCerts( + sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores, tssPrivateKey, tssPublicKey); keysAndCerts.put(nodeId, kc); } diff --git a/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/KeysAndCerts.java b/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/KeysAndCerts.java index 69c558669e31..3e6a7ef945b7 100644 --- a/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/KeysAndCerts.java +++ b/platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/KeysAndCerts.java @@ -16,6 +16,9 @@ package com.swirlds.platform.crypto; +import com.hedera.cryptography.bls.BlsKeyPair; +import com.hedera.cryptography.bls.BlsPrivateKey; +import com.hedera.cryptography.bls.BlsPublicKey; import com.swirlds.common.crypto.internal.CryptoUtils; import edu.umd.cs.findbugs.annotations.NonNull; import java.security.Key; @@ -59,9 +62,12 @@ public record KeysAndCerts( KeyPair agrKeyPair, X509Certificate sigCert, X509Certificate agrCert, - PublicStores publicStores) { + PublicStores publicStores, + BlsPrivateKey privateTssEncryptionKey, + BlsPublicKey publicTssEncryptionKey) { private static final int SIG_SEED = 2; private static final int AGR_SEED = 0; + private static final int TSS_ENCRYPTION_KEY_SEED = 3; /** * Creates an instance holding all the keys and certificates. It reads its own key pairs from privateKeyStore @@ -111,7 +117,7 @@ public static KeysAndCerts loadExistingAndCreateAgrKeyIfMissing( publicStores.setCertificate(KeyCertPurpose.AGREEMENT, agreementCert, dnA); } - return new KeysAndCerts(signingKeyPair, agreementKeyPair, signingCert, agreementCert, publicStores); + return new KeysAndCerts(signingKeyPair, agreementKeyPair, signingCert, agreementCert, publicStores, null, null); } private static KeyPair getKeyPair(final KeyStore privateKeyStore, final char[] password, final String storeName) @@ -152,12 +158,14 @@ public static KeysAndCerts generate( final SecureRandom sigDetRandom; // deterministic CSPRNG, used briefly then discarded final SecureRandom agrDetRandom; // deterministic CSPRNG, used briefly then discarded + final SecureRandom tssEncryptionKeyRandom; sigKeyGen = KeyPairGenerator.getInstance(CryptoConstants.SIG_TYPE1, CryptoConstants.SIG_PROVIDER); agrKeyGen = KeyPairGenerator.getInstance(CryptoConstants.AGR_TYPE, CryptoConstants.AGR_PROVIDER); sigDetRandom = CryptoUtils.getDetRandom(); // deterministic, not shared agrDetRandom = CryptoUtils.getDetRandom(); // deterministic, not shared + tssEncryptionKeyRandom = CryptoUtils.getDetRandom(); // deterministic, not shared sigDetRandom.setSeed(masterKey); sigDetRandom.setSeed(swirldId); @@ -171,6 +179,11 @@ public static KeysAndCerts generate( agrDetRandom.setSeed(AGR_SEED); agrKeyGen.initialize(CryptoConstants.AGR_KEY_SIZE_BITS, agrDetRandom); + tssEncryptionKeyRandom.setSeed(masterKey); + tssEncryptionKeyRandom.setSeed(swirldId); + tssEncryptionKeyRandom.setSeed(memberId); + tssEncryptionKeyRandom.setSeed(TSS_ENCRYPTION_KEY_SEED); + final KeyPair sigKeyPair = sigKeyGen.generateKeyPair(); final KeyPair agrKeyPair = agrKeyGen.generateKeyPair(); @@ -188,7 +201,16 @@ public static KeysAndCerts generate( publicStores.setCertificate(KeyCertPurpose.SIGNING, sigCert, name); publicStores.setCertificate(KeyCertPurpose.AGREEMENT, agrCert, name); - return new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores); + final BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair(tssEncryptionKeyRandom); + + return new KeysAndCerts( + sigKeyPair, + agrKeyPair, + sigCert, + agrCert, + publicStores, + blsKeyPair.privateKey(), + blsKeyPair.publicKey()); } /** diff --git a/platform-sdk/swirlds-platform-core/src/main/java/module-info.java b/platform-sdk/swirlds-platform-core/src/main/java/module-info.java index 02af06956f69..a49197b702ac 100644 --- a/platform-sdk/swirlds-platform-core/src/main/java/module-info.java +++ b/platform-sdk/swirlds-platform-core/src/main/java/module-info.java @@ -138,6 +138,7 @@ requires transitive com.swirlds.state.impl; requires transitive com.fasterxml.jackson.annotation; requires transitive com.fasterxml.jackson.databind; + requires transitive com.hedera.cryptography.bls; requires transitive com.hedera.pbj.runtime; requires transitive info.picocli; requires transitive org.apache.logging.log4j; @@ -150,6 +151,7 @@ requires com.fasterxml.jackson.core; requires com.fasterxml.jackson.dataformat.yaml; requires com.github.spotbugs.annotations; + requires com.hedera.cryptography.pairings.api; requires java.desktop; requires java.management; requires java.scripting; diff --git a/platform-sdk/swirlds-platform-core/src/test/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoaderTest.java b/platform-sdk/swirlds-platform-core/src/test/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoaderTest.java index 8dd702bf1b99..55ddada9e748 100644 --- a/platform-sdk/swirlds-platform-core/src/test/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoaderTest.java +++ b/platform-sdk/swirlds-platform-core/src/test/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoaderTest.java @@ -81,12 +81,18 @@ void validateTestDataDirectory() { assertThat(testDataDirectory.resolve("enhanced-valid-no-agreement-key")) .exists() .isNotEmptyDirectory(); + assertThat(testDataDirectory.resolve("enhanced-valid-no-tss-key")) + .exists() + .isNotEmptyDirectory(); assertThat(testDataDirectory.resolve("enhanced-invalid-case-1")) .exists() .isNotEmptyDirectory(); assertThat(testDataDirectory.resolve("enhanced-invalid-case-2")) .exists() .isNotEmptyDirectory(); + assertThat(testDataDirectory.resolve("enhanced-invalid-case-3")) + .exists() + .isNotEmptyDirectory(); assertThat(testDataDirectory.resolve("legacy-valid").resolve("public.pfx")) .exists() .isNotEmptyFile(); @@ -105,7 +111,14 @@ void validateTestDataDirectory() { */ @ParameterizedTest @DisplayName("KeyStore Loader Positive Test") - @ValueSource(strings = {"legacy-valid", "hybrid-valid", "enhanced-valid", "enhanced-valid-no-agreement-key"}) + @ValueSource( + strings = { + "legacy-valid", + "hybrid-valid", + "enhanced-valid", + "enhanced-valid-no-agreement-key", + "enhanced-valid-no-tss-key" + }) void keyStoreLoaderPositiveTest(final String directoryName) throws IOException, KeyLoadingException, KeyStoreException { final Path keyDirectory = testDataDirectory.resolve(directoryName); @@ -137,6 +150,8 @@ void keyStoreLoaderPositiveTest(final String directoryName) assertThat(keysAndCerts.sigCert()).isNotNull(); assertThat(keysAndCerts.agrKeyPair()).isNotNull(); assertThat(keysAndCerts.sigKeyPair()).isNotNull(); + assertThat(keysAndCerts.privateTssEncryptionKey()).isNotNull(); + assertThat(keysAndCerts.publicTssEncryptionKey()).isNotNull(); } assertThat(addr.getSigPublicKey()).isNotNull(); @@ -195,6 +210,30 @@ void keyStoreLoaderNegativeCase2Test(final String directoryName) throws IOExcept assertThatCode(loader::keysAndCerts).isInstanceOf(KeyLoadingException.class); } + /** + * The KeyStore Loader Corrupt TSS Key Test is designed to test the case where the key store loader is able to scan + * the key directory, but the TSS key is corrupt. + * + * @throws IOException if an I/O error occurs during test setup. + */ + @Test + @DisplayName("KeyStore Loader Corrupt TSS Key Test") + void keyStoreLoaderNegativeCorruptTssKey() throws IOException { + final Path keyDirectory = testDataDirectory.resolve("enhanced-invalid-case-3"); + final AddressBook addressBook = addressBook(); + final EnhancedKeyStoreLoader loader = EnhancedKeyStoreLoader.using(addressBook, configure(keyDirectory)); + + assertThat(keyDirectory).exists().isDirectory().isReadable().isNotEmptyDirectory(); + + assertThat(loader).isNotNull(); + assertThatCode(loader::migrate).doesNotThrowAnyException(); + assertThatCode(loader::scan) + .as( + "Scan operation should throw KeyLoadingException when processing a corrupt TSS key in '%s'", + keyDirectory) + .isInstanceOf(KeyLoadingException.class); + } + /** * A helper method used to load the {@code settings.txt} configuration file and override the default key directory * path with the provided key directory path. diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-alice.tss new file mode 100644 index 000000000000..2e4325256356 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +ATD1I7+Pyho6oh7fpzj2tQxTV9Vp2a3wSia9jsXw1bUI +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-bob.tss new file mode 100644 index 000000000000..f539b89a98a8 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AXtqyKZ3PTuSk3t4BY1Gcxiw6SifnuXzU1zO/Zmh7NUZ +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-carol.tss new file mode 100644 index 000000000000..c23ec154637b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-alice.pem new file mode 100644 index 000000000000..92b7e50d3f8d --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-alice.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/QIBADANBgkqhkiG9w0BAQEFAASCBucwggbjAgEAAoIBgQCwIWWNEdngJ0F1 +0o6WU5S/K1TN5f5gj6UrzF1cMJwwMbnM16Iopz4EvqejZMTwMyxiPflQU1ogy4Yi +REIQb5qStvib26RfZpbLzW+aKv7yn6bmUGKnyMaGw3q9DkpztiaKE/5jBv36x6oC +qHdi2FqHmYM2trbL/hwwQXYdkvmcYoaDThaTBwLnnvMeRFpABzGupPpa628dHCXG +iDm1NMpX12ZQiZW2cN5I1Ek+y3dMcySEkUMhPkz9F0NAwXDF1+TcbV79WuryxGrL +488RaWt/bpUqMOHWZquwVfrOls+3u1NbDoZPQnEU6XLOyGpLPZWWYaqQSPQH0xgG +YDxG4PkSme467Me2mAt8Uz0k71OI5NF/AsFl4yXtQGlmRI+wGbFeqsx8Ma4Eh8/i +/rCnvGtMjATE4W4ULGE2+hZtciw7JxC9ohZ2v/vk7EU2q0CujjqXmRJN7OJZ0m2U +SmciWlFTVunJJziMSF2nPwhBfRM2IMKQlLvnwWGfLUOI2BgW5mcCAwEAAQKCAYAD +Sp3k5HEghO0qzVzpFfnGrSdreMzB90Llu0G1n/SyU6KgV/tkAuxUz3xdR+O5Onse +4sOLxx+xy5zUTld78+mAu0fcJzIGGGKOZRtY9Xm9G6ZGUaJuWFQK267ebLcIWtbt +tsWGzg5Diw6Of92j/3PUPak2HGYTAY6oiQbB9ueunexjTwbVYibWEY+DXsmyCdus +RNFq6WBu/75lzW8Iw+hoerffNV7HX5l8EmjxTHIqnebyEYItj4nvUEtrTf9QnCIE +NkZvKElEfI2hwHFGw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njy+W3dHofZdMS7U41P +orzwtWdK9kB0jqfpoVXymH/ExRud/LhHB3tXymUq9UeTZjhIxXOycisZ34uZhq5M +dkwXGFBOoBvSa9sWqT97K8TqEuhrgra0dcy9HQ8iiApOwNA4kj8Oh/Ya5hmXvtps +ZpSk9vKOjvYry6vn5XiDSmvB1zxrb3NcnntVAmr1DMVI/TTcEYjl6lhdabDam9l5 +kIdl5kfH4X3czFdBeQKBwQCl+buKLSsW+EtHdKozIprwbwLsmhlzxr69iRwZ0A6O +VAF+C/WyxfWsvBtSOnabUfVtRyV64UyKiV3d53rkRPWxpXXAsag55vVWg/ZTV7dF +f+BC8TWZiLDYyYw/nJf6u6wj9phYQtQXkGZsTsQU5jpQRRrN4fy8WeFF0mtLEor0 +9kZPhlcQw2kkGkZ5o2LwmmL6/A6Cq14M4mGdzmT4vXT53U94qy+/9uPVP8zXzmhv +xGBczcuY4kJxhNAZt+ecORg= +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-bob.pem new file mode 100644 index 000000000000..eaf333749ac8 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-bob.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/QIBADANBgkqhkiG9w0BAQEFAASCBucwggbjAgEAAoIBgQC8VtryJR7kgw/b +Qxi0pIo06ufj9Y84who8mqm7Jw7XyTXwTkC9WjnGpa1bTfkR09u9ZAGiiF2gdhWK +aeVdpo2395w+vnFS+EDR6W3G/IRd4/rYsFH5BpTC9ghrpGf12KF2Lq9rSJMNpuwM +4o3eFPS6BRGsSVtWHs5OzhkJ2w+v0ZY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W6hmCVZpnk+ZzN3vz7Ot5F7POXxJ5pFgbd +uBCmMzRwdnkbVgNRQtJqiSY= +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-carol.pem new file mode 100644 index 000000000000..c39d353080fa --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-carol.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/gIBADANBgkqhkiG9w0BAQEFAASCBugwggbkAgEAAoIBgQCZTCQlanDwGQlj +oUoop15RNm1C5nRh57ZWx/KO1IAVqHA+eHhCRCD5nTS3CBR4yck3r7pZk7PFTCLV +HxDQSJjxCR7eMNZHmbIe6vV86YGr1DYLHUfejS5zP1D7sp0UVx5KKO9mypVnRmao +LrwgVmHBcLyVx6/KMT6SzK22M0l+uqwtQ5DhcNHBR6NrMY7DaPgxugZGdptDf7wp +/4CsrQv7p9aN3eKOrOaKdEuN6zX7Slw5xPmmuh1QqwK26p++SpJW6x6yEHm3Lp1n +ZLrIqUYB2xkS7bE3tn28HKyOcCEvEODnriy9POZeG4M2pClZNcK58H5CnquOyZAR +a7P0A1KD2I9Tvbh4Yinh+W0wkzbVEQzuwf4CwJofj+uYqQ6nN+GJekicYNPCmOkd +nlRkV1NtsWaOqBrr8E3ODLuIvoXgXytlB5aooZE50cUuURhb0VztB6GBY5urX/Qr +jIpgmGIgvHHdkGD1+FoZNxD+lr60V2kOKtjEsAOL8otexdYCQi8CAwEAAQKCAYAX +Rlk37mjxUKEn+vrFy2Dllww7G777MnFxIZsxQRBQDtU5QZSOCHFdP2zGhrfc/ajL +B1JAJs3PnIIEC7BuKeeW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SiOwG4W49gp/hRJE/uCQq9Ky/ThHB7 +IxWU0En73WdulIM9xAlO6WvLxj78+fwL1sCBIv+f6UjkbGZo5UZyMsSXtWdKP7t/ +yj91TP0kC6abqSlHN2OcyMQggLPvUB/sf94ciOMOqUvU4ihSBBQSgc91YnPeapuo +L8L1DNK3IOKu2wKBwQCF3AGpsPcDsZjKZU3jP5MSAcTuI0E6zXrNWinb+viD8Lfu +bNL7bmM2ulGaovBLEI6/gY3+swKuXaeXk0iJput2iSIVs5IauOb3zBHKQt/0/mTy +AVcS7igfohRNgvta95lc578pU7r/HRGeI1BLSKTRoYuqJmGMwP9GfUu5n9C+4yHR ++Va77av0oe6EMjhbjllVIaSwohDC2dvafpTJ+UUFuaUct9xcsKbqE1LespgqsO+q +kbj9CQ8gid9uCoGEkpECgcEAw7LZYA5QMGihwLrDWi18nHMsCo0Z2Z1NntFoIUal +SgSxgzEH2LEamswToHI5I+TBvMQGKx7FY6y3Mbc3PnQQzeoSr8FNC9ExR/c0/bCm +8mm0TmwOQPPEoQVSquLOxGdP6wr/Rhzy+D5uec3Ml0K4FH8nMkZ+FvPT6akBthE9 +tMoXAfkx5NgjO16ZB8LBbowzWpydKTK/A//czHBqStYbQNcTpS4o6fCSkt6bw2f5 +19ga5B0NGXbh/GQ89wQttlbX +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-alice.pem new file mode 100644 index 000000000000..5f9a737f31e6 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-alice.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhk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+5VKOztt2BsoPztgGn +wvCGHe1MegT/dV+f1t5vvyRmXGQNqguB6KzuWZ224xAAZd0kxIE7wbHFrcFyI8ki +eLQZBBQeNiRIO2P6KSCFqe0tK1PsxNAF4ApzTCfR46T8jJELT2JlBX5C390ywmb8 +Qqt1GV7gfSQO1noQNoy5rm8wi7GZUfMGY6ZsTlIuzLK27i2Ov6HBApxi0gnEeV/U +GtpRhTQHWBFlfU7ylPcVv76T+YjRi/Mh5i5mLdGfzRZESXbXdEIr2vNvH512dusa +o2DbRUiIOLJtAel7FOXrXKvHsz/HmSSPgMg= +-----END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-bob.pem new file mode 100644 index 000000000000..fcf3421d4dbe --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-bob.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUxMB4XDTI0MDExOTAzNTk1NloXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALxW2vIlHuSD +D9tDGLSkijTq5+P1jzjCGjyaqbsnDtfJNfBOQL1aOcalrVtN+RHT271kAaKIXaB2 +FYpp5V2mjbf3nD6+cVL4QNHpbcb8hF3j+tiwUfkGlML2CGukZ/XYoXYur2tIkw2m +7Azijd4U9LoFEaxJW1Yezk7OGQnbD6/RliKvrgVbEmhQVVH6mMjH0teL+iKnqS8o +BRZaMBHLunrzgO0kczhzrxohYndGMjziIkVqOySx/2/LSZRP98i806CBpYCt6BnP +JQKVCnJArwWu4uGwsCaeebq/YGAjNVgHOHfXI20CjT4gWo+CQEfgJLCfnRp1Z/6x +Z/2FRRjZT4c44Fh5C+wyq9/B2s6Yay0kbNWM7cD5nYSY6nBD+FHnfks9of5rKjMZ +pAbO8OmKH6xvwF/XopDZOstEeFgBO/DWIn0/5TMrX/gxXPQ97gIudB3Jq7yNJPDd +mgy0tIKtQ3XeHblz4bjGzmhDTUJ1GuuYWYJmwkGutMLtvXnihA9oJwIDAQABo2cw +ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr +BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFGBToF/0Wh9x83dMShj/ +lni1voLLMA0GCSqGSIb3DQEBDAUAA4IBgQBfHAv3YMQr7DXw7KYclwDMWdMnC6OY +jReRUnMzgpryEAheHFUsTzsY83++gR7M+nGGAuClE9rhJ0VwiAVZSM+wXeHqCvWc +nhGxYkStXO//iJ4V90D1xYN452Bwv2MVNAfGcpNkDWpYU/T6NWbBwM3MaB1BJpog +3CiZHnbGyrGWnY5rCNEcxPt0x9tZypMf6tlfsrz10XSuzKfXYUl8gDAzSUVXBQf/ +nPM+8qgJCtrbzweTZOioDEFS8bJoRdhrISTwUqM5aWCyCb00PXRWgwYrs2Yx6h/2 +F5H0RRdEe8RlQnZzNRaKBgx5gKq1ZqVLo9PKKgUIOK1DOYKM97NEMJholk5iUYRF +dtX0hYIelWTSws5fooPMR9CmKJv/sQ1lUAK5R+sZGpR6HXs/XzJ2foxzBJtYBK5G ++TdXnGkwqZni6+2JhIpY2b9lyU3NrJaG8kQXb7BM/f8kmmTev+P4MXlJxkVGurgq +JpSc04LzDtFx3VeUB60TqjRWq/lAebOfwyQ= +-----END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-carol.pem new file mode 100644 index 000000000000..f7399ce46306 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-carol.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUyMB4XDTI0MDExOTAzNTk1NloXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMjCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAJlMJCVqcPAZ +CWOhSiinXlE2bULmdGHntlbH8o7UgBWocD54eEJEIPmdNLcIFHjJyTevulmTs8VM +ItUfENBImPEJHt4w1keZsh7q9XzpgavUNgsdR96NLnM/UPuynRRXHkoo72bKlWdG +ZqguvCBWYcFwvJXHr8oxPpLMrbYzSX66rC1DkOFw0cFHo2sxjsNo+DG6BkZ2m0N/ +vCn/gKytC/un1o3d4o6s5op0S43rNftKXDnE+aa6HVCrArbqn75KklbrHrIQebcu +nWdkusipRgHbGRLtsTe2fbwcrI5wIS8Q4OeuLL085l4bgzakKVk1wrnwfkKeq47J +kBFrs/QDUoPYj1O9uHhiKeH5bTCTNtURDO7B/gLAmh+P65ipDqc34Yl6SJxg08KY +6R2eVGRXU22xZo6oGuvwTc4Mu4i+heBfK2UHlqihkTnRxS5RGFvRXO0HoYFjm6tf +9CuMimCYYiC8cd2QYPX4Whk3EP6WvrRXaQ4q2MSwA4vyi17F1gJCLwIDAQABo2cw +ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr +BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFKi2jUNl/87jYgPRnkzu +wxMe9zFpMA0GCSqGSIb3DQEBDAUAA4IBgQA5cYrIfc/jTMplm7vAHEq4kl2os0MU +8Vkfdw56afhPwjPRhI3OeWKuFyhTFfOYrO3oleYEj/eFkwSl6wXIeUKrbwMWxtuL +Qyqax1YLIZMkwSDDQTAYkAUJgsY4MTeYEJz1X9eXKH7KD+fNTEd0j7C4qXaow1ms +OJYIkUVyoqx4i1szfWxw0X04LRxjL/u5TF34fOqOKWQekvVPSvKUH9kuTnQsPyG2 +XXr4rQ4Ea5IMCPkSdpr7kZhhSze38P9QdCfBYibIk46+zeInfD4tKQ3R8sGYHK0M +kx6INe5onCc/zvlTizJ0v8XwhjAU7vWcKJV/PxB94FzHdM0r8a6pfK0HXkup2mM1 +FMghPPyC7XW+Fl1aRMwWWnEW9+1zoA3SbEgEje4hkIbUVCQL7bKOobV8FLqACw+F +uIcwILb+oZJeKof2py/NnxOdNBp2EYc7lEEv+1zwxmkAVGjQ3I/pHkD2gr1ZHsxm ++IYcd5yAGvwyd69a2QtaqbBx4c18kuT97tQ= +-----END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss new file mode 100644 index 000000000000..f52048a80fac --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +CORRUPTEDTSSKEY +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-bob.tss new file mode 100644 index 000000000000..f539b89a98a8 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AXtqyKZ3PTuSk3t4BY1Gcxiw6SifnuXzU1zO/Zmh7NUZ +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-carol.tss new file mode 100644 index 000000000000..c23ec154637b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-alice.pem new file mode 100644 index 000000000000..92b7e50d3f8d --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-alice.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/QIBADANBgkqhkiG9w0BAQEFAASCBucwggbjA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wbwLsmhlzxr69iRwZ0A6O +VAF+C/WyxfWsvBtSOnabUfVtRyV64UyKiV3d53rkRPWxpXXAsag55vVWg/ZTV7dF +f+BC8TWZiLDYyYw/nJf6u6wj9phYQtQXkGZsTsQU5jpQRRrN4fy8WeFF0mtLEor0 +9kZPhlcQw2kkGkZ5o2LwmmL6/A6Cq14M4mGdzmT4vXT53U94qy+/9uPVP8zXzmhv +xGBczcuY4kJxhNAZt+ecORg= +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-bob.pem new file mode 100644 index 000000000000..eaf333749ac8 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-bob.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/QIBADANBgkqhkiG9w0BAQEFAASCBucwggbjAgEAAoIBgQC8VtryJR7kgw/b +Qxi0pIo06ufj9Y84who8mqm7Jw7XyTXwTkC9WjnGpa1bTfkR09u9ZAGiiF2gdhWK +aeVdpo2395w+vnFS+EDR6W3G/IRd4/rYsFH5BpTC9ghrpGf12KF2Lq9rSJMNpuwM +4o3eFPS6BRGsSVtWHs5OzhkJ2w+v0ZYir64FWxJoUFVR+pjIx9LXi/oip6kvKAUW +WjARy7p684DtJHM4c68aIWJ3RjI84iJFajsksf9vy0mUT/fIvNOggaWAregZzyUC +lQpyQK8FruLhsLAmnnm6v2BgIzVYBzh31yNtAo0+IFqPgkBH4CSwn50adWf+sWf9 +hUUY2U+HOOBYeQvsMqvfwdrOmGstJGzVjO3A+Z2EmOpwQ/hR535LPaH+ayozGaQG +zvDpih+sb8Bf16KQ2TrLRHhYAT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V0pciHPQriqck3Ak/ +lzuor/kMf7g1GKv6sW/ErY15BHQdreDmuHoTT7HewXiYQEuWC0BPZVMhKkYcRRVe +zA2/xdSl0QKBwH5Uzir51g0g+Ft8AooqnDfZnrEqMSr2iOv2P0WbQFwNiNBBNDc/ +f4UgL+pRuAk1g6hfsmqnzElCQzuW4Sxg62SvTmG69T/HPQ15Upwn5HTKocQxtPGg +4TkbHBnz4nDl7lcU/VJ8pfMTGl1oWkUI7kJ7HDltQm81EmEpGgCKXLO6F43B30Ub +UuyAtKj/cbz1fxnsmM//7fCwejB/trkYy/8jezi0BHtS2ct+CYEF+q+PdpkXtlXq +VSat7uReY7smhwKBwGUkwcwxWq4ztXat2bspsPbvdtpD5e4c/2YlkjCbJUFBDwns +4L00F5/AVdNJ+pt/E+Xxk24OWttS6i9zEZVPS2RNl7kJxWSkg/kj7JhHrYjFDsaL +48bdMgScMyR4vC9ube6CdwQxwM42173vKhaEx6PJwVydk6JhnoRAyci6OQKmiCAY +lpkqPtzXGju18GUTJy6M9toxDAiiRf7exX+FA5V4hpF0gsxGin+ZqJ0bv5CTLnI3 +Inz1prXpX1wtKhrEYQKBwQDhhAyU+4yq56xpFtKhPEboU0X2rVNIP32PKIolvSx7 +8hDXtO1Bf6irAWSX3ogJRQ0YZnIwEty/GX6cLHixR3bxJXu7L+v3x2DOaC6AHICR +KbOMvvZ8aZX12wx08R0pEuoqeNcITHpecuI2laNlVRjVhMhd9s02LF3rdUcR8YAU +YG5RaF45LuNKQ4C8yYEs2YwFe1C3ekW6hmCVZpnk+ZzN3vz7Ot5F7POXxJ5pFgbd +uBCmMzRwdnkbVgNRQtJqiSY= +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-carol.pem new file mode 100644 index 000000000000..c39d353080fa --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-carol.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/gIBADANBgkqhkiG9w0BAQEFAASCBugwggbkAgEAAoIBgQCZTCQlanDwGQlj +oUoop15RNm1C5nRh57ZWx/KO1IAVqHA+eHhCRCD5nTS3CBR4yck3r7pZk7PFTCLV +HxDQSJjxCR7eMNZHmbIe6vV86YGr1DYLHUfejS5zP1D7sp0UVx5KKO9mypVnRmao +LrwgVmHBcLyVx6/KMT6SzK22M0l+uqwtQ5DhcNHBR6NrMY7DaPgxugZGdptDf7wp +/4CsrQv7p9aN3eKOrOaKdEuN6zX7Slw5xPmmuh1QqwK26p++SpJW6x6yEHm3Lp1n +ZLrIqUYB2xkS7bE3tn28HKyOcCEvEODnriy9POZeG4M2pClZNcK58H5CnquOyZAR +a7P0A1KD2I9Tvbh4Yinh+W0wkzbVEQzuwf4CwJofj+uYqQ6nN+GJekicYNPCmOkd +nlRkV1NtsWaOqBrr8E3ODLuIvoXgXytlB5aooZE50cUuURhb0VztB6GBY5urX/Qr +jIpgmGIgvHHdkGD1+FoZNxD+lr60V2kOKtjEsAOL8otexdYCQi8CAwEAAQKCAYAX +Rlk37mjxUKEn+vrFy2Dllww7G777MnFxIZsxQRBQDtU5QZSOCHFdP2zGhrfc/ajL +B1JAJs3PnIIEC7BuKeeWs8TNBWszTyGdJ3KtoXe/p/urRP8pdL64XsT5QiLZThTa +O6GFi309mJHI4oz2TUc7AIE8LdJXMjzcOwP7kDPjcDeTXm573A5CIzyrmh2hNlR1 +8Fbi5z/RnW5AjiYc5t/VOKQPFsDphVTcxqVwtGVAybHQ+kLRTpwEKG1uv5a7ZJox +FDIzypyZ2djYPcN0UiXwAQlEFk3X6f0zfca6s4p+GY3wuNt04FKbSChN7mlqS2/y +z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LEI6/gY3+swKuXaeXk0iJput2iSIVs5IauOb3zBHKQt/0/mTy +AVcS7igfohRNgvta95lc578pU7r/HRGeI1BLSKTRoYuqJmGMwP9GfUu5n9C+4yHR ++Va77av0oe6EMjhbjllVIaSwohDC2dvafpTJ+UUFuaUct9xcsKbqE1LespgqsO+q +kbj9CQ8gid9uCoGEkpECgcEAw7LZYA5QMGihwLrDWi18nHMsCo0Z2Z1NntFoIUal +SgSxgzEH2LEamswToHI5I+TBvMQGKx7FY6y3Mbc3PnQQzeoSr8FNC9ExR/c0/bCm +8mm0TmwOQPPEoQVSquLOxGdP6wr/Rhzy+D5uec3Ml0K4FH8nMkZ+FvPT6akBthE9 +tMoXAfkx5NgjO16ZB8LBbowzWpydKTK/A//czHBqStYbQNcTpS4o6fCSkt6bw2f5 +19ga5B0NGXbh/GQ89wQttlbX +-----END PRIVATE KEY----- \ No newline at end of file diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-alice.pem new file mode 100644 index 000000000000..5f9a737f31e6 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-alice.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUwMB4XDTI0MDExOTAzNTk1NVoXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALAhZY0R2eAn +QXXSjpZTlL8rVM3l/mCPpSvMXVwwnDAxuczXoiinPgS+p6NkxPAzLGI9+VBTWiDL +hiJEQh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Vv76T+YjRi/Mh5i5mLdGfzRZESXbXdEIr2vNvH512dusa +o2DbRUiIOLJtAel7FOXrXKvHsz/HmSSPgMg= +-----END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-bob.pem new file mode 100644 index 000000000000..fcf3421d4dbe --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-bob.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUxMB4XDTI0MDExOTAzNTk1NloXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALxW2vIlHuSD +D9tDGLSkijTq5+P1jzjCGjyaqbsnDtfJNfBOQL1aOcalrVtN+RHT271kAaKIXaB2 +FYpp5V2mjbf3nD6+cVL4QNHpbcb8hF3j+tiwUfkGlML2CGukZ/XYoXYur2tIkw2m +7Azijd4U9LoFEaxJW1Yezk7OGQnbD6/RliKvrgVbEmhQVVH6mMjH0teL+iKnqS8o +BRZaMBHLunrzgO0kczhzrxohYndGMjziIkVqOySx/2/LSZRP98i806CBpYCt6BnP +JQKVCnJArwWu4uGwsCaeebq/YGAjNVgHOHfXI20CjT4gWo+CQEfgJLCfnRp1Z/6x +Z/2FRRjZT4c44Fh5C+wyq9/B2s6Yay0kbNWM7cD5nYSY6nBD+FHnfks9of5rKjMZ +pAbO8OmKH6xvwF/XopDZOstEeFgBO/DWIn0/5TMrX/gxXPQ97gIudB3Jq7yNJPDd +mgy0tIKtQ3XeHblz4bjGzmhDTUJ1GuuYWYJmwkGutMLtvXnihA9oJwIDAQABo2cw +ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr +BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFGBToF/0Wh9x83dMShj/ +lni1voLLMA0GCSqGSIb3DQEBDAUAA4IBgQBfHAv3YMQr7DXw7KYclwDMWdMnC6OY +jReRUnMzgpryEAheHFUsTzsY83++gR7M+nGGAuClE9rhJ0VwiAVZSM+wXeHqCvWc +nhGxYkStXO//iJ4V90D1xYN452Bwv2MVNAfGcpNkDWpYU/T6NWbBwM3MaB1BJpog +3CiZHnbGyrGWnY5rCNEcxPt0x9tZypMf6tlfsrz10XSuzKfXYUl8gDAzSUVXBQf/ +nPM+8qgJCtrbzweTZOioDEFS8bJoRdhrISTwUqM5aWCyCb00PXRWgwYrs2Yx6h/2 +F5H0RRdEe8RlQnZzNRaKBgx5gKq1ZqVLo9PKKgUIOK1DOYKM97NEMJholk5iUYRF +dtX0hYIelWTSws5fooPMR9CmKJv/sQ1lUAK5R+sZGpR6HXs/XzJ2foxzBJtYBK5G ++TdXnGkwqZni6+2JhIpY2b9lyU3NrJaG8kQXb7BM/f8kmmTev+P4MXlJxkVGurgq +JpSc04LzDtFx3VeUB60TqjRWq/lAebOfwyQ= +-----END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-carol.pem new file mode 100644 index 000000000000..f7399ce46306 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-carol.pem @@ -0,0 +1,24 @@ +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Wxw0X04LRxjL/u5TF34fOqOKWQekvVPSvKUH9kuTnQsPyG2 +XXr4rQ4Ea5IMCPkSdpr7kZhhSze38P9QdCfBYibIk46+zeInfD4tKQ3R8sGYHK0M +kx6INe5onCc/zvlTizJ0v8XwhjAU7vWcKJV/PxB94FzHdM0r8a6pfK0HXkup2mM1 +FMghPPyC7XW+Fl1aRMwWWnEW9+1zoA3SbEgEje4hkIbUVCQL7bKOobV8FLqACw+F +uIcwILb+oZJeKof2py/NnxOdNBp2EYc7lEEv+1zwxmkAVGjQ3I/pHkD2gr1ZHsxm ++IYcd5yAGvwyd69a2QtaqbBx4c18kuT97tQ= +-----END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-private-key/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-private-key/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-private-key/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-alice.tss new file mode 100644 index 000000000000..dd4c53260491 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-alice.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-bob.tss new file mode 100644 index 000000000000..11141dbd568c --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-bob.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----END PRIVATE KEY----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-carol.tss new file mode 100644 index 000000000000..2089c056c16b --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----END PRIVATE KEY-----