org.bouncycastle.openpgp.operator
Class PBEKeyEncryptionMethodGenerator
java.lang.Object
org.bouncycastle.openpgp.operator.PGPKeyEncryptionMethodGenerator
org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator
- Direct Known Subclasses:
- BcPBEKeyEncryptionMethodGenerator, JcePBEKeyEncryptionMethodGenerator
public abstract class PBEKeyEncryptionMethodGenerator
- extends PGPKeyEncryptionMethodGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PBEKeyEncryptionMethodGenerator
protected PBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator)
setSecureRandom
public PBEKeyEncryptionMethodGenerator setSecureRandom(java.security.SecureRandom random)
getKey
public byte[] getKey(int encAlgorithm)
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(int encAlgorithm,
byte[] key,
byte[] sessionInfo)
throws PGPException
- Throws:
PGPException