A trivial helloworld example of using Boring SSL with Bazel.
Its basically a copy paste of openssl wiki example for EVP Symmetric Encryption and Decryption with BoringSSL and the bazel build system.
Includes:
EVP_aes_256_cbc
EVP_aead_aes_256_gcm_siv
You'll need bazel installed to use this sale
once its setup, you can run it to encrypt
$ bazel run //main:bssl_aes_cbc
Ciphertext is:
4G9jpxHot6qflEAQfUaAoReZQ4DqMdKimblTAtQ5uXAsjmWpkjbskgcEkVzxqYpE
Decrypted text is:
The quick brown fox jumps over the lazy dog
$ bazel run //main:bssl_aes_siv
Ciphertext is:
AB3E62CFC73FA188265ED94BE50B9482F342613541213D
Plaintext is:
666F6F6F626172