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
PGPException
public ContainedPacket generate(int encAlgorithm, byte[] sessionInfo) throws PGPException
generate
in class PGPKeyEncryptionMethodGenerator
PGPException
protected abstract byte[] encryptSessionInfo(int encAlgorithm, byte[] key, byte[] sessionInfo) throws PGPException
PGPException