mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-09-28 18:49:56 +02:00
Use BCs PGPEncryptedDataList.isIntegrityProtected()
This commit is contained in:
parent
47664935e5
commit
3950371214
|
@ -405,9 +405,7 @@ public class OpenPgpMessageInputStream extends DecryptionStream {
|
||||||
syntaxVerifier.next(InputSymbol.EncryptedData);
|
syntaxVerifier.next(InputSymbol.EncryptedData);
|
||||||
PGPEncryptedDataList encDataList = packetInputStream.readEncryptedDataList();
|
PGPEncryptedDataList encDataList = packetInputStream.readEncryptedDataList();
|
||||||
|
|
||||||
// TODO: Replace with !encDataList.isIntegrityProtected()
|
if (!encDataList.isIntegrityProtected()) {
|
||||||
// once BC ships it
|
|
||||||
if (!encDataList.get(0).isIntegrityProtected()) {
|
|
||||||
LOGGER.debug("Symmetrically Encrypted Data Packet is not integrity-protected and is therefore rejected.");
|
LOGGER.debug("Symmetrically Encrypted Data Packet is not integrity-protected and is therefore rejected.");
|
||||||
throw new MessageNotIntegrityProtectedException();
|
throw new MessageNotIntegrityProtectedException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue