peerplays-fc/include/fc/crypto/aes.hpp

13 lines
416 B
C++
Raw Normal View History

#pragma once
2013-08-13 17:57:16 +00:00
#include <fc/crypto/sha512.hpp>
#include <vector>
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);
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 );
}