IntegrityProtection when using OpenPGP ECDH keys

Paul Schaub <[email protected]>
Newsgroups gmane.comp.encryption.bouncy-castle.devel
Message-ID <[email protected]>
Hi!

I noticed, that the call

bcPGPDataEncryptorBuilder.setWithIntegrityPacket(true);

appears to be broken when I encrypt for an ECDH public key.
The same call works fine when RSA keys are used, meaning the call

pgpPublicKeyEncryptedData.isIntegrityProtected();

returns true. However, it returns false when ECDH keys are used.
Is this a bug, or expected behaviour?

I know that elliptic curve keys are not really specified in RFC4880,
but I found a specification in RFC6637, which also mentions the
integrity protection package.

Greetings Paul
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.