2013-08-13 16:58:55 +00:00
|
|
|
#pragma once
|
2013-08-13 17:57:16 +00:00
|
|
|
#include <fc/crypto/sha512.hpp>
|
|
|
|
|
#include <vector>
|
2013-08-13 16:58:55 +00:00
|
|
|
|
|
|
|
|
namespace fc {
|
2013-08-24 08:25:03 +00:00
|
|
|
int aes_encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key,
|
|
|
|
|
unsigned char *iv, unsigned char *ciphertext);
|
2013-08-13 16:58:55 +00:00
|
|
|
|
|
|
|
|
std::vector<char> aes_encrypt( const fc::sha512& key, const std::vector<char>& plain_text );
|
|
|
|
|
std::vector<char> aes_decrypt( const fc::sha512& key, const std::vector<char>& cipher_text );
|
|
|
|
|
|
|
|
|
|
}
|