OpenSSL supports aes-256-gcm as an algorithm, but it does not support aes-256-gcm as a command line tool. The difference is that you can enter openssl aes-256-cbc at the command line to encrypt something. On the other hand, there is no such openssl aes-256-gcm command line tool.
You can use the EVP interface to invoke the aes-256-gcm algorithm, as this answer shows.
By the way, you can try using openssl enc aes-256-gcm on the command line. This does not work either. Since the enc command is processed no additional authenticated data . See here for more details.
source share