Nesting inputstreams can result in a child stream reaching its end twice.
For the MDCValidatingInputStream this results in verifying the MDC twice.
PGPEncryptedData#verify doesn't handle being called twice.
decryptNoSignatureValidation_withWrapperStream_works fails without the fix in MDCValidatingInputStream.
Fix with a simple boolean flag to prevent double verification.
Another alternative option would be making a change to PGPEncryptedData#verify.
Fixes #66
Nesting inputstreams can result in a child stream reaching its end twice. For the MDCValidatingInputStream this results in verifying the MDC twice. PGPEncryptedData#verify doesn't handle being called twice.
decryptNoSignatureValidation_withWrapperStream_works
fails without the fix in MDCValidatingInputStream.Fix with a simple boolean flag to prevent double verification. Another alternative option would be making a change to PGPEncryptedData#verify.