Bouncy Castle Cryptography Library 1.47

org.bouncycastle.openpgp.operator
Class PublicKeyKeyEncryptionMethodGenerator

java.lang.Object
  extended by org.bouncycastle.openpgp.operator.PGPKeyEncryptionMethodGenerator
      extended by org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator
Direct Known Subclasses:
BcPublicKeyKeyEncryptionMethodGenerator, JcePublicKeyKeyEncryptionMethodGenerator

public abstract class PublicKeyKeyEncryptionMethodGenerator
extends PGPKeyEncryptionMethodGenerator


Constructor Summary
protected PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey)
           
 
Method Summary
protected abstract  byte[] encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionInfo)
           
 ContainedPacket generate(int encAlgorithm, byte[] sessionInfo)
           
 java.math.BigInteger[] processSessionInfo(byte[] encryptedSessionInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicKeyKeyEncryptionMethodGenerator

protected PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey)
Method Detail

processSessionInfo

public java.math.BigInteger[] processSessionInfo(byte[] encryptedSessionInfo)
                                          throws PGPException
Throws:
PGPException

generate

public ContainedPacket generate(int encAlgorithm,
                                byte[] sessionInfo)
                         throws PGPException
Specified by:
generate in class PGPKeyEncryptionMethodGenerator
Throws:
PGPException

encryptSessionInfo

protected abstract byte[] encryptSessionInfo(PGPPublicKey pubKey,
                                             byte[] sessionInfo)
                                      throws PGPException
Throws:
PGPException

Bouncy Castle Cryptography Library 1.47