Skip to content

x/crypto/openpgp: decryption fails when using cipher AES-192 #17060

@leonklingele

Description

@leonklingele

Please see this script to reproduce the problem:
https://play.golang.org/p/vk58yYArMh

In line 17, set cipher := "aes128" / cipher := "aes256" and decryption will work fine.
However, when using cipher := "aes192", decryption will fail.

Decrypting the message via $ gpg --decrypt works fine for all three AES sizes, so the decryption routing of Go's openpgp package has an issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions