Re: Adding & checking MDC using high-level org.bouncycastle.openpgp

Mike Burke <[email protected]>
Newsgroups gmane.comp.encryption.bouncy-castle.devel
Message-ID <[email protected]>
That's what I needed! Thanks!

On Sat, Aug 25, 2018 at 06:23:47PM +0200, VanitasVitae wrote:
>    Hi!
> 
>    I use BcPGPDataEncryptorBuilder.setWithIntegrityPacket(true);
>    for that purpose :)
> 
>    Am 25. August 2018 18:15:49 MESZ schrieb Mike Burke
>    <[email protected]>:
> 
>  I'm doing symmetric AES256 PGP encryption using org.bouncycastle.openpgp.PGPEncryptedDataGenerator and friends.  I am using Bouncy Castle 1.60 for JDK 1.5-1.8.
> 
>  I want to include the modification detection code so that GPG accepts the encrypted file without warning, and so that I can also detect modifications when I later handle decryption via BouncyCastle.
> 
>  It looks like org.bouncycastle.bcpg.ModDetectionCodePacket will let me handle the packet, but my understanding is that I could only use it with the lower-level bcpg interface.  org.bouncycastle.openpgp classes don't expose the BCPGOutputStream, and anyway, they manage it directly for me so I probably shouldn't stick my hands in there.
> 
>  Searching for ModDetectionCodePacket didn't produce any obviously useful results or usage examples.
> 
>  Is it currently possible to use a MDC with the high-level org.bouncycastle.openpgp package?
> 
>  Thanks!
>  Mike
> 
> 
>    --
>    Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
>    gesendet.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.