mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-05 03:41:07 +01:00
Fix IndexOutOfBounds, but keep decryption with only SK working
This commit is contained in:
parent
127fb97763
commit
f43de82ef4
1 changed files with 2 additions and 1 deletions
|
|
@ -355,7 +355,8 @@ class OpenPgpMessageInputStream(
|
|||
return false
|
||||
}
|
||||
|
||||
if (!encDataList.isIntegrityProtected && !encDataList.get(0).isAEAD) {
|
||||
|
||||
if (!encDataList.isIntegrityProtected && !encDataList.isEmpty && !encDataList.get(0).isAEAD) {
|
||||
LOGGER.warn("Symmetrically Encrypted Data Packet is not integrity-protected.")
|
||||
if (!options.isIgnoreMDCErrors()) {
|
||||
throw MessageNotIntegrityProtectedException()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue