Class PGPSymmetricKeyEncryptedData
java.lang.Object
org.bouncycastle.openpgp.PGPEncryptedData
org.bouncycastle.openpgp.PGPSymmetricKeyEncryptedData
- All Implemented Interfaces:
AEADAlgorithmTags, SymmetricKeyAlgorithmTags
- Direct Known Subclasses:
PGPPBEEncryptedData, PGPSessionKeyEncryptedData
-
Nested Class Summary
Nested classes/interfaces inherited from class PGPEncryptedData
PGPEncryptedData.TruncatedStream -
Field Summary
Fields inherited from interface AEADAlgorithmTags
EAX, GCM, OCBFields inherited from interface SymmetricKeyAlgorithmTags
AES_128, AES_192, AES_256, BLOWFISH, CAMELLIA_128, CAMELLIA_192, CAMELLIA_256, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamcreateDecryptionStream(PGPDataDecryptorFactory dataDecryptorFactory, PGPSessionKey sessionKey) protected booleanWhether this data was decrypted from a public-key (or otherwise already-recovered session key) rather than from a password (PBE).Methods inherited from class PGPEncryptedData
getAlgorithm, getEncData, getInputStream, getVersion, isAEAD, isIntegrityProtected, verify
-
Constructor Details
-
PGPSymmetricKeyEncryptedData
-
-
Method Details
-
createDecryptionStream
protected InputStream createDecryptionStream(PGPDataDecryptorFactory dataDecryptorFactory, PGPSessionKey sessionKey) throws PGPException - Throws:
PGPException
-
isPublicKeyEncrypted
protected boolean isPublicKeyEncrypted()Whether this data was decrypted from a public-key (or otherwise already-recovered session key) rather than from a password (PBE). The CFB "quick check" is suppressed on the public-key / session-key path (it would only re-create the Mister-Zuccherato oracle and there is no multi-SKESK passphrase retry to drive); PBE keeps it. Overridden byPGPSessionKeyEncryptedData.
-