From ccd2bbe7b26df60c8a187947a6ed3d0eaa1b812f Mon Sep 17 00:00:00 2001 From: batmaninpink Date: Mon, 20 Jan 2014 15:17:39 +0100 Subject: [PATCH] expose aes_decrypt for use elsewhere --- include/fc/crypto/aes.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fc/crypto/aes.hpp b/include/fc/crypto/aes.hpp index 2b2130d..8d4d043 100644 --- a/include/fc/crypto/aes.hpp +++ b/include/fc/crypto/aes.hpp @@ -39,6 +39,8 @@ namespace fc { int aes_encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, unsigned char *iv, unsigned char *ciphertext); + int aes_decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, + unsigned char *iv, unsigned char *plaintext); std::vector aes_encrypt( const fc::sha512& key, const std::vector& plain_text ); std::vector aes_decrypt( const fc::sha512& key, const std::vector& cipher_text );