Skip to content

Commit 6ef14ee

Browse files
update of dependency crypt-data to the new minor version 9.5
1 parent 061bfa6 commit 6ef14ee

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CHANGED:
2424
- update of dependency commons-lang3 dependency version to 3.15.0
2525
- update of dependency commons-io dependency version to 2.16.1
2626
- update of dependency crypt-api to the new minor version 9.3
27-
- update of dependency crypt-data to the new minor version 9.4
27+
- update of dependency crypt-data to the new minor version 9.5
2828
- update of dependency file-worker to new version to 17.3
2929
- update of dependency xml-base to new version to 2
3030
- update of dependency guava version to new version 33.2.1-jre

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ commons-codec-version = "1.17.1"
77
commons-io-version = "2.16.1"
88
commons-lang3-version = "3.15.0"
99
crypt-api-version = "9.3"
10-
crypt-data-version = "9.4"
10+
crypt-data-version = "9.5"
1111
file-worker-version = "17.3"
1212
gradle-plugin-grgit-version = "5.2.2"
1313
gradle-plugin-license-version = "0.16.1"
@@ -18,9 +18,9 @@ guava-version = "33.2.1-jre"
1818
jobj-cloner-version = "2.1"
1919
jobj-core-version = "8.2"
2020
json-extensions-version = "3"
21-
junit-jupiter-params-version = "5.11.0-M2"
22-
junit-jupiter-version = "5.11.0-M2"
23-
junit-platform-launcher-version = "1.11.0-M2"
21+
junit-jupiter-params-version = "5.11.0-RC1"
22+
junit-jupiter-version = "5.11.0-RC1"
23+
junit-platform-launcher-version = "1.11.0-RC1"
2424
meanbean-version = "3.0.0-M9"
2525
random-beans-version = "3.9.0"
2626
randomizer-version = "10.2"

src/main/java/io/github/astrapi69/mystic/crypt/processor/bruteforce/PrivateKeyBruteForceProcessor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import java.util.Optional;
3232

3333
import org.bouncycastle.jce.provider.BouncyCastleProvider;
34+
import org.bouncycastle.pkcs.PKCSException;
3435

3536
import io.github.astrapi69.crypt.data.key.reader.EncryptedPrivateKeyReader;
3637
import io.github.astrapi69.crypt.data.key.reader.PrivateKeyReader;
@@ -84,6 +85,11 @@ public static Optional<String> resolvePassword(File privateKeyFile,
8485
attempt = processor.getCurrentAttempt();
8586
processor.increment();
8687
}
88+
catch (PKCSException e)
89+
{
90+
attempt = processor.getCurrentAttempt();
91+
processor.increment();
92+
}
8793
}
8894
}
8995
}

src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
requires randomizer.main;
3838
requires silly.bean.main;
3939
requires silly.collection;
40+
requires org.bouncycastle.pkix;
4041

4142

4243
exports io.github.astrapi69.mystic.crypt.base;

src/test/java/io/github/astrapi69/mystic/crypt/processor/bruteforce/PrivateKeyBruteForceProcessorTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import java.util.logging.Logger;
3636

3737
import org.bouncycastle.jce.provider.BouncyCastleProvider;
38+
import org.bouncycastle.pkcs.PKCSException;
3839
import org.junit.jupiter.api.Disabled;
3940
import org.junit.jupiter.api.Test;
4041

@@ -89,6 +90,11 @@ public static Optional<String> resolvePassword(File privateKeyFile,
8990
attempt = processor.getCurrentAttempt();
9091
processor.increment();
9192
}
93+
catch (PKCSException e)
94+
{
95+
attempt = processor.getCurrentAttempt();
96+
processor.increment();
97+
}
9298
}
9399
}
94100
}

0 commit comments

Comments
 (0)