Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit f011b27

Browse files
committed
Drop AESCBCPKCS5Padding
1 parent be21cc8 commit f011b27

File tree

3 files changed

+1
-125
lines changed

3 files changed

+1
-125
lines changed

src/main/java/org/codehaus/plexus/components/cipher/internal/AESCBCPKCS5Padding.java

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/test/java/org/codehaus/plexus/components/cipher/internal/AESCBCPKCS5PaddingTest.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/test/java/org/codehaus/plexus/components/cipher/internal/DefaultPlexusCipherTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ class DefaultPlexusCipherTest {
3939
final String str = "my testing phrase";
4040
PlexusCipher pc;
4141

42-
static String[] ALG = new String[] {AESCBCPKCS5Padding.CIPHER_ALG, AESGCMNoPadding.CIPHER_ALG};
42+
static String[] ALG = new String[] {AESGCMNoPadding.CIPHER_ALG};
4343

4444
@BeforeEach
4545
void prepare() {
4646
HashMap<String, Cipher> ciphers = new HashMap<>();
47-
ciphers.put(AESCBCPKCS5Padding.CIPHER_ALG, new AESGCMNoPadding());
4847
ciphers.put(AESGCMNoPadding.CIPHER_ALG, new AESGCMNoPadding());
4948
pc = new DefaultPlexusCipher(ciphers);
5049
}
@@ -86,9 +85,6 @@ void testAllAlgorithmExists() throws Exception {
8685
// }
8786
// System.out.println("====================");
8887
HashSet<String> algs = new HashSet<>(pc.availableCiphers());
89-
// TODO: seems this alg is not offered by default?
90-
algs.remove(AESCBCPKCS5Padding.CIPHER_ALG);
91-
9288
for (String provider : res) {
9389
algs.remove(provider);
9490
}

0 commit comments

Comments
 (0)