|
3 | 3 | import org.bouncycastle.bcpg.CompressionAlgorithmTags;
|
4 | 4 | import org.bouncycastle.bcpg.test.AbstractPacketTest;
|
5 | 5 | import org.bouncycastle.openpgp.PGPException;
|
6 |
| -import org.bouncycastle.openpgp.api.BcOpenPGPImplementation; |
7 | 6 | import org.bouncycastle.openpgp.api.OpenPGPCertificate;
|
8 | 7 | import org.bouncycastle.openpgp.api.OpenPGPKey;
|
9 | 8 | import org.bouncycastle.openpgp.api.OpenPGPMessageGenerator;
|
@@ -133,7 +132,7 @@ private void seipd2EncryptedMessage()
|
133 | 132 | "j+VjFM21J0hqWlEg+bdiojWnKfA5AQpWUWtnNwDEM0g12vYxoWM8Y81W+bHBw805\n" +
|
134 | 133 | "I8kWVkXU6vFOi+HWvv/ira7ofJu16NnoUkhclkUrk0mXubZvyl4GBg==\n" +
|
135 | 134 | "-----END PGP PUBLIC KEY BLOCK-----";
|
136 |
| - OpenPGPCertificate cert = OpenPGPCertificate.fromAsciiArmor(v6Cert, new BcOpenPGPImplementation()); |
| 135 | + OpenPGPCertificate cert = OpenPGPCertificate.fromAsciiArmor(v6Cert); |
137 | 136 |
|
138 | 137 | OpenPGPMessageGenerator gen = new OpenPGPMessageGenerator();
|
139 | 138 | gen.addEncryptionCertificate(cert);
|
@@ -231,7 +230,7 @@ private void seipd1EncryptedMessage()
|
231 | 230 | "xqAY9Bwizt4FWgXuLm1a4+So4V9j1TRCXd12Uc2l2RNmgDE=\n" +
|
232 | 231 | "=miES\n" +
|
233 | 232 | "-----END PGP PRIVATE KEY BLOCK-----\n";
|
234 |
| - OpenPGPKey key = OpenPGPKey.fromAsciiArmor(v4Key, new BcOpenPGPImplementation()); |
| 233 | + OpenPGPKey key = OpenPGPKey.fromAsciiArmor(v4Key); |
235 | 234 |
|
236 | 235 | OpenPGPMessageGenerator gen = new OpenPGPMessageGenerator();
|
237 | 236 | gen.addEncryptionCertificate(key);
|
|
0 commit comments