OpenSSL supports aes-256-gcm
as an algorithm, but it does not support aes-256-gcm
as a command tool. The difference is that you can enter openssl aes-256-cbc
in the command line to encrypt something. On the other hand, there are no such openssl aes-256-gcm
command line tool.
You can use the EVP
interface to call aes-256-gcm
algorithm, as this answer shows.
By the way, you may try to use openssl enc aes-256-gcm
in the command line. That does not work either, because no additional authenticated data
will be handled by the enc
command. See more information here.