forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix decryption of SEIPD2 packets using PKESK6
- Loading branch information
1 parent
c46bd49
commit f5691b6
Showing
4 changed files
with
366 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
pg/src/main/java/org/bouncycastle/openpgp/operator/PublicKeyDataDecryptorFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
package org.bouncycastle.openpgp.operator; | ||
|
||
import org.bouncycastle.bcpg.InputStreamPacket; | ||
import org.bouncycastle.bcpg.PublicKeyEncSessionPacket; | ||
import org.bouncycastle.openpgp.PGPException; | ||
|
||
public interface PublicKeyDataDecryptorFactory | ||
extends PGPDataDecryptorFactory | ||
{ | ||
byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData) | ||
byte[] recoverSessionData(PublicKeyEncSessionPacket pkesk, InputStreamPacket encData) | ||
throws PGPException; | ||
|
||
/** | ||
* @deprecated use {@link #recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket)} (PublicKeyEncSessionPacket, InputStreamPacket)} instead. | ||
* @param keyAlgorithm public key algorithm | ||
* @param secKeyData encrypted session key data | ||
* @param pkeskVersion version of the PKESK packet | ||
* @return | ||
* @throws PGPException | ||
*/ | ||
byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData, int pkeskVersion) | ||
throws PGPException; | ||
|
||
} |
Oops, something went wrong.