Skip to content

Commit 6912a51

Browse files
author
gefeili
committed
Add back PublicKeyKeyEncryptionMethodGenerator.WILDCARD
1 parent 5117eb5 commit 6912a51

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pg/src/main/java/org/bouncycastle/openpgp/operator/PublicKeyKeyEncryptionMethodGenerator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public abstract class PublicKeyKeyEncryptionMethodGenerator
2121
{
2222
public static final String SESSION_KEY_OBFUSCATION_PROPERTY = "org.bouncycastle.openpgp.session_key_obfuscation";
2323
public static final long WILDCARD_KEYID = 0L;
24+
/**
25+
* @deprecated use WILDCARD_KEYID
26+
* */
27+
public static final long WILDCARD = 0L;
2428
public static final byte[] WILDCARD_FINGERPRINT = new byte[0];
2529

2630
private static boolean getSessionKeyObfuscationDefault()

pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcePBEKeyEncryptionMethodGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import javax.crypto.spec.IvParameterSpec;
1313
import javax.crypto.spec.SecretKeySpec;
1414

15-
import org.bouncycastle.bcpg.ContainedPacket;
1615
import org.bouncycastle.bcpg.S2K;
1716
import org.bouncycastle.bcpg.SymmetricKeyUtils;
1817
import org.bouncycastle.crypto.InvalidCipherTextException;

0 commit comments

Comments
 (0)