34 unsigned aes_encrypt(
unsigned char *plaintext,
int plaintext_len,
unsigned char *key,
35 unsigned char *iv,
unsigned char *ciphertext);
36 unsigned aes_decrypt(
unsigned char *ciphertext,
int ciphertext_len,
unsigned char *key,
37 unsigned char *iv,
unsigned char *plaintext);
38 unsigned aes_cfb_decrypt(
unsigned char *ciphertext,
int ciphertext_len,
unsigned char *key,
39 unsigned char *iv,
unsigned char *plaintext);
uint32_t decode(const char *ciphertxt, uint32_t len, char *plaintext)
uint32_t encode(const char *plaintxt, uint32_t len, char *ciphertxt)
Used to forward declare value types.
wraps boost::filesystem::path to provide platform independent path manipulation.
an implementation of 128 bit unsigned integer
unsigned aes_decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, unsigned char *iv, unsigned char *plaintext)
unsigned aes_cfb_decrypt(unsigned char *ciphertext, int ciphertext_len, unsigned char *key, unsigned char *iv, unsigned char *plaintext)
unsigned aes_encrypt(unsigned char *plaintext, int plaintext_len, unsigned char *key, unsigned char *iv, unsigned char *ciphertext)
void aes_save(const fc::path &file, const fc::sha512 &key, std::vector< char > plain_text)
std::vector< char > aes_load(const fc::path &file, const fc::sha512 &key)