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 the legacy CFB "quick check" on the two repeated prefix bytes of a SEIPD v1 (or SED) packet is applied when this data is decrypted.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
-
useQuickCheck
protected boolean useQuickCheck()Whether the legacy CFB "quick check" on the two repeated prefix bytes of a SEIPD v1 (or SED) packet is applied when this data is decrypted. Reporting a mismatch is what lets a wrong passphrase be detected - and the stream rewound to try the next SKESK packet - so the password-based path keeps it, while a session key recovered from a public key operation suppresses it: there the report is the Mister-Zuccherato oracle on the CFB prefix and the MDC is the integrity check. Overridden byPGPSessionKeyEncryptedData, where the caller states which kind of session key it holds.- Returns:
- true if a quick check mismatch should be reported, false if it should be ignored.
-