cryptography - OpenSSL Authenticated Encryption -


i'm trying use openssl authenticated encryption. specifically, i'm trying use aes-256-gcm (or ccm).

however, when run openssl list-cipher-commands, don't see it. aes ciphers shown these:

aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc aes-256-ecb 

i'm on openssl 1.0.1e, should supported.

openssl supports aes-256-gcm algorithm, not support aes-256-gcm command tool. difference can enter openssl aes-256-cbc in command line encrypt something. on other hand, there no such openssl aes-256-gcm command line tool.

you can use evp interface call aes-256-gcm algorithm, answer shows.

by way, may try use openssl enc aes-256-gcm in command line. not work either. because no additional authenticated data handled enc command. see more information here.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -