This is a simple command-line tool to encrypt and decrypt files using AES-GCM. The key size is currently hardcoded to 128 bits. The tool uses the OpenSSL EVP API and is based on the encrypt() and decrypt() functions found at Stack Overflow and the OpenSSL Wiki.
- To build, type
make
./aesgcm -h
shows the usage textmake test
runs a self-test (make test V=1
is more verbose)