public abstract class PBEKeyEncryptionMethodGenerator extends PGPKeyEncryptionMethodGenerator
| Modifier | Constructor and Description |
|---|---|
protected |
PBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator) |
protected |
PBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator,
int s2kCount) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
encryptSessionInfo(int encAlgorithm,
byte[] key,
byte[] sessionInfo) |
ContainedPacket |
generate(int encAlgorithm,
byte[] sessionInfo) |
byte[] |
getKey(int encAlgorithm) |
PBEKeyEncryptionMethodGenerator |
setSecureRandom(java.security.SecureRandom random) |
protected PBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator)
protected PBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator,
int s2kCount)
public PBEKeyEncryptionMethodGenerator setSecureRandom(java.security.SecureRandom random)
public byte[] getKey(int encAlgorithm)
throws PGPException
PGPExceptionpublic ContainedPacket generate(int encAlgorithm, byte[] sessionInfo) throws PGPException
generate in class PGPKeyEncryptionMethodGeneratorPGPExceptionprotected abstract byte[] encryptSessionInfo(int encAlgorithm,
byte[] key,
byte[] sessionInfo)
throws PGPException
PGPException