Skip to content
Contents
GuidesOpenWrt

GnuPG reports Invalid cipher algorithm during symmetric encryption on OpenWrt

When GnuPG indicates an invalid symmetric algorithm, first check for errors in input parameters and verify that the current build supports the algorithm. Perform a small-scale test using a file without sensitive content.

Applies to · mvebu/cortexa9 · OpenWrt 25.12.5 · gnupg2

What to check

Check if the required symmetric algorithms are listed in the version output, and verify that GPG and the underlying cryptographic library originate from the same software source.

Connect over Ethernet and run the following commands in an SSH session on the router.

gpg --version
gpgconf --list-components

How to interpret the result

Read the Cipher list from the GPG version output. If the target name is not in the list, check the package and cryptographic library. If the name is in the list but still fails, verify the exact parameter spelling and check whether a default configuration specifies a different algorithm.

Verify and recover

Encrypt and decrypt a disposable file with an algorithm listed by the running build. Compare the recovered bytes and restore any temporary configuration changes.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments