Page MenuHome GnuPG

GPG symmetric encryption is using old OpenPGP packet formats
Closed, InvalidPublic

Description

The following command:

gpg --s2k-digest-algo SHA256 --s2k-cipher-algo AES256 -c myfile

is used to create a symmetrically encrypted file.

The output, however, seems to utilize old OpenPGP format packets. For example,

gpg --list-packets --verbose myfile.gpg

results in:

#off=0 ctb=8c tag=3 hlen=2 plen=13
:symkey enc packet: version 4, cipher 9, s2k 3, hash 8
salt 367FDD829963CC11, count 4194304 (192)

which, to my understanding, denotes an old format packet (ctb=8c, not cc)

I cannot locate a configuration option which might be causing the old OpenPGP format to be used. I also can't find a setting which might enable use of the new OpenPGP format.

Is this behavior as expected?

Details

Version
2.2.15

Event Timeline

lellis updated the task description. (Show Details)
lellis updated the task description. (Show Details)
lellis updated the task description. (Show Details)
werner added a subscriber: werner.

Yes.

There is no need to use the new CTB format for a packet with tag 3. OpenPGP implementations need to support all packet header encodings. We do not plan to make this configurable.