From 9acf000c237378773aa77ba399d2c93fb328e322 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Thu, 14 Nov 2024 17:21:09 -0500 Subject: [PATCH 01/16] Added TSS Encryption Key generation in EnhancedKeyStoreLoader Signed-off-by: Derek Riley --- gradle/modules.properties | 1 + .../com.hedera.gradle.repositories.gradle.kts | 1 + ...hedera.gradle.settings.settings.gradle.kts | 1 + hedera-dependency-versions/build.gradle.kts | 2 + .../swirlds-platform-core/build.gradle.kts | 5 ++ .../swirlds/platform/crypto/CryptoStatic.java | 16 ++++ .../crypto/EnhancedKeyStoreLoader.java | 87 ++++++++++++++++++- .../swirlds/platform/crypto/KeysAndCerts.java | 10 ++- .../src/main/java/module-info.java | 1 + .../crypto/EnhancedKeyStoreLoaderTest.java | 11 ++- 10 files changed, 130 insertions(+), 5 deletions(-) diff --git a/gradle/modules.properties b/gradle/modules.properties index 82f927ee2791..91ffaf3418a0 100644 --- a/gradle/modules.properties +++ b/gradle/modules.properties @@ -6,3 +6,4 @@ com.hedera.cryptography.pairings.api=com.hedera.cryptography:hedera-cryptography-pairings-api com.hedera.cryptography.pairings.signatures=com.hedera.cryptography:hedera-cryptography-pairings-signatures jmh.core=org.openjdk.jmh:jmh-core +com.hedera.cryptography.bls=com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT \ No newline at end of file diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts index 734cf240f7eb..3fa960f6ada6 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts @@ -15,6 +15,7 @@ */ repositories { + mavenLocal() mavenCentral() maven { url = uri("https://us-maven.pkg.dev/swirlds-registry/maven-prerelease-channel") } maven { url = uri("https://us-maven.pkg.dev/swirlds-registry/maven-develop-commits") } diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts index 5da00ecb2321..15a534148666 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts @@ -19,6 +19,7 @@ import org.gradlex.javamodule.dependencies.initialization.RootPluginsExtension pluginManagement { repositories { + mavenLocal() gradlePluginPortal() mavenCentral() maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } diff --git a/hedera-dependency-versions/build.gradle.kts b/hedera-dependency-versions/build.gradle.kts index 00f6a89981c4..d3c79af3ca56 100644 --- a/hedera-dependency-versions/build.gradle.kts +++ b/hedera-dependency-versions/build.gradle.kts @@ -238,4 +238,6 @@ dependencies.constraints { api("com.google.protobuf:protoc:3.25.4") api("io.grpc:protoc-gen-grpc-java:1.66.0") + + api("com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT") } diff --git a/platform-sdk/swirlds-platform-core/build.gradle.kts b/platform-sdk/swirlds-platform-core/build.gradle.kts index 9ac7ca3d948a..407f61076690 100644 --- a/platform-sdk/swirlds-platform-core/build.gradle.kts +++ b/platform-sdk/swirlds-platform-core/build.gradle.kts @@ -22,6 +22,11 @@ plugins { id("com.hedera.gradle.feature.test-timing-sensitive") } +dependencies { + implementation("com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT") + // Add other dependencies if needed +} + // Remove the following line to enable all 'javac' lint checks that we have turned on by default // and then fix the reported issues. tasks.withType().configureEach { 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 c1757abdeb42..1a77446ac880 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; @@ -623,4 +627,16 @@ public static Map initNodeSecurity( } return store; } + + /** + * Generate a {@link BlsKeyPair} using a {@link SignatureSchema} and a {@link SecureRandom} instance + * @return a new {@link BlsKeyPair} + * @throws NoSuchAlgorithmException the algorithm is not supported + */ + public static BlsKeyPair generateBlsKeyPair() throws NoSuchAlgorithmException { + final SignatureSchema SIGNATURE_SCHEMA = + SignatureSchema.create(Curve.ALT_BN128, GroupAssignment.SHORT_SIGNATURES); + final SecureRandom secureRandom = SecureRandom.getInstanceStrong(); + return BlsKeyPair.generate(SIGNATURE_SCHEMA, secureRandom); + } } 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..8c053ee2c88e 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 IOException 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)) { + // Create a new public/private key pair for the TSS encryption key + BlsKeyPair tssKeyPair = CryptoStatic.generateBlsKeyPair(); + 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); } @@ -889,6 +969,11 @@ private Path privateKeyStore(@NonNull String nodeAlias, @NonNull KeyCertPurpose return keyStoreDirectory.resolve(String.format("%s-private-%s.pem", purpose.prefix(), nodeAlias)); } + private Path tssPrivateKeyPath(@NonNull String nodeAlias) { + Objects.requireNonNull(nodeAlias, MSG_NODE_ALIAS_NON_NULL); + return keyStoreDirectory.resolve(String.format("t-private-%s.tss", nodeAlias)); + } + /** * Utility method for resolving the {@link Path} to the legacy private key store for the specified * {@code nodeAlias}. 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..7cf165f25f93 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,8 @@ package com.swirlds.platform.crypto; +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,7 +61,9 @@ 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; @@ -111,7 +115,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) @@ -188,7 +192,7 @@ public static KeysAndCerts generate( publicStores.setCertificate(KeyCertPurpose.SIGNING, sigCert, name); publicStores.setCertificate(KeyCertPurpose.AGREEMENT, agrCert, name); - return new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores); + return new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores, null, null); } /** 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 75e7b8fcab2f..829c034ef63a 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 @@ -150,6 +150,7 @@ requires com.swirlds.virtualmap; requires com.fasterxml.jackson.core; requires com.fasterxml.jackson.dataformat.yaml; + requires com.hedera.cryptography.bls; 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..cef16fc8e6f6 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 @@ -105,7 +105,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 +144,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(); From 6fe30724c071269a7a53dfd6d8c515243ac58939 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Wed, 20 Nov 2024 09:30:36 -0500 Subject: [PATCH 02/16] wip Signed-off-by: Derek Riley --- gradle/modules.properties | 3 ++- hedera-dependency-versions/build.gradle.kts | 1 + platform-sdk/swirlds-platform-core/build.gradle.kts | 1 + .../main/java/com/swirlds/platform/crypto/KeysAndCerts.java | 5 ++++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gradle/modules.properties b/gradle/modules.properties index 91ffaf3418a0..be2c7266cf3d 100644 --- a/gradle/modules.properties +++ b/gradle/modules.properties @@ -6,4 +6,5 @@ com.hedera.cryptography.pairings.api=com.hedera.cryptography:hedera-cryptography-pairings-api com.hedera.cryptography.pairings.signatures=com.hedera.cryptography:hedera-cryptography-pairings-signatures jmh.core=org.openjdk.jmh:jmh-core -com.hedera.cryptography.bls=com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT \ No newline at end of file +com.hedera.cryptography.bls=com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT +com.hedera.cryptography.altbn128=com.hedera.cryptography:hedera-cryptography-altbn128:0.1.0-SNAPSHOT \ No newline at end of file diff --git a/hedera-dependency-versions/build.gradle.kts b/hedera-dependency-versions/build.gradle.kts index d3c79af3ca56..69d462b3dd3d 100644 --- a/hedera-dependency-versions/build.gradle.kts +++ b/hedera-dependency-versions/build.gradle.kts @@ -240,4 +240,5 @@ dependencies.constraints { api("io.grpc:protoc-gen-grpc-java:1.66.0") api("com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT") + api("com.hedera.cryptography:hedera-cryptography-altbn128:0.1.0-SNAPSHOT") } diff --git a/platform-sdk/swirlds-platform-core/build.gradle.kts b/platform-sdk/swirlds-platform-core/build.gradle.kts index 407f61076690..f467e355717d 100644 --- a/platform-sdk/swirlds-platform-core/build.gradle.kts +++ b/platform-sdk/swirlds-platform-core/build.gradle.kts @@ -24,6 +24,7 @@ plugins { dependencies { implementation("com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT") + implementation("com.hedera.cryptography:hedera-cryptography-altbn128:0.1.0-SNAPSHOT") // Add other dependencies if needed } 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 7cf165f25f93..ac353dee8463 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,7 @@ 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; @@ -192,7 +193,9 @@ public static KeysAndCerts generate( publicStores.setCertificate(KeyCertPurpose.SIGNING, sigCert, name); publicStores.setCertificate(KeyCertPurpose.AGREEMENT, agrCert, name); - return new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores, null, null); + BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair(); + + return new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores, blsKeyPair.privateKey(), blsKeyPair.publicKey()); } /** From 79edcb1ff0b9a35e1b32879f4a8a6e1704865198 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 25 Nov 2024 12:25:57 -0500 Subject: [PATCH 03/16] Added test resources, cleanup gradle Signed-off-by: Derek Riley --- gradle/modules.properties | 4 +- .../com.hedera.gradle.repositories.gradle.kts | 1 - ...hedera.gradle.settings.settings.gradle.kts | 1 - .../swirlds-platform-core/build.gradle.kts | 6 --- .../t-private-alice.tss | 3 ++ .../enhanced-invalid-case-1/t-private-bob.tss | 3 ++ .../t-private-carol.tss | 3 ++ .../t-private-alice.tss | 3 ++ .../enhanced-invalid-case-2/t-private-bob.tss | 3 ++ .../t-private-carol.tss | 3 ++ .../t-private-alice.tss | 3 ++ .../t-private-bob.tss | 3 ++ .../t-private-carol.tss | 3 ++ .../a-private-alice.pem | 6 +++ .../a-private-bob.pem | 6 +++ .../a-private-carol.pem | 6 +++ .../a-public-alice.pem | 40 +++++++++++++++++++ .../a-public-bob.pem | 40 +++++++++++++++++++ .../a-public-carol.pem | 40 +++++++++++++++++++ .../s-private-alice.pem | 40 +++++++++++++++++++ .../s-private-bob.pem | 40 +++++++++++++++++++ .../s-private-carol.pem | 40 +++++++++++++++++++ .../s-public-alice.pem | 24 +++++++++++ .../s-public-bob.pem | 24 +++++++++++ .../s-public-carol.pem | 24 +++++++++++ .../enhanced-valid/t-private-alice.tss | 3 ++ .../enhanced-valid/t-private-bob.tss | 3 ++ .../enhanced-valid/t-private-carol.tss | 3 ++ .../hybrid-invalid-case-1/t-private-alice.tss | 3 ++ .../hybrid-invalid-case-1/t-private-bob.tss | 3 ++ .../hybrid-invalid-case-1/t-private-carol.tss | 3 ++ .../hybrid-invalid-case-2/t-private-alice.tss | 3 ++ .../hybrid-invalid-case-2/t-private-bob.tss | 3 ++ .../hybrid-invalid-case-2/t-private-carol.tss | 3 ++ .../hybrid-valid/t-private-alice.tss | 3 ++ .../hybrid-valid/t-private-bob.tss | 3 ++ .../hybrid-valid/t-private-carol.tss | 3 ++ .../legacy-invalid-case-1/t-private-alice.tss | 3 ++ .../legacy-invalid-case-1/t-private-bob.tss | 3 ++ .../legacy-invalid-case-1/t-private-carol.tss | 3 ++ .../legacy-invalid-case-2/t-private-alice.tss | 3 ++ .../legacy-invalid-case-2/t-private-bob.tss | 3 ++ .../legacy-invalid-case-2/t-private-carol.tss | 3 ++ .../legacy-valid/t-private-alice.tss | 3 ++ .../legacy-valid/t-private-bob.tss | 3 ++ .../legacy-valid/t-private-carol.tss | 3 ++ .../t-private-alice.tss | 3 ++ .../t-private-alice.tss | 3 ++ .../t-private-bob.tss | 3 ++ .../t-private-carol.tss | 3 ++ 50 files changed, 433 insertions(+), 11 deletions(-) create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-1/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-2/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-agreement-key/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-private-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/s-public-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-1/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-invalid-case-2/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/hybrid-valid/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-1/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-invalid-case-2/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/legacy-valid/t-private-carol.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-private-key/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/migration-invalid-missing-public-key/t-private-carol.tss diff --git a/gradle/modules.properties b/gradle/modules.properties index 85d1cef4f03b..406336d32fec 100644 --- a/gradle/modules.properties +++ b/gradle/modules.properties @@ -10,6 +10,4 @@ com.hedera.cryptography.bls=com.hedera.cryptography:hedera-cryptography-bls com.hedera.cryptography.tss=com.hedera.cryptography:hedera-cryptography-tss com.hedera.cryptography.tss.impl=com.hedera.cryptography:hedera-cryptography-tss:impl com.hedera.cryptography.tss.api=com.hedera.cryptography:hedera-cryptography-tss:api -jmh.core=org.openjdk.jmh:jmh-core -com.hedera.cryptography.bls=com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT -com.hedera.cryptography.altbn128=com.hedera.cryptography:hedera-cryptography-altbn128:0.1.0-SNAPSHOT \ No newline at end of file +jmh.core=org.openjdk.jmh:jmh-core \ No newline at end of file diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts index 3fa960f6ada6..734cf240f7eb 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.repositories.gradle.kts @@ -15,7 +15,6 @@ */ repositories { - mavenLocal() mavenCentral() maven { url = uri("https://us-maven.pkg.dev/swirlds-registry/maven-prerelease-channel") } maven { url = uri("https://us-maven.pkg.dev/swirlds-registry/maven-develop-commits") } diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts index 15a534148666..5da00ecb2321 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.settings.settings.gradle.kts @@ -19,7 +19,6 @@ import org.gradlex.javamodule.dependencies.initialization.RootPluginsExtension pluginManagement { repositories { - mavenLocal() gradlePluginPortal() mavenCentral() maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } diff --git a/platform-sdk/swirlds-platform-core/build.gradle.kts b/platform-sdk/swirlds-platform-core/build.gradle.kts index 72027ae8ee85..3297b008d327 100644 --- a/platform-sdk/swirlds-platform-core/build.gradle.kts +++ b/platform-sdk/swirlds-platform-core/build.gradle.kts @@ -22,12 +22,6 @@ plugins { id("com.hedera.gradle.feature.test-timing-sensitive") } -dependencies { - implementation("com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT") - implementation("com.hedera.cryptography:hedera-cryptography-altbn128:0.1.0-SNAPSHOT") - // Add other dependencies if needed -} - // Remove the following line to enable all 'javac' lint checks that we have turned on by default // and then fix the reported issues. tasks.withType().configureEach { 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..d0887d720fb8 --- /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----- \ 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-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..9c191c18c8cc --- /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----- \ 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-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..f5920003a836 --- /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----- \ 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-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..d0887d720fb8 --- /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----- +AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +-----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-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..9c191c18c8cc --- /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----- +Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +-----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-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..f5920003a836 --- /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----- +AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +-----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-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..d0887d720fb8 --- /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----- \ 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-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..9c191c18c8cc --- /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----- \ 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-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..f5920003a836 --- /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----- \ 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/a-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-alice.pem new file mode 100644 index 000000000000..a9863d3413c6 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-alice.pem @@ -0,0 +1,6 @@ +-----BEGIN PRIVATE KEY----- +MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDMCd0mTGV8FPdx2Bad ++hboPm7fVQcLEALuWvjsaBcMmvzdNZg+SxTLRC0LtXxoy+WhZANiAAQRfI2N1kfF +PLo94g1q32WN86+8I9tvd/7GqayOS1SpJaPRhEtqfAJwM6WI1bZABAlBRGoZcFXQ +T8mP21bFDTO43YLwOT96QPaNxu9trhKKrYg0B592vhMi6grgh7z7wRg= +-----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/a-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-bob.pem new file mode 100644 index 000000000000..202f7d7e1aa0 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-bob.pem @@ -0,0 +1,6 @@ +-----BEGIN PRIVATE KEY----- +MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDiFgRuomU0cN4ZVJAS +zeW1c5OPthdiSGSbLown/FRYUEzcozYEHRqqOC4KX6FL5fKhZANiAARawVVA7wBE +uMcWadtityB5uab0v5IODr9G6ttKYoz7aVzeMVYuSQzvJhaot3xKWFRvNQD2dnXu +NiKaUmqix9mn06dbbvqVXhfTgVKYjEQP5dkHTM3SLbAz5/LLkutJ74Y= +-----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/a-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-carol.pem new file mode 100644 index 000000000000..17a6c011618a --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-carol.pem @@ -0,0 +1,6 @@ +-----BEGIN PRIVATE KEY----- +MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBNMxT1NdZ7X9nBrDbs +oF0IL2uGElr0VBNCrsZs+dd83UMSFEgf/c0ZXTBaM0fdKPihZANiAARKYtjj7CSm +g8g3zjsf8oJQNSVnOz4pcQyGVTiOS5q83vszrFVuo43vbj7Nl1yVOy2WahKOJH8z +MOxzggT5A4mNmU4JgxWhnmvX+q+uVTztbKAvyHEZC3OXRBBNxgRAiVQ= +-----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/a-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-alice.pem new file mode 100644 index 000000000000..eb0dc2620240 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-alice.pem @@ -0,0 +1,40 @@ +-----BEGIN CERTIFICATE----- +MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k +ZTAwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh +LW5vZGUwMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEXyNjdZHxTy6PeINat9ljfOv +vCPbb3f+xqmsjktUqSWj0YRLanwCcDOliNW2QAQJQURqGXBV0E/J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kjUST7Ld0xzJISRQyE+TP0XQ0DBcMXX5NxtXv1a6vLE +asvjzxFpa39ulSow4dZmq7BV+s6Wz7e7U1sOhk9CcRTpcs7Iaks9lZZhqpBI9AfT +GAZgPEbg+RKZ7jrsx7aYC3xTPSTvU4jk0X8CwWXjJe1AaWZEj7AZsV6qzHwxrgSH +z+L+sKe8a0yMBMThbhQsYTb6Fm1yLDsnEL2iFna/++TsRTarQK6OOpeZEk3s4lnS +bZRKZyJaUVNW6cknOIxIXac/CEF9EzYgwpCUu+fBYZ8tQ4jYGBbmZwIDAQABo2cw +ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr +BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFCvppktifICQ9gt+ZCrI +GNskYJbYMA0GCSqGSIb3DQEBDAUAA4IBgQCDCwtZIlBCUtTdZpiPo8cS4W0r5j3X +xnX1PLVMEo5bgO2N1Kt86ipUW23wo6+RT5KAgRQ68SQ57w4SgQ/OypPZy+ya6hI4 +7c7Oyrm3yb7vHcb/oWSYh4TLa+J5YHchg3sIFusvLR68tDptdXnlVZqfNXbvbe+m +5ucTtPWe49zeOy9nz2DT9EbLzEJzvEbasqaYM9y9rIfB7A+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-valid-no-tss-key/a-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem new file mode 100644 index 000000000000..061ccdfac634 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem @@ -0,0 +1,40 @@ +-----BEGIN CERTIFICATE----- +MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k +ZTEwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh +LW5vZGUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWsFVQO8ARLjHFmnbYrcgebmm +9L+SDg6/RurbSmKM+2lc3jFWLkkM7yYWqLd8SlhUbzUA9nZ17jYimlJqosfZp9On +W276lV4X04FSmIxED+XZB0zN0i2wM+fyy5LrSe+Gow8wDTALBgNVHQ8EBAMCBaAw +DQYJKoZIhvcNAQEMBQADggGBAKbVrNmF+BdUMVx8BxjXeQOXVZGhPpgRqI5RwzA3 +DHeNx49k3sR/62YJvVqdyC183RqJ2H7FdtXjhHcQPf2pc2KlAvt4Iq8JkSGASFAU +sbhFjMuRUHFP4kdu96oGOrkelmlWat182EL+4g0f6RTLNMrPKkRwhoafTOZMbmX4 +p0xuwOmvgEjXXGRRW1VgzXNvMsWaKXPM5sVcNHZj/tOMBRb3mjvI2AOF/6Vmn5B7 +6cx0qr2ck+sF+Ma+hKkfvmMzfUetxzGxPq07qoQ9EUTl1YCsuh9f2XNW/gILlu1B +pOwNilg/Eet31foDZJiAWHAZ9bOjH+OFkqtFjut12tfaXGwK0VPE3rfeL3GTOwTm +vMow2tyQBCac0rwxu+8IKE8g+z0mR8SKcpuZBLG1QPeljJl0nkVUTo+Yv7EfPqVJ +kQPmrs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hJ0VwiAVZSM+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/a-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-carol.pem new file mode 100644 index 000000000000..39808bfc8eab --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-carol.pem @@ -0,0 +1,40 @@ +-----BEGIN CERTIFICATE----- +MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k +ZTIwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh +LW5vZGUyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAESmLY4+wkpoPIN847H/KCUDUl +Zzs+KXEMhlU4jkuavN77M6xVbqON724+zZdclTstlmoSjiR/MzDsc4IE+QOJjZlO +CYMVoZ5r1/qvrlU87WygL8hxGQtzl0QQTcYEQIlUow8wDTALBgNVHQ8EBAMCBaAw +DQYJKoZIhvcNAQEMBQADggGBAEy5a6ggziuMO27TvGJc9bguNTVOZwb77KVFESLe +st1VNfSn/5Go+glzzKXg8fKemYKmqcQe5z8T6iu39PDmmyIUzzxcii7/A6ZOAkHg +URxAPwJQU2IS1ETREX9eObOzBvqXixwlMBub/BiHrpbf66hpNnjSbr0evIe7l60A +lSawav84u7GiddmtoYOnleifPl816M9vT/6ImC0GEcMly6/va78JPGCrPgh/tpH4 +9SSE8N4yiFTDQ70xl0w83fEpdsC3pkM2ElU3Qo9BQaHnJkf8/Tn1CXwlULtG58nV +DjZkinUl3nVoq5PZmkz5YBGmgcOK2TBVQccSw92EsgskyNmnPNib/IGhm7BV+Vf+ +ZOWPLVIgh/z5sHtdxnedYQO9NbMuAp+sdZnMjHIp0h/n1QxvwDIpONezKpu5fnGj +i131s4qgZZGwjI1zORvNmSoTnwxpO1uoEPJVuSQjLqcD1xvShYCyjbqGGPHXS23U +XxRz+A+GoWoakBatyVljNyYllA== +-----END CERTIFICATE----- +-----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-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/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/4RHTryyCwtfvN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7U41P +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-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+v0ZYir64FWxJo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pnk+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 +B1JAJs3PnIIEC7BuKeeWs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iOwG4W49gp/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-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----- +MIIEBjCCAm6gAwIBAgIBATANB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IfB7A+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-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 @@ +-----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-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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..d0887d720fb8 --- /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----- \ No newline at end of file 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..9c191c18c8cc --- /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----- \ No newline at end of file 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..f5920003a836 --- /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----- \ No newline at end of file From da91b858ee2028687ca9355bb8f1296f9d2ec0ae Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 25 Nov 2024 13:10:26 -0500 Subject: [PATCH 04/16] Update KeysAndCerts for deterministic generation Signed-off-by: Derek Riley --- .../swirlds/platform/crypto/CryptoStatic.java | 7 +++++-- .../crypto/EnhancedKeyStoreLoader.java | 2 +- .../swirlds/platform/crypto/KeysAndCerts.java | 19 +++++++++++++++++-- .../src/main/java/module-info.java | 2 +- 4 files changed, 24 insertions(+), 6 deletions(-) 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 2597484b49d4..dd42dcccd8c6 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 @@ -635,10 +635,13 @@ public static Map initNodeSecurity( * @return a new {@link BlsKeyPair} * @throws NoSuchAlgorithmException the algorithm is not supported */ - public static BlsKeyPair generateBlsKeyPair() throws NoSuchAlgorithmException { + public static BlsKeyPair generateBlsKeyPair(@Nullable final SecureRandom secureRandom) + throws NoSuchAlgorithmException { final SignatureSchema SIGNATURE_SCHEMA = SignatureSchema.create(Curve.ALT_BN128, GroupAssignment.SHORT_SIGNATURES); - final SecureRandom secureRandom = SecureRandom.getInstanceStrong(); + if (secureRandom == null) { + return BlsKeyPair.generate(SIGNATURE_SCHEMA); + } return BlsKeyPair.generate(SIGNATURE_SCHEMA, secureRandom); } 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 8c053ee2c88e..6d14815d8ec5 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 @@ -396,7 +396,7 @@ public EnhancedKeyStoreLoader generate() if (!tssPrivateKeys.containsKey(node)) { // Create a new public/private key pair for the TSS encryption key - BlsKeyPair tssKeyPair = CryptoStatic.generateBlsKeyPair(); + BlsKeyPair tssKeyPair = CryptoStatic.generateBlsKeyPair(null); tssPrivateKeys.put(node, tssKeyPair.privateKey()); tssPublicKeys.put(node, tssKeyPair.publicKey()); // Write the private key to disk 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 ac353dee8463..ee5f56d17edb 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 @@ -67,6 +67,7 @@ public record KeysAndCerts( 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 @@ -157,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); @@ -176,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(); @@ -193,9 +201,16 @@ public static KeysAndCerts generate( publicStores.setCertificate(KeyCertPurpose.SIGNING, sigCert, name); publicStores.setCertificate(KeyCertPurpose.AGREEMENT, agrCert, name); - BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair(); + BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair(tssEncryptionKeyRandom); - return new KeysAndCerts(sigKeyPair, agrKeyPair, sigCert, agrCert, publicStores, blsKeyPair.privateKey(), blsKeyPair.publicKey()); + 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 b04ed7d8d778..d0751e489f97 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 @@ -149,8 +149,8 @@ requires com.swirlds.virtualmap; requires com.fasterxml.jackson.core; requires com.fasterxml.jackson.dataformat.yaml; - requires com.hedera.cryptography.bls; requires com.github.spotbugs.annotations; + requires com.hedera.cryptography.bls; requires java.desktop; requires java.management; requires java.scripting; From 59cd3bc62a3ba8e2b770b800f71659326341cbb6 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 25 Nov 2024 13:22:52 -0500 Subject: [PATCH 05/16] wip Signed-off-by: Derek Riley --- gradle/modules.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/modules.properties b/gradle/modules.properties index 406336d32fec..153fd57d0ebf 100644 --- a/gradle/modules.properties +++ b/gradle/modules.properties @@ -10,4 +10,4 @@ com.hedera.cryptography.bls=com.hedera.cryptography:hedera-cryptography-bls com.hedera.cryptography.tss=com.hedera.cryptography:hedera-cryptography-tss com.hedera.cryptography.tss.impl=com.hedera.cryptography:hedera-cryptography-tss:impl com.hedera.cryptography.tss.api=com.hedera.cryptography:hedera-cryptography-tss:api -jmh.core=org.openjdk.jmh:jmh-core \ No newline at end of file +jmh.core=org.openjdk.jmh:jmh-core From 1d5bd12d3dc48aefbdbc3a76df2dd6ef24e9cfc1 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 25 Nov 2024 13:49:57 -0500 Subject: [PATCH 06/16] module info and codacy Signed-off-by: Derek Riley --- .../main/java/com/swirlds/platform/crypto/KeysAndCerts.java | 2 +- .../swirlds-platform-core/src/main/java/module-info.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 ee5f56d17edb..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 @@ -201,7 +201,7 @@ public static KeysAndCerts generate( publicStores.setCertificate(KeyCertPurpose.SIGNING, sigCert, name); publicStores.setCertificate(KeyCertPurpose.AGREEMENT, agrCert, name); - BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair(tssEncryptionKeyRandom); + final BlsKeyPair blsKeyPair = CryptoStatic.generateBlsKeyPair(tssEncryptionKeyRandom); return new KeysAndCerts( sigKeyPair, 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 d0751e489f97..72f38eefd8bf 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 @@ -149,8 +149,9 @@ requires com.swirlds.virtualmap; requires com.fasterxml.jackson.core; requires com.fasterxml.jackson.dataformat.yaml; + requires com.hedera.cryptography.pairings.api; + requires transitive com.hedera.cryptography.bls; requires com.github.spotbugs.annotations; - requires com.hedera.cryptography.bls; requires java.desktop; requires java.management; requires java.scripting; From 186b83935a590779e4315e9d095af54aa3b6bdb7 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 25 Nov 2024 14:23:03 -0500 Subject: [PATCH 07/16] Added another test case Signed-off-by: Derek Riley --- .../crypto/EnhancedKeyStoreLoader.java | 2 +- .../src/main/java/module-info.java | 4 +-- .../crypto/EnhancedKeyStoreLoaderTest.java | 26 +++++++++++++++++++ .../t-private-alice.tss | 2 +- .../enhanced-invalid-case-2/t-private-bob.tss | 2 +- .../t-private-carol.tss | 2 +- 6 files changed, 32 insertions(+), 6 deletions(-) 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 6d14815d8ec5..57cc0ce26011 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 @@ -345,7 +345,7 @@ private BlsPrivateKey resolveTssPrivateKey(@NonNull final NodeId nodeId, @NonNul keyLocation.getFileName()); try { return AsciiArmoredFiles.readPrivateKey(keyLocation); - } catch (final IOException e) { + } 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); } 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 72f38eefd8bf..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; @@ -149,9 +150,8 @@ requires com.swirlds.virtualmap; requires com.fasterxml.jackson.core; requires com.fasterxml.jackson.dataformat.yaml; - requires com.hedera.cryptography.pairings.api; - requires transitive com.hedera.cryptography.bls; 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 cef16fc8e6f6..43d3342cec96 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(); @@ -204,6 +210,26 @@ 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).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-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 index d0887d720fb8..c8ddba877eed 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- -AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl +ATD1I7+Pyho6oh7fpzj2tQxTV9Vp2a3wSia9jsXw1bUI -----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-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 index 9c191c18c8cc..9918d9ceec91 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- -Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO +AXtqyKZ3PTuSk3t4BY1Gcxiw6SifnuXzU1zO/Zmh7NUZ -----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-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 index f5920003a836..8c27e9f99a47 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- -AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv +AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS -----END PRIVATE KEY----- \ No newline at end of file From 105fd6162bc88a6936b35b8126136905537fe203 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 25 Nov 2024 17:26:51 -0500 Subject: [PATCH 08/16] additional test resources Signed-off-by: Derek Riley --- .../a-private-alice.pem | 6 +++ .../enhanced-invalid-case-3/a-private-bob.pem | 6 +++ .../a-private-carol.pem | 6 +++ .../a-public-alice.pem | 40 +++++++++++++++++++ .../enhanced-invalid-case-3/a-public-bob.pem | 40 +++++++++++++++++++ .../a-public-carol.pem | 40 +++++++++++++++++++ .../s-private-alice.pem | 40 +++++++++++++++++++ .../enhanced-invalid-case-3/s-private-bob.pem | 40 +++++++++++++++++++ .../s-private-carol.pem | 40 +++++++++++++++++++ .../s-public-alice.pem | 24 +++++++++++ .../enhanced-invalid-case-3/s-public-bob.pem | 24 +++++++++++ .../s-public-carol.pem | 24 +++++++++++ .../t-private-alice.tss | 3 ++ .../enhanced-invalid-case-3/t-private-bob.tss | 3 ++ .../t-private-carol.tss | 3 ++ 15 files changed, 339 insertions(+) create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-carol.tss diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem new file mode 100644 index 000000000000..a9863d3413c6 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem @@ -0,0 +1,6 @@ +-----BEGIN PRIVATE KEY----- +MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDMCd0mTGV8FPdx2Bad ++hboPm7fVQcLEALuWvjsaBcMmvzdNZg+SxTLRC0LtXxoy+WhZANiAAQRfI2N1kfF +PLo94g1q32WN86+8I9tvd/7GqayOS1SpJaPRhEtqfAJwM6WI1bZABAlBRGoZcFXQ +T8mP21bFDTO43YLwOT96QPaNxu9trhKKrYg0B592vhMi6grgh7z7wRg= +-----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/a-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-bob.pem new file mode 100644 index 000000000000..202f7d7e1aa0 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-bob.pem @@ -0,0 +1,6 @@ +-----BEGIN PRIVATE KEY----- +MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDiFgRuomU0cN4ZVJAS +zeW1c5OPthdiSGSbLown/FRYUEzcozYEHRqqOC4KX6FL5fKhZANiAARawVVA7wBE +uMcWadtityB5uab0v5IODr9G6ttKYoz7aVzeMVYuSQzvJhaot3xKWFRvNQD2dnXu +NiKaUmqix9mn06dbbvqVXhfTgVKYjEQP5dkHTM3SLbAz5/LLkutJ74Y= +-----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/a-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-carol.pem new file mode 100644 index 000000000000..17a6c011618a --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-carol.pem @@ -0,0 +1,6 @@ +-----BEGIN PRIVATE KEY----- +MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBNMxT1NdZ7X9nBrDbs +oF0IL2uGElr0VBNCrsZs+dd83UMSFEgf/c0ZXTBaM0fdKPihZANiAARKYtjj7CSm +g8g3zjsf8oJQNSVnOz4pcQyGVTiOS5q83vszrFVuo43vbj7Nl1yVOy2WahKOJH8z +MOxzggT5A4mNmU4JgxWhnmvX+q+uVTztbKAvyHEZC3OXRBBNxgRAiVQ= +-----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/a-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-alice.pem new file mode 100644 index 000000000000..eb0dc2620240 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-alice.pem @@ -0,0 +1,40 @@ +-----BEGIN CERTIFICATE----- +MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k +ZTAwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh +LW5vZGUwMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEXyNjdZHxTy6PeINat9ljfOv +vCPbb3f+xqmsjktUqSWj0YRLanwCcDOliNW2QAQJQURqGXBV0E/Jj9tWxQ0zuN2C +8Dk/ekD2jcbvba4Siq2INAefdr4TIuoK4Ie8+8EYow8wDTALBgNVHQ8EBAMCBaAw +DQYJKoZIhvcNAQEMBQADggGBABpr64wZXplfsBEonqkwpmABSMgX/VvYEWInp7o0 +0ZUChR/1D+Qykh7TNLfeTWehEZ8MA5g4eUc2I+ZiWrQG7Re6UVAPdqJjw5QRq5zQ +KHd6/kcotlXLnkdI0rK0Uk4Xj2de0S8HwTyFmgkrDw4IO24RHlocy+tTsKRUmQKS +vY3edTmlokC573+QYteqC2a8kwHqmTRdl7/ott3Z6W5WjwzBUqtK8xGKo5ddMt2o +yAggqakedvbeLaPyDPMFvLJ7S5rrm/K3Nkfqmjls+ljYoq7abxBgmGgwPM/C05hs +HZCMrGcMSD6vMW0l+j3nUi0fyvG1zaM8/Nssr80+EW3ch63q0VyoXkHi0IFyCtBD +nI4Z5WdHMLxakgcqsU31ReR0Cqxt4BzMeJcix6xENMr6uaCeFVA2caK/tOoNvO/g +fEh0U37mV16QYmEMDNXw8qwBvrN4xqLBr8X7Kfstoe/sQRGuX/ReO24lUlVG+6Bp +yQ1bjchO7hxRV4HTf7sY4AlJmw== +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUwMB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XGQNqguB6KzuWZ224xAAZd0kxIE7wbHFrcFyI8ki +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/a-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-bob.pem new file mode 100644 index 000000000000..061ccdfac634 --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-bob.pem @@ -0,0 +1,40 @@ +-----BEGIN CERTIFICATE----- +MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k +ZTEwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh +LW5vZGUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWsFVQO8ARLjHFmnbYrcgebmm +9L+SDg6/RurbSmKM+2lc3jFWLkkM7yYWqLd8SlhUbzUA9nZ17jYimlJqosfZp9On +W276lV4X04FSmIxED+XZB0zN0i2wM+fyy5LrSe+Gow8wDTALBgNVHQ8EBAMCBaAw +DQYJKoZIhvcNAQEMBQADggGBAKbVrNmF+BdUMVx8BxjXeQOXVZGhPpgRqI5RwzA3 +DHeNx49k3sR/62YJvVqdyC183RqJ2H7FdtXjhHcQPf2pc2KlAvt4Iq8JkSGASFAU +sbhFjM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X/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/a-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-carol.pem new file mode 100644 index 000000000000..39808bfc8eab --- /dev/null +++ b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-carol.pem @@ -0,0 +1,40 @@ +-----BEGIN CERTIFICATE----- +MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k +ZTIwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh +LW5vZGUyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAESmLY4+wkpoPIN847H/KCUDUl +Zzs+KXEMhlU4jkuavN77M6xVbqON724+zZdclTstlmoSjiR/MzDsc4IE+QOJjZlO +CYMVoZ5r1/qvrlU87WygL8hxGQtzl0QQTcYEQIlUow8wDTALBgNVHQ8EBAMCBaAw +DQYJKoZIhvcNAQEMBQADggGBAEy5a6ggziuMO27TvGJc9bguNTVOZwb77KVFESLe +st1VNfSn/5Go+glzzKXg8fKemYKmqcQe5z8T6iu39PDmmyIUzzxcii7/A6ZOAkHg +URxAPwJQU2IS1ETREX9eObOzBvqXixwlMBub/BiHrpbf66hpNnjSbr0evIe7l60A +lSawav84u7GiddmtoYOnleifPl816M9vT/6ImC0GEcMly6/va78JPGCrPgh/tpH4 +9SSE8N4yiFTDQ70xl0w83fEpdsC3pkM2ElU3Qo9BQaHnJkf8/Tn1CXwlULtG58nV +DjZkinUl3nVoq5PZmkz5YBGmgcOK2TBVQccSw92EsgskyNmnPNib/IGhm7BV+Vf+ +ZOWPLVIgh/z5sHtdxnedYQO9NbMuAp+sdZnMjHIp0h/n1QxvwDIpONezKpu5fnGj +i131s4qgZZGwjI1zORvNmSoTnwxpO1uoEPJVuSQjLqcD1xvShYCyjbqGGPHXS23U +XxRz+A+GoWoakBatyVljNyYllA== +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUyMB4XDTI0MDExOTAzNTk1NloXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMjCC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r8a6pfK0HXkup2mM1 +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/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 +SmciWlFTVunJJziMSF2nPwhBfRM2IMKQlLv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+xZ69SXvxuQKBwHASYYV3SEqT4iZBCUpzz/cAZM0Gm6+Pre43Ap+r8fsv3LkcDpwc +L9otxoKDotK/toVBXG+YD7Ss9jT30evfMd5M/gxuFLIh1wm8xEQBUCtU8IuThxdt +fU/KgaFpdZ0FKBzL9JY0rnKHgW+2RJnT51R4/Ns7p23c/wLg6ssdq8OngN+qyAls +Snqnvntg4O7L6ya0VlWjf1oWYLnj1erpAeVduJY+haqGsRZISTn4sb8oKseIM2DI +z3w6K35EaF7SYwKBwAgQZuvGf4a0NfUBvF10CUzV+G0hCnjy+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/E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RAyci6OQKmiCAY +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-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 +ZLrIqUYB2xkS7bE3tn28HKyOcCEvEODnriy9POZ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UaYYUq/OHWqt +ATLF3x4Bqkiam5cMCUCCfQCKzGsE9iaHjgx6dSOhHLy8KxM8BssBuDeAWCtIwirn +B0v2i4oScq29ZXL10mpxMkrzYeNuy8I+9MlfA3IptVS92Ts8+SrFjwHE5ySlts7f +wfGT/eGSZxBNMP9x8RWnIy9i4YywrIDFrXTSAjIkKMbg15p3w9/B4WH3yPSrlbee +ON1SWYnieQKBwA/qDCV7Y68Kxfj339gZyhcDUi96FWQHjImbLo/8evwG+wgDGGlb +tR6HCNUCjjsUuNubn3qqB5vC75JTNXQi4PSiOwG4W49gp/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----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUwMB4XDTI0MDExOTAzNTk1NVoXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALAhZY0R2eAn +QXXSjpZTlL8rVM3l/mCPpSvMXVwwnDAxuczXoiinPgS+p6NkxPAzLGI9+VBTWiDL +hiJEQhBvmpK2+JvbpF9mlsvNb5oq/vKfpuZQYqfIxobDer0OSnO2JooT/mMG/frH +qgKod2LYWoeZgza2tsv+HDBBdh2S+ZxihoNOFpMHAuee8x5EWkAHMa6k+lrrbx0c +JcaIObU0ylfXZlCJlbZw3kjUST7Ld0xzJISRQyE+TP0XQ0DBcMXX5NxtXv1a6vLE +asvjzxFpa39ulSow4dZmq7BV+s6Wz7e7U1sOhk9CcRTpcs7Iaks9lZZhqpBI9AfT +GAZgPEbg+RKZ7jrsx7aYC3xTPSTvU4jk0X8CwWXjJe1AaWZEj7AZsV6qzHwxrgSH +z+L+sKe8a0yMBMThbhQsYTb6Fm1yLDsnEL2iFna/++TsRTarQK6OOpeZEk3s4lnS +bZRKZyJaUVNW6cknOIxIXac/CEF9EzYgwpCUu+fBYZ8tQ4jYGBbmZwIDAQABo2cw +ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr +BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFCvppktifICQ9gt+ZCrI +GNskYJbYMA0GCSqGSIb3DQEBDAUAA4IBgQCDCwtZIlBCUtTdZpiPo8cS4W0r5j3X +xnX1PLVMEo5bgO2N1Kt86ipUW23wo6+RT5KAgRQ68SQ57w4SgQ/OypPZy+ya6hI4 +7c7Oyrm3yb7vHcb/oWSYh4TLa+J5YHchg3sIFusvLR68tDptdXnlVZqfNXbvbe+m +5ucTtPWe49zeOy9nz2DT9EbLzEJzvEbasqaYM9y9rIfB7A+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 +ZGUxMB4XDTI0MDExOTAzNTk1NloXDTM0MDExOTAzNTk1NlowEjEQMA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RaKBgx5gKq1ZqVLo9PKKgUIOK1DOYKM97NEMJholk5iUYRF +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..da9cda5a4213 --- /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----- \ 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/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..9918d9ceec91 --- /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----- \ 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/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..8c27e9f99a47 --- /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----- \ No newline at end of file From 3d7c771923f06d88788288b172873af2a1918dae Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Tue, 26 Nov 2024 13:24:57 -0500 Subject: [PATCH 09/16] Update gradle build and module-info Signed-off-by: Derek Riley --- hedera-dependency-versions/build.gradle.kts | 8 ++++---- hedera-node/hedera-app/src/main/java/module-info.java | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hedera-dependency-versions/build.gradle.kts b/hedera-dependency-versions/build.gradle.kts index e9f881c7a9aa..d396bf80e081 100644 --- a/hedera-dependency-versions/build.gradle.kts +++ b/hedera-dependency-versions/build.gradle.kts @@ -238,16 +238,16 @@ dependencies.constraints { api("com.google.protobuf:protoc:3.25.4") api("io.grpc:protoc-gen-grpc-java:1.66.0") - api("com.hedera.cryptography:hedera-cryptography-pairings-api:0.1.0-SNAPSHOT") { + api("com.hedera.cryptography:hedera-cryptography-pairings-api:0.1.1-SNAPSHOT") { because("com.hedera.cryptography.pairings.api") } - api("com.hedera.cryptography:hedera-cryptography-altbn128:0.1.0-SNAPSHOT") { + api("com.hedera.cryptography:hedera-cryptography-altbn128:0.1.1-SNAPSHOT") { because("com.hedera.cryptography.altbn128") } - api("com.hedera.cryptography:hedera-cryptography-bls:0.1.0-SNAPSHOT") { + api("com.hedera.cryptography:hedera-cryptography-bls:0.1.1-SNAPSHOT") { because("com.hedera.cryptography.bls") } - api("com.hedera.cryptography:hedera-cryptography-tss:0.1.0-SNAPSHOT") { + api("com.hedera.cryptography:hedera-cryptography-tss:0.1.1-SNAPSHOT") { because("com.hedera.cryptography.tss") } } 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 cf58100ff153..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.spi.PairingFriendlyCurveProvider; - 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; From 899eef1074477aad7de32814e4b972dfc27fca5f Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Wed, 27 Nov 2024 13:16:53 -0500 Subject: [PATCH 10/16] module-info Signed-off-by: Derek Riley --- hedera-node/hedera-app/src/main/java/module-info.java | 1 - 1 file changed, 1 deletion(-) 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..3de9dea9a122 100644 --- a/hedera-node/hedera-app/src/main/java/module-info.java +++ b/hedera-node/hedera-app/src/main/java/module-info.java @@ -2,7 +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; From c3ee8623d416ecbc1cdfc268649ada9504a4bc3d Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 2 Dec 2024 10:05:58 -0500 Subject: [PATCH 11/16] address review comments Signed-off-by: Derek Riley --- hedera-node/hedera-app/src/main/java/module-info.java | 1 - .../main/java/com/swirlds/platform/crypto/CryptoStatic.java | 6 ++++-- .../swirlds/platform/crypto/EnhancedKeyStoreLoaderTest.java | 6 +++++- .../enhanced-invalid-case-1/t-private-alice.tss | 2 +- .../enhanced-invalid-case-1/t-private-bob.tss | 2 +- .../enhanced-invalid-case-1/t-private-carol.tss | 2 +- .../enhanced-invalid-case-2/t-private-alice.tss | 2 +- .../enhanced-invalid-case-2/t-private-bob.tss | 2 +- .../enhanced-invalid-case-2/t-private-carol.tss | 2 +- .../enhanced-invalid-case-3/t-private-alice.tss | 2 +- .../enhanced-invalid-case-3/t-private-bob.tss | 2 +- .../enhanced-invalid-case-3/t-private-carol.tss | 2 +- .../enhanced-valid-no-agreement-key/t-private-alice.tss | 2 +- .../enhanced-valid-no-agreement-key/t-private-bob.tss | 2 +- .../enhanced-valid-no-agreement-key/t-private-carol.tss | 2 +- .../enhanced-valid/t-private-alice.tss | 2 +- .../EnhancedKeyStoreLoader/enhanced-valid/t-private-bob.tss | 2 +- .../enhanced-valid/t-private-carol.tss | 2 +- .../hybrid-invalid-case-1/t-private-alice.tss | 2 +- .../hybrid-invalid-case-1/t-private-bob.tss | 2 +- .../hybrid-invalid-case-1/t-private-carol.tss | 2 +- .../hybrid-invalid-case-2/t-private-alice.tss | 2 +- .../hybrid-invalid-case-2/t-private-bob.tss | 2 +- .../hybrid-invalid-case-2/t-private-carol.tss | 2 +- .../EnhancedKeyStoreLoader/hybrid-valid/t-private-alice.tss | 2 +- .../EnhancedKeyStoreLoader/hybrid-valid/t-private-bob.tss | 2 +- .../EnhancedKeyStoreLoader/hybrid-valid/t-private-carol.tss | 2 +- .../legacy-invalid-case-1/t-private-alice.tss | 2 +- .../legacy-invalid-case-1/t-private-bob.tss | 2 +- .../legacy-invalid-case-1/t-private-carol.tss | 2 +- .../legacy-invalid-case-2/t-private-alice.tss | 2 +- .../legacy-invalid-case-2/t-private-bob.tss | 2 +- .../legacy-invalid-case-2/t-private-carol.tss | 2 +- .../EnhancedKeyStoreLoader/legacy-valid/t-private-alice.tss | 2 +- .../EnhancedKeyStoreLoader/legacy-valid/t-private-bob.tss | 2 +- .../EnhancedKeyStoreLoader/legacy-valid/t-private-carol.tss | 2 +- .../t-private-alice.tss | 2 +- .../t-private-alice.tss | 2 +- .../migration-invalid-missing-public-key/t-private-bob.tss | 2 +- .../t-private-carol.tss | 2 +- 40 files changed, 46 insertions(+), 41 deletions(-) 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 3de9dea9a122..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,7 +2,6 @@ import com.swirlds.config.api.ConfigurationExtension; module com.hedera.node.app { - 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 dd42dcccd8c6..eabdc0599df7 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 @@ -97,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; @@ -637,11 +639,11 @@ public static Map initNodeSecurity( */ public static BlsKeyPair generateBlsKeyPair(@Nullable final SecureRandom secureRandom) throws NoSuchAlgorithmException { - final SignatureSchema SIGNATURE_SCHEMA = - SignatureSchema.create(Curve.ALT_BN128, GroupAssignment.SHORT_SIGNATURES); 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); } 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 43d3342cec96..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 @@ -227,7 +227,11 @@ void keyStoreLoaderNegativeCorruptTssKey() throws IOException { assertThat(loader).isNotNull(); assertThatCode(loader::migrate).doesNotThrowAnyException(); - assertThatCode(loader::scan).isInstanceOf(KeyLoadingException.class); + assertThatCode(loader::scan) + .as( + "Scan operation should throw KeyLoadingException when processing a corrupt TSS key in '%s'", + keyDirectory) + .isInstanceOf(KeyLoadingException.class); } /** 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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index c8ddba877eed..2e4325256356 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- ATD1I7+Pyho6oh7fpzj2tQxTV9Vp2a3wSia9jsXw1bUI ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9918d9ceec91..f539b89a98a8 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AXtqyKZ3PTuSk3t4BY1Gcxiw6SifnuXzU1zO/Zmh7NUZ ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 8c27e9f99a47..c23ec154637b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS ------END PRIVATE KEY----- \ No newline at end of file +-----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-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss index da9cda5a4213..f52048a80fac 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- CORRUPTEDTSSKEY ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9918d9ceec91..f539b89a98a8 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AXtqyKZ3PTuSk3t4BY1Gcxiw6SifnuXzU1zO/Zmh7NUZ ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 8c27e9f99a47..c23ec154637b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----END PRIVATE KEY----- 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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index d0887d720fb8..dd4c53260491 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AVS7ccxMt5screfvBWYJkUhm3SRhdkNxvsk8KcDMEXgl ------END PRIVATE KEY----- \ No newline at end of file +-----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 index 9c191c18c8cc..11141dbd568c 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- Abp8DkXb98ee86gVDHynZTOSsOtLI2Y+trNzL+ERu2gO ------END PRIVATE KEY----- \ No newline at end of file +-----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 index f5920003a836..2089c056c16b 100644 --- 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 @@ -1,3 +1,3 @@ -----BEGIN PRIVATE KEY----- AbkZoskhbWjGqnbAjDKYA3uBExxwoILiEqm9QOeyx3Yv ------END PRIVATE KEY----- \ No newline at end of file +-----END PRIVATE KEY----- From bc6321406087436c11da4f2df37b00268c43bb4e Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 2 Dec 2024 17:25:20 -0500 Subject: [PATCH 12/16] Cleanup Signed-off-by: Derek Riley --- .../swirlds/platform/crypto/CryptoStatic.java | 1 + .../crypto/EnhancedKeyStoreLoader.java | 9 +---- .../a-private-alice.pem | 6 --- .../enhanced-invalid-case-3/a-private-bob.pem | 6 --- .../a-private-carol.pem | 6 --- .../a-public-alice.pem | 40 ------------------- .../enhanced-invalid-case-3/a-public-bob.pem | 40 ------------------- .../a-public-carol.pem | 40 ------------------- .../a-private-alice.pem | 6 --- .../a-private-bob.pem | 6 --- .../a-private-carol.pem | 6 --- .../a-public-alice.pem | 40 ------------------- .../a-public-bob.pem | 40 ------------------- .../a-public-carol.pem | 40 ------------------- 14 files changed, 3 insertions(+), 283 deletions(-) delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-bob.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-carol.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-alice.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-bob.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-carol.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-alice.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-bob.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-carol.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-alice.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-carol.pem 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 eabdc0599df7..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 @@ -634,6 +634,7 @@ public static Map initNodeSecurity( /** * 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 */ 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 57cc0ce26011..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 @@ -394,9 +394,9 @@ public EnhancedKeyStoreLoader generate() agrCertificates.put(node, agrCert); } - if (!tssPrivateKeys.containsKey(node)) { + if (!tssPrivateKeys.containsKey(node) || tssPrivateKeys.get(node) == null) { // Create a new public/private key pair for the TSS encryption key - BlsKeyPair tssKeyPair = CryptoStatic.generateBlsKeyPair(null); + BlsKeyPair tssKeyPair = CryptoStatic.generateBlsKeyPair(SecureRandom.getInstanceStrong()); tssPrivateKeys.put(node, tssKeyPair.privateKey()); tssPublicKeys.put(node, tssKeyPair.publicKey()); // Write the private key to disk @@ -969,11 +969,6 @@ private Path privateKeyStore(@NonNull String nodeAlias, @NonNull KeyCertPurpose return keyStoreDirectory.resolve(String.format("%s-private-%s.pem", purpose.prefix(), nodeAlias)); } - private Path tssPrivateKeyPath(@NonNull String nodeAlias) { - Objects.requireNonNull(nodeAlias, MSG_NODE_ALIAS_NON_NULL); - return keyStoreDirectory.resolve(String.format("t-private-%s.tss", nodeAlias)); - } - /** * Utility method for resolving the {@link Path} to the legacy private key store for the specified * {@code nodeAlias}. diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem deleted file mode 100644 index a9863d3413c6..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-alice.pem +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDMCd0mTGV8FPdx2Bad -+hboPm7fVQcLEALuWvjsaBcMmvzdNZg+SxTLRC0LtXxoy+WhZANiAAQRfI2N1kfF -PLo94g1q32WN86+8I9tvd/7GqayOS1SpJaPRhEtqfAJwM6WI1bZABAlBRGoZcFXQ -T8mP21bFDTO43YLwOT96QPaNxu9trhKKrYg0B592vhMi6grgh7z7wRg= ------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/a-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-bob.pem deleted file mode 100644 index 202f7d7e1aa0..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-bob.pem +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDiFgRuomU0cN4ZVJAS -zeW1c5OPthdiSGSbLown/FRYUEzcozYEHRqqOC4KX6FL5fKhZANiAARawVVA7wBE -uMcWadtityB5uab0v5IODr9G6ttKYoz7aVzeMVYuSQzvJhaot3xKWFRvNQD2dnXu -NiKaUmqix9mn06dbbvqVXhfTgVKYjEQP5dkHTM3SLbAz5/LLkutJ74Y= ------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/a-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-carol.pem deleted file mode 100644 index 17a6c011618a..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-private-carol.pem +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBNMxT1NdZ7X9nBrDbs -oF0IL2uGElr0VBNCrsZs+dd83UMSFEgf/c0ZXTBaM0fdKPihZANiAARKYtjj7CSm -g8g3zjsf8oJQNSVnOz4pcQyGVTiOS5q83vszrFVuo43vbj7Nl1yVOy2WahKOJH8z -MOxzggT5A4mNmU4JgxWhnmvX+q+uVTztbKAvyHEZC3OXRBBNxgRAiVQ= ------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/a-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-alice.pem deleted file mode 100644 index eb0dc2620240..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-alice.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k -ZTAwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh -LW5vZGUwMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEXyNjdZHxTy6PeINat9ljfOv -vCPbb3f+xqmsjktUqSWj0YRLanwCcDOliNW2QAQJQURqGXBV0E/Jj9tWxQ0zuN2C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yE+TP0XQ0DBcMXX5NxtXv1a6vLE -asvjzxFpa39ulSow4dZmq7BV+s6Wz7e7U1sOhk9CcRTpcs7Iaks9lZZhqpBI9AfT -GAZgPEbg+RKZ7jrsx7aYC3xTPSTvU4jk0X8CwWXjJe1AaWZEj7AZsV6qzHwxrgSH -z+L+sKe8a0yMBMThbhQsYTb6Fm1yLDsnEL2iFna/++TsRTarQK6OOpeZEk3s4lnS -bZRKZyJaUVNW6cknOIxIXac/CEF9EzYgwpCUu+fBYZ8tQ4jYGBbmZwIDAQABo2cw -ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr -BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFCvppktifICQ9gt+ZCrI -GNskYJbYMA0GCSqGSIb3DQEBDAUAA4IBgQCDCwtZIlBCUtTdZpiPo8cS4W0r5j3X -xnX1PLVMEo5bgO2N1Kt86ipUW23wo6+RT5KAgRQ68SQ57w4SgQ/OypPZy+ya6hI4 -7c7Oyrm3yb7vHcb/oWSYh4TLa+J5YHchg3sIFusvLR68tDptdXnlVZqfNXbvbe+m -5ucTtPWe49zeOy9nz2DT9EbLzEJzvEbasqaYM9y9rIfB7A+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/a-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-bob.pem deleted file mode 100644 index 061ccdfac634..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-bob.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k -ZTEwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh -LW5vZGUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWsFVQO8ARLjHFmnbYrcgebmm -9L+SDg6/RurbSmKM+2lc3jFWLkkM7yYWqLd8SlhUbzUA9nZ17jYimlJqosfZp9On -W276lV4X04FSmIxED+XZB0zN0i2wM+fyy5LrSe+Gow8wDTALBgNVHQ8EBAMCBaAw -DQYJKoZIhvcNAQEMBQADggGBAKbVrNmF+BdUMVx8BxjXeQOXVZGhPpgRqI5RwzA3 -DHeNx49k3sR/62YJvVqdyC183RqJ2H7FdtXjhHcQPf2pc2KlAvt4Iq8JkSGASFAU -sbhFjMuRUHFP4kdu96oGOrkelmlWat182EL+4g0f6RTLNMrPKkRwhoafTOZMbmX4 -p0xuwOmvgEjXXGRRW1VgzXNvMsWaKXPM5sVcNHZj/tOMBRb3mjvI2AOF/6Vmn5B7 -6cx0qr2ck+sF+Ma+hKkfvmMzfUetxzGxPq07qoQ9EUTl1YCsuh9f2XNW/gILlu1B -pOwNilg/Eet31foDZJiAWHAZ9bOjH+OFkqtFjut12tfaXGwK0VPE3rfeL3GTOwTm -vMow2tyQBCac0rwxu+8IKE8g+z0mR8SKcpuZBLG1QPeljJl0nkVUTo+Yv7EfPqVJ -kQPmrs0shsawobtMq9Bl+EPqmLSkj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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/a-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-carol.pem deleted file mode 100644 index 39808bfc8eab..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/a-public-carol.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k -ZTIwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh -LW5vZGUyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAESmLY4+wkpoPIN847H/KCUDUl -Zzs+KXEMhlU4jkuavN77M6xVbqON724+zZdclTstlmoSjiR/MzDsc4IE+QOJjZlO -CYMVoZ5r1/qvrlU87WygL8hxGQtzl0QQTcYEQIlUow8wDTALBgNVHQ8EBAMCBaAw -DQYJKoZIhvcNAQEMBQADggGBAEy5a6ggziuMO27TvGJc9bguNTVOZwb77KVFESLe -st1VNfSn/5Go+glzzKXg8fKemYKmqcQe5z8T6iu39PDmmyIUzzxcii7/A6ZOAkHg -URxAPwJQU2IS1ETREX9eObOzBvqXixwlMBub/BiHrpbf66hpNnjSbr0evIe7l60A -lSawav84u7GiddmtoYOnleifPl816M9vT/6ImC0GEcMly6/va78JPGCrPgh/tpH4 -9SSE8N4yiFTDQ70xl0w83fEpdsC3pkM2ElU3Qo9BQaHnJkf8/Tn1CXwlULtG58nV -DjZkinUl3nVoq5PZmkz5YBGmgcOK2TBVQccSw92EsgskyNmnPNib/IGhm7BV+Vf+ -ZOWPLVIgh/z5sHtdxnedYQO9NbMuAp+sdZnMjHIp0h/n1QxvwDIpONezKpu5fnGj -i131s4qgZZGwjI1zORvNmSoTnwxpO1uoEPJVuSQjLqcD1xvShYCyjbqGGPHXS23U -XxRz+A+GoWoakBatyVljNyYllA== ------END CERTIFICATE----- ------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-valid-no-tss-key/a-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-alice.pem deleted file mode 100644 index a9863d3413c6..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-alice.pem +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDMCd0mTGV8FPdx2Bad -+hboPm7fVQcLEALuWvjsaBcMmvzdNZg+SxTLRC0LtXxoy+WhZANiAAQRfI2N1kfF -PLo94g1q32WN86+8I9tvd/7GqayOS1SpJaPRhEtqfAJwM6WI1bZABAlBRGoZcFXQ -T8mP21bFDTO43YLwOT96QPaNxu9trhKKrYg0B592vhMi6grgh7z7wRg= ------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/a-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-bob.pem deleted file mode 100644 index 202f7d7e1aa0..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-bob.pem +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDiFgRuomU0cN4ZVJAS -zeW1c5OPthdiSGSbLown/FRYUEzcozYEHRqqOC4KX6FL5fKhZANiAARawVVA7wBE -uMcWadtityB5uab0v5IODr9G6ttKYoz7aVzeMVYuSQzvJhaot3xKWFRvNQD2dnXu -NiKaUmqix9mn06dbbvqVXhfTgVKYjEQP5dkHTM3SLbAz5/LLkutJ74Y= ------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/a-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-carol.pem deleted file mode 100644 index 17a6c011618a..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-private-carol.pem +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBNMxT1NdZ7X9nBrDbs -oF0IL2uGElr0VBNCrsZs+dd83UMSFEgf/c0ZXTBaM0fdKPihZANiAARKYtjj7CSm -g8g3zjsf8oJQNSVnOz4pcQyGVTiOS5q83vszrFVuo43vbj7Nl1yVOy2WahKOJH8z -MOxzggT5A4mNmU4JgxWhnmvX+q+uVTztbKAvyHEZC3OXRBBNxgRAiVQ= ------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/a-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-alice.pem deleted file mode 100644 index eb0dc2620240..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-alice.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k -ZTAwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh -LW5vZGUwMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEXyN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SPgMg= ------END CERTIFICATE----- diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem deleted file mode 100644 index 061ccdfac634..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-bob.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k -ZTEwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh -LW5vZGUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEWsFVQO8ARLjHFmnbYrcgebmm -9L+SDg6/RurbSmKM+2lc3jFWLkkM7yYWqLd8SlhUbzUA9nZ17jYimlJqosfZp9On -W276lV4X04FSmIxED+XZB0zN0i2wM+fyy5LrSe+Gow8wDTALBgNVHQ8EBAMCBaAw -DQYJKoZIhvcNAQEMBQADggGBAKbVrNmF+BdUMVx8BxjXeQOXVZGhPpgRqI5RwzA3 -DHeNx49k3sR/62YJvVqdyC183RqJ2H7FdtXjhHcQPf2pc2KlAvt4Iq8JkSGASFAU -sbhFjMuRUHFP4kdu96oGOrkelmlWat182EL+4g0f6RTLNMrPKkRwhoafTOZMbmX4 -p0xuwOmvgEjXXGRRW1VgzXNvMsWaKXPM5sVcNHZj/tOMBRb3mjvI2AOF/6Vmn5B7 -6cx0qr2ck+sF+Ma+hKkfvmMzfUetxzGxPq07qoQ9EUTl1YCsuh9f2XNW/gILlu1B -pOwNilg/Eet31foDZJiAWHAZ9bOjH+OFkqtFjut12tfaXGwK0VPE3rfeL3GTOwTm -vMow2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Av3YMQr7DXw7KYclwDMWdMnC6OY -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/a-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-carol.pem deleted file mode 100644 index 39808bfc8eab..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-no-tss-key/a-public-carol.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICfzCB6KADAgECAgEBMA0GCSqGSIb3DQEBDAUAMBIxEDAOBgNVBAMTB3Mtbm9k -ZTIwHhcNMjQwMTE5MDM1OTU2WhcNMzQwMTE5MDM1OTU2WjASMRAwDgYDVQQDEwdh -LW5vZGUyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAESmLY4+wkpoPIN847H/KCUDUl -Zzs+KXEMhlU4jkuavN77M6xVbqON724+zZdclTstlmoSjiR/MzDsc4IE+QOJjZlO -CYMVoZ5r1/qvrlU87WygL8hxGQtzl0QQTcYEQIlUow8wDTALBgNVHQ8EBAMCBaAw -DQYJKoZIhvcNAQEMBQADggGBAEy5a6ggziuMO27TvGJc9bguNTVOZwb77KVFESLe -st1VNfSn/5Go+glzzKXg8fKemYKmqcQe5z8T6iu39PDmmyIUzzxcii7/A6ZOAkHg -URxAPwJQU2IS1ETREX9eObOzBvqXixwlMBub/BiHrpbf66hpNnjSbr0evIe7l60A -lSawav84u7GiddmtoYOnleifPl816M9vT/6ImC0GEcMly6/va78JPGCrPgh/tpH4 -9SSE8N4yiFTDQ70xl0w83fEpdsC3pkM2ElU3Qo9BQaHnJkf8/Tn1CXwlULtG58nV -DjZkinUl3nVoq5PZmkz5YBGmgcOK2TBVQccSw92EsgskyNmnPNib/IGhm7BV+Vf+ -ZOWPLVIgh/z5sHtdxnedYQO9NbMuAp+sdZnMjHIp0h/n1QxvwDIpONezKpu5fnGj -i131s4qgZZGwjI1zORvNmSoTnwxpO1uoEPJVuSQjLqcD1xvShYCyjbqGGPHXS23U -XxRz+A+GoWoakBatyVljNyYllA== ------END CERTIFICATE----- ------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----- From 68ce6b7232f7b170c0606d441aab98a9a430c295 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Thu, 5 Dec 2024 17:09:45 -0500 Subject: [PATCH 13/16] Updated scan on corrupt tss key Signed-off-by: Derek Riley --- .../swirlds/platform/crypto/EnhancedKeyStoreLoader.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 c9a661bd13f1..53e9bf02dee3 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 @@ -346,8 +346,11 @@ private BlsPrivateKey resolveTssPrivateKey(@NonNull final NodeId nodeId, @NonNul 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); + logger.warn( + STARTUP.getMarker(), + "Failed to read TSS encryption private key from disk, will generate a new key.", + e); + return null; } } return null; From 2c6d862caef1eddb0b24e6e953cbf04ca16698f2 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Thu, 5 Dec 2024 17:50:51 -0500 Subject: [PATCH 14/16] Update test Signed-off-by: Derek Riley --- .../crypto/EnhancedKeyStoreLoaderTest.java | 27 +------------ .../s-private-alice.pem | 40 ------------------- .../enhanced-invalid-case-3/s-private-bob.pem | 40 ------------------- .../s-private-carol.pem | 40 ------------------- .../s-public-alice.pem | 24 ----------- .../enhanced-invalid-case-3/s-public-bob.pem | 24 ----------- .../s-public-carol.pem | 24 ----------- .../t-private-alice.tss | 3 -- .../enhanced-invalid-case-3/t-private-bob.tss | 3 -- .../t-private-carol.tss | 3 -- 10 files changed, 2 insertions(+), 226 deletions(-) delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-alice.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-bob.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-carol.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-alice.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-bob.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-carol.pem delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-bob.tss delete mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-carol.tss 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 55ddada9e748..50a081242e0d 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 @@ -117,7 +117,8 @@ void validateTestDataDirectory() { "hybrid-valid", "enhanced-valid", "enhanced-valid-no-agreement-key", - "enhanced-valid-no-tss-key" + "enhanced-valid-no-tss-key", + "enhanced-valid-corrupt-tss-key" }) void keyStoreLoaderPositiveTest(final String directoryName) throws IOException, KeyLoadingException, KeyStoreException { @@ -210,30 +211,6 @@ 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-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 deleted file mode 100644 index 92b7e50d3f8d..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-alice.pem +++ /dev/null @@ -1,40 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIG/QIBADANBgkqhkiG9w0BAQEFAASCBucwgg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ozIprwbwLsmhlzxr69iRwZ0A6O -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 deleted file mode 100644 index eaf333749ac8..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-bob.pem +++ /dev/null @@ -1,40 +0,0 @@ ------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+sb8Bf16KQ2TrLRHhYATvw1i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HPQriqck3Ak/ -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-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 deleted file mode 100644 index c39d353080fa..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-private-carol.pem +++ /dev/null @@ -1,40 +0,0 @@ ------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 -zYDkB/FF1AG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KuXaeXk0iJput2iSIVs5IauOb3zBHKQt/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 deleted file mode 100644 index 5f9a737f31e6..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-alice.pem +++ /dev/null @@ -1,24 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v -ZGUwMB4XDTI0MDExOTAzNTk1NVoXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH -cy1ub2RlMDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALAhZY0R2eAn -QXXSjpZTlL8rVM3l/mCPpSvMXVwwnDAxuczXoiinPgS+p6NkxPAzLGI9+VBTWiDL -hiJEQhBvmpK2+JvbpF9mls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mLdGfzRZESXbXdEIr2vNvH512dusa -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 deleted file mode 100644 index fcf3421d4dbe..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-bob.pem +++ /dev/null @@ -1,24 +0,0 @@ ------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 deleted file mode 100644 index f7399ce46306..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/s-public-carol.pem +++ /dev/null @@ -1,24 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEBjCCAm6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vKUH9kuTnQsPyG2 -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 deleted file mode 100644 index f52048a80fac..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-alice.tss +++ /dev/null @@ -1,3 +0,0 @@ ------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 deleted file mode 100644 index f539b89a98a8..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-bob.tss +++ /dev/null @@ -1,3 +0,0 @@ ------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 deleted file mode 100644 index c23ec154637b..000000000000 --- a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-invalid-case-3/t-private-carol.tss +++ /dev/null @@ -1,3 +0,0 @@ ------BEGIN PRIVATE KEY----- -AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS ------END PRIVATE KEY----- From 4039cf8a8bd6141e648400e4f642eea67ba11d13 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Fri, 6 Dec 2024 08:41:18 -0500 Subject: [PATCH 15/16] fix test Signed-off-by: Derek Riley --- .../com/swirlds/platform/crypto/EnhancedKeyStoreLoaderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 50a081242e0d..22295cbee743 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 @@ -90,7 +90,7 @@ void validateTestDataDirectory() { assertThat(testDataDirectory.resolve("enhanced-invalid-case-2")) .exists() .isNotEmptyDirectory(); - assertThat(testDataDirectory.resolve("enhanced-invalid-case-3")) + assertThat(testDataDirectory.resolve("enhanced-valid-corrupt-tss-key")) .exists() .isNotEmptyDirectory(); assertThat(testDataDirectory.resolve("legacy-valid").resolve("public.pfx")) From 09e076c16316b792519dbad93f40e6a918581baa Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Fri, 6 Dec 2024 09:06:08 -0500 Subject: [PATCH 16/16] add test resources Signed-off-by: Derek Riley --- .../s-private-alice.pem | 40 +++++++++++++++++++ .../s-private-bob.pem | 40 +++++++++++++++++++ .../s-private-carol.pem | 40 +++++++++++++++++++ .../s-public-alice.pem | 24 +++++++++++ .../s-public-bob.pem | 24 +++++++++++ .../s-public-carol.pem | 24 +++++++++++ .../t-private-alice.tss | 3 ++ .../t-private-bob.tss | 3 ++ .../t-private-carol.tss | 3 ++ 9 files changed, 201 insertions(+) create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-private-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-private-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-private-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-public-alice.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-public-bob.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-public-carol.pem create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/t-private-alice.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/t-private-bob.tss create mode 100644 platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/t-private-carol.tss diff --git a/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/s-private-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-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-corrupt-tss-key/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+mAu0fcJzIGGGKOZRt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+fU/KgaFpdZ0FKBzL9JY0rnKHgW+2RJnT51R4/Ns7p23c/wLg6ssdq8OngN+qyAls +Snqnvntg4O7L6ya0VlWjf1oWYLnj1erpAeVduJY+haqGsRZISTn4sb8oKseIM2DI +z3w6K35EaF7SYwKBwAgQZuvGf4a0NfUBvF10CUzV+G0hCnjy+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-valid-corrupt-tss-key/s-private-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-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-corrupt-tss-key/s-private-bob.pem @@ -0,0 +1,40 @@ +-----BEGIN PRIVATE KEY----- +MIIG/QIBADANBgkqhkiG9w0BAQEFAASCBucwggbjAgE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pFtKhPEboU0X2rVNIP32PKIolvSx7 +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-corrupt-tss-key/s-private-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-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-corrupt-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 +nlRkV1Nt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krzYeNuy8I+9MlfA3IptVS92Ts8+SrFjwHE5ySlts7f +wfGT/eGSZxBNMP9x8RWnIy9i4YywrIDFrXTSAjIkKMbg15p3w9/B4WH3yPSrlbee +ON1SWYnieQKBwA/qDCV7Y68Kxfj339gZyhcDUi96FWQHjImbLo/8evwG+wgDGGlb +tR6HCNUCjjsUuNubn3qqB5vC75JTNXQi4PSiOwG4W49gp/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-valid-corrupt-tss-key/s-public-alice.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-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-corrupt-tss-key/s-public-alice.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUwMB4XDTI0MDExOTAzNTk1NVoXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALAhZY0R2eAn +QXXSjpZTlL8rVM3l/mCPpSvMXVwwnDAxuczXoiinPgS+p6NkxPAzLGI9+VBTWiDL +hiJEQhBvmpK2+JvbpF9mlsvNb5oq/vKfpuZQYqfIxobDer0OSnO2JooT/mMG/frH +qgKod2LYWoeZgza2tsv+HDBBdh2S+ZxihoNOFpMHAuee8x5EWkAHMa6k+lrrbx0c +JcaIObU0ylfXZlCJlbZw3kjUST7Ld0xzJISRQyE+TP0XQ0DBcMXX5NxtXv1a6vLE +asvjzxFpa39ulSow4dZmq7BV+s6Wz7e7U1sOhk9CcRTpcs7Iaks9lZZhqpBI9AfT +GAZgPEbg+RKZ7jrsx7aYC3xTPSTvU4jk0X8CwWXjJe1AaWZEj7AZsV6qzHwxrgSH +z+L+sKe8a0yMBMThbhQsYTb6Fm1yLDsnEL2iFna/++TsRTarQK6OOpeZEk3s4lnS +bZRKZyJaUVNW6cknOIxIXac/CEF9EzYgwpCUu+fBYZ8tQ4jYGBbmZwIDAQABo2cw +ZTASBgNVHRMBAf8ECDAGAQH/AgEBMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggr +BgEFBQcDAjAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFCvppktifICQ9gt+ZCrI +GNskYJbYMA0GCSqGSIb3DQEBDAUAA4IBgQCDCwtZIlBCUtTdZpiPo8cS4W0r5j3X +xnX1PLVMEo5bgO2N1Kt86ipUW23wo6+RT5KAgRQ68SQ57w4SgQ/OypPZy+ya6hI4 +7c7Oyrm3yb7vHcb/oWSYh4TLa+J5YHchg3sIFusvLR68tDptdXnlVZqfNXbvbe+m +5ucTtPWe49zeOy9nz2DT9EbLzEJzvEbasqaYM9y9rIfB7A+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-valid-corrupt-tss-key/s-public-bob.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-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-corrupt-tss-key/s-public-bob.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQwFADASMRAwDgYDVQQDEwdzLW5v +ZGUxMB4XDTI0MDExOTAzNTk1NloXDTM0MDExOTAzNTk1NlowEjEQMA4GA1UEAxMH +cy1ub2RlMTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALxW2vI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CmKJv/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-corrupt-tss-key/s-public-carol.pem b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-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-corrupt-tss-key/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-valid-corrupt-tss-key/t-private-alice.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/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-valid-corrupt-tss-key/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-valid-corrupt-tss-key/t-private-bob.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/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-valid-corrupt-tss-key/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-valid-corrupt-tss-key/t-private-carol.tss b/platform-sdk/swirlds-platform-core/src/test/resources/com/swirlds/platform/crypto/EnhancedKeyStoreLoader/enhanced-valid-corrupt-tss-key/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-valid-corrupt-tss-key/t-private-carol.tss @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +AZMIRAUnkI9m6nh1vWWGD84hg76ZLxGyNSLk/c1WS5QS +-----END PRIVATE KEY-----