diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-09-28 18:33:35 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-09-28 18:33:35 -0400 |
commit | e74149a7569afd1ea7d67c77f40c37471e7e3e58 (patch) | |
tree | d8478e569eade926a72829eee9d3afe0e8f12710 /cbits | |
parent | 8ac48890e98a4974980b8ca3d5e90a2e52c1a624 (diff) |
Begin implementing symmetric encryption
Support RC4. Future commits will add support for more modern algorithms.
Diffstat (limited to 'cbits')
-rw-r--r-- | cbits/btls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cbits/btls.c b/cbits/btls.c index d4bfd62..38cf73a 100644 --- a/cbits/btls.c +++ b/cbits/btls.c @@ -12,8 +12,13 @@ // License for the specific language governing permissions and limitations under // the License. +#include <openssl/cipher.h> #include <openssl/digest.h> +void btlsFinalizeEVPCipherCtx(EVP_CIPHER_CTX* const ctx) { + (void)EVP_CIPHER_CTX_cleanup(ctx); +} + void btlsFinalizeEVPMDCtx(EVP_MD_CTX* const ctx) { (void)EVP_MD_CTX_cleanup(ctx); } |