aboutsummaryrefslogtreecommitdiff
path: root/cbits
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-09-28 18:33:35 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-09-28 18:33:35 -0400
commite74149a7569afd1ea7d67c77f40c37471e7e3e58 (patch)
treed8478e569eade926a72829eee9d3afe0e8f12710 /cbits
parent8ac48890e98a4974980b8ca3d5e90a2e52c1a624 (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.c5
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);
}